Package org.dyno.visual.swing.plugin.spi

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


        if (!adaptable.isRoot())
          builder.append(adaptable.getID() + ".");
        builder.append("add(" + getMethodName + "());\n");
      }
    } else {
      LayoutAdapter layoutAdapter = ((CompositeAdapter) adaptable)
          .getLayoutAdapter();
      if (layoutAdapter != null) {
        ILayoutParser parser = (ILayoutParser) layoutAdapter
            .getAdapter(ILayoutParser.class);
        if (parser != null)
          builder.append(parser.createCode(imports));
      }
    }
View Full Code Here


  }

  @Override
  public Object getAdapter(Class adapterClass) {
    if (adapterClass == MouseInputListener.class) {
      LayoutAdapter adapter = getLayoutAdapter();
      if (adapter != null) {
        MouseInputListener l = (MouseInputListener) adapter.getAdapter(adapterClass);
        if (l.getClass() != DefaultMouseInputDelegate.class) {
          return l;
        }
      }
    }
View Full Code Here

        jpanel.add(dragged);
      } else {
        jpanel.add(dragged, hoveringIndex + 1);
      }
    } else {
      LayoutAdapter layoutAdapter = getLayoutAdapter();
      layoutAdapter.addAfter(hovering, dragged);
    }
  }
View Full Code Here

        jpanel.add(dragged, 0);
      } else {
        jpanel.add(dragged, hoveringIndex);
      }
    } else {
      LayoutAdapter layoutAdapter = getLayoutAdapter();
      layoutAdapter.addBefore(hovering, dragged);
    }
  }
View Full Code Here

    JPanel jpanel = (JPanel) getWidget();
    LayoutManager layout = jpanel.getLayout();
    if (layout == null) {
      jpanel.add(widget);
    } else {
      LayoutAdapter layoutAdapter = getLayoutAdapter();
      layoutAdapter.addChild(widget);
    }
  }
View Full Code Here

    if (layout == null) {
      jpanel.remove(child);
      jpanel.validate();
      return true;
    } else {
      LayoutAdapter layoutAdapter = getLayoutAdapter();
      boolean success = layoutAdapter.removeChild(child);
      if (success) {
        jpanel.validate();
        layoutAdapter.setContainer(jpanel);
        return true;
      } else
        return false;
    }
  }
View Full Code Here

    JPanel jpanel = (JPanel) getWidget();
    LayoutManager layout = jpanel.getLayout();
    if (layout == null) {
      return child.isVisible();
    } else {
      LayoutAdapter layoutAdapter = getLayoutAdapter();
      return layoutAdapter.isWidgetVisible(child);
    }
  }
View Full Code Here

    LayoutManager layout = jpanel.getLayout();
    if (layout == null) {
      if (!widget.isVisible())
        widget.setVisible(true);
    } else {
      LayoutAdapter layoutAdapter = getLayoutAdapter();
      layoutAdapter.showChild(widget);
    }
  }
View Full Code Here

    return JInternalFrame.class;
  }
  @Override
  public Object getAdapter(Class adapterClass) {
    if(adapterClass==MouseInputListener.class){
      LayoutAdapter adapter=contentAdapter.getLayoutAdapter();
      if(adapter!=null)
        return adapter.getAdapter(adapterClass);
      else
        return null;
    }else
      return super.getAdapter(adapterClass);
  }
View Full Code Here

  }

  @Override
  public Object getAdapter(Class adapterClass) {
    if(adapterClass==MouseInputListener.class){
      LayoutAdapter adapter=contentAdapter.getLayoutAdapter();
      if(adapter!=null)
        return adapter.getAdapter(adapterClass);
      else
        return null;
    }else
      return super.getAdapter(adapterClass);
  }
View Full Code Here

TOP

Related Classes of org.dyno.visual.swing.plugin.spi.LayoutAdapter

Copyright © 2018 www.massapicom. 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.