Examples of IAdapter


Examples of org.dyno.visual.swing.plugin.spi.IAdapter

      }
    }
  }
  private void removeButtonFromGroup(AbstractButton button) {
    WidgetAdapter btnAdapter=WidgetAdapter.getWidgetAdapter(button);
    IAdapter iadapter=btnAdapter.getParent();
    if(iadapter!=null&&iadapter instanceof ButtonGroupAdapter){
      ((ButtonGroupAdapter)iadapter).getButtonGroup().remove(button);
    }
  }
View Full Code Here

Examples of org.dyno.visual.swing.plugin.spi.IAdapter

    for (IAdapter iadapter : iadapters) {
      if (iadapter instanceof WidgetAdapter) {
        Component comp = ((WidgetAdapter) iadapter).getWidget();
        if (!(comp instanceof AbstractButton))
          return false;
        IAdapter parentAdapter=((WidgetAdapter) iadapter).getParent();
        if(parentAdapter==null)
          return false;
        if(!(parentAdapter instanceof ButtonGroupAdapter))
          return false;
      }else{
View Full Code Here

Examples of org.dyno.visual.swing.plugin.spi.IAdapter

    if (selected != null && !selected.isEmpty()) {
      List<AbstractButton> buttons = new ArrayList<AbstractButton>();
      for (Component comp : selected) {
        WidgetAdapter adapter = WidgetAdapter.getWidgetAdapter(comp);
        if (comp instanceof AbstractButton) {
          IAdapter parent = adapter.getParent();
          if (parent instanceof ButtonGroupAdapter) {
            ButtonGroupAdapter parentAdapter = (ButtonGroupAdapter) parent;
            ButtonGroup bg = parentAdapter.getButtonGroup();
            Enumeration<AbstractButton> elements = bg.getElements();
            while (elements.hasMoreElements()) {
View Full Code Here

Examples of org.dyno.visual.swing.plugin.spi.IAdapter

   
    public void run() {
      for (IAdapter iadapter : iadapters) {
        WidgetAdapter wa = (WidgetAdapter) iadapter;
        IAdapter parentAdapter = wa.getParent();
        if (parentAdapter != null
            && parentAdapter instanceof ButtonGroupAdapter) {
          ButtonGroup bg = ((ButtonGroupAdapter) parentAdapter)
              .getButtonGroup();
          AbstractButton aBtn = (AbstractButton) wa.getWidget();
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.