Class ViewProxy<T extends Component>

java.lang.Object
xal.extension.bricks.BeanProxy<T>
xal.extension.bricks.ViewProxy<T>
All Implemented Interfaces:
DataListener

public abstract class ViewProxy<T extends Component> extends BeanProxy<T>
interface for providing view node behavior
  • Field Details

    • DATA_LABEL

      public static final String DATA_LABEL
      data label
      See Also:
    • isContainer

      protected final boolean isContainer
      indicates whether the component should accept components
    • makeIcon

      protected final boolean makeIcon
      indicates whether to display a prototype icon
  • Constructor Details

    • ViewProxy

      protected ViewProxy(Class<T> prototypeClass, boolean isContainer, boolean makeIcon)
      Constructor
  • Method Details

    • getInstance

      public static ViewProxy<?> getInstance(DataAdaptor adaptor)
      generator
    • isContainer

      public boolean isContainer()
      Determine whether the view should be treated as a container
    • isWindow

      public boolean isWindow()
      determine if the view is a window
    • getContainer

      public Container getContainer(T view)
      Get the container to which sub views should be added
      Parameters:
      view - the view whose container is to be gotten
      Returns:
      the view's container
    • handleChildNodePropertyChange

      public void handleChildNodePropertyChange(ViewNode node, BeanNode<?> beanNode, PropertyDescriptor propertyDescriptor, Object value)
      handle child node property change
    • getIcon

      public Icon getIcon()
      Get an icon representation for the view
      Overrides:
      getIcon in class BeanProxy<T extends Component>
    • getIconImage

      public Image getIconImage()
      Get an image representation for the view
    • dataLabel

      public String dataLabel()
      Provides the name used to identify the class in an external data source.
      Specified by:
      dataLabel in interface DataListener
      Specified by:
      dataLabel in class BeanProxy<T extends Component>
      Returns:
      a tag that identifies the receiver's type