Examples of JPanelAdapter


Examples of org.dyno.visual.swing.widgets.JPanelAdapter

public class RootPaneContainerMenuContext extends JComponentMenuContext {

  @Override
  public void fillContextAction(MenuManager menu) {
    super.fillContextAction(menu);
    JPanelAdapter contentAdapter = (JPanelAdapter) ((RootPaneContainerAdapter) adaptable)
        .getContentAdapter();
    if (contentAdapter != null) {
      JPanelMenuContext context = (JPanelMenuContext) contentAdapter
          .getAdapter(IMenuContext.class);
      context.fillSetLayoutAction(menu);
    }
  }
View Full Code Here

Examples of org.dyno.visual.swing.widgets.JPanelAdapter

  }

  @Override
  public void fillConstraintsAction(MenuManager menu, Component child) {
    if (!(child instanceof JMenuBar)) {
      JPanelAdapter contentAdapter = (JPanelAdapter) ((RootPaneContainerAdapter) adaptable)
          .getContentAdapter();
      if (contentAdapter != null) {
        CompositeMenuContext context = (CompositeMenuContext) contentAdapter
            .getAdapter(IMenuContext.class);
        context.fillConstraintsAction(menu, child);
      }
    }
  }
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.