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

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


  }

  @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


  private static IPropertySourceProvider getProvider(Object object) {
    if (object instanceof Component) {
      Component widget = (Component) object;
      return WidgetAdapter.getWidgetAdapter(widget);
    } else if (object instanceof LayoutManager) {
      LayoutAdapter adapter = LayoutAdapter.createLayoutAdapter(object.getClass());
      return adapter;
    } else if(object instanceof WidgetSelection){
      WidgetSelection selection = (WidgetSelection)object;
      if (!selection.isEmpty()) {
        if (selection.size() == 1) {
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.