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

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


  }

  public IPropertySourceProvider getPropertySourceProvider(Border border) {
    if (border == null)
      return null;
    BorderAdapter adapter = BorderAdapter.getBorderAdapter(border.getClass());
    return new DelegateProvider(border, adapter);
  }
View Full Code Here


 
  public String getInitJavaCode(Object value, ImportRewrite imports) {
    if (value == null)
      return null;
    BorderAdapter adapter = BorderAdapter
        .getBorderAdapter(value.getClass());
    return adapter.getInitJavaCode(value, imports);
  }
View Full Code Here

 
  public String getJavaCode(Object value, ImportRewrite imports) {
    if (value == null)
      return "null";
    BorderAdapter adapter = BorderAdapter
        .getBorderAdapter(value.getClass());
    if (adapter != null)
      return adapter.getJavaCode(value, imports);
    else
      return "null";
  }
View Full Code Here

  @Override
  public Object getWidgetValue() {
    JPanel panel = (JPanel) adaptable.getWidget();
    Border border = panel.getBorder();
    if (border != null) {
      BorderAdapter borderAdapter = BorderAdapter.getBorderAdapter(border.getClass());
      if(borderAdapter!=null){
        return borderAdapter.getWidgetValue(panel, hotspot);
      }
    }
    return null;
  }
View Full Code Here

  @Override
  public void setWidgetValue(Object value) {
    JPanel panel = (JPanel) adaptable.getWidget();
    Border border = panel.getBorder();
    if (border != null) {
      BorderAdapter borderAdapter = BorderAdapter.getBorderAdapter(border.getClass());
      if(borderAdapter!=null){
        borderAdapter.setWidgetValue(panel, value, hotspot);
      }
    }
  }
View Full Code Here

  @Override
  public IEditor getEditorAt() {
    JPanel panel = (JPanel) adaptable.getWidget();
    Border border = panel.getBorder();
    if (border != null) {
      BorderAdapter borderAdapter = BorderAdapter.getBorderAdapter(border.getClass());
      if(borderAdapter!=null){
        return borderAdapter.getEditorAt(panel, hotspot);
      }
    }
    return null;
  }
View Full Code Here

  @Override
  public Rectangle getEditorBounds() {
    JPanel panel = (JPanel) adaptable.getWidget();
    Border border = panel.getBorder();
    if (border != null) {
      BorderAdapter borderAdapter = BorderAdapter.getBorderAdapter(border.getClass());
      if(borderAdapter!=null){
        return borderAdapter.getEditorBounds(panel, hotspot);
      }
    }
    return null;
  }
View Full Code Here

TOP

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

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.