|
|
@ -87,9 +87,11 @@ public class ChangeLayoutComponentGuide { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public boolean prepared() { |
|
|
|
public boolean prepared() { |
|
|
|
switchButton.getComponentPopupMenu().setVisible(true); |
|
|
|
switchButton.getComponentPopupMenu().setVisible(true); |
|
|
|
|
|
|
|
Rectangle popupBounds = GuideCreateUtils.getRelativeBounds(switchButton.getComponentPopupMenu(), switchButton,0, -switchButton.getComponentPopupMenu().getHeight()); |
|
|
|
|
|
|
|
switchButton.getComponentPopupMenu().show(scene.getContainer(), popupBounds.x, popupBounds.y); |
|
|
|
scene.addCustomTarget( |
|
|
|
scene.addCustomTarget( |
|
|
|
GuideCreateUtils.createModalTarget(switchButton.getComponentPopupMenu()), |
|
|
|
GuideCreateUtils.createModalTarget(switchButton.getComponentPopupMenu()), |
|
|
|
GuideCreateUtils.getRelativeBounds(switchButton.getComponentPopupMenu(), switchButton,0, -switchButton.getComponentPopupMenu().getHeight()) |
|
|
|
popupBounds |
|
|
|
); |
|
|
|
); |
|
|
|
scene.addClickTarget(switchButton.getComponentPopupMenu().getComponent(1), ClickScene.ClickType.LEFT, true); |
|
|
|
scene.addClickTarget(switchButton.getComponentPopupMenu().getComponent(1), ClickScene.ClickType.LEFT, true); |
|
|
|
scene.addBubbleTip(Toolkit.i18nText("Fine-Design_Guide_Scene_F001002_Tip_Select_Fix_layout"), null, GuideTip.Direction.RIGHT, 0.5f, 0.8f); |
|
|
|
scene.addBubbleTip(Toolkit.i18nText("Fine-Design_Guide_Scene_F001002_Tip_Select_Fix_layout"), null, GuideTip.Direction.RIGHT, 0.5f, 0.8f); |
|
|
|