Examples of JSplitPanePlacementAction


Examples of org.dyno.visual.swing.widgets.actions.JSplitPanePlacementAction

  public void fillConstraintsAction(MenuManager menu, Component child) {
    MenuManager plcMenu = new MenuManager(Messages.JSplitPaneAdapter_Component_Placement,
        "#BORDERLAYOUT_CONSTRAINTS"); //$NON-NLS-1$
    JSplitPane jsp = (JSplitPane) adaptable.getWidget();
    if (jsp.getOrientation() == JSplitPane.HORIZONTAL_SPLIT) {
      plcMenu.add(new JSplitPanePlacementAction(jsp, "left", child)); //$NON-NLS-1$
      plcMenu.add(new JSplitPanePlacementAction(jsp, "right", child)); //$NON-NLS-1$
    } else {
      plcMenu.add(new JSplitPanePlacementAction(jsp, "top", child)); //$NON-NLS-1$
      plcMenu.add(new JSplitPanePlacementAction(jsp, "bottom", child)); //$NON-NLS-1$
    }
    menu.add(plcMenu);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.