public abstract class ViewProxy<ViewType extends java.awt.Component> extends BeanProxy<ViewType>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DATA_LABEL
data label
|
protected boolean |
IS_CONTAINER
indicates whether the component should accept components
|
protected boolean |
MAKE_ICON
indicates whether to display a prototype icon
|
PROTOTYPE_CLASS
Constructor and Description |
---|
ViewProxy(java.lang.Class<ViewType> prototypeClass,
boolean isContainer,
boolean makeIcon)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
dataLabel()
Provides the name used to identify the class in an external data source.
|
java.awt.Container |
getContainer(ViewType view)
Get the container to which sub views should be added
|
javax.swing.Icon |
getIcon()
Get an icon representation for the view
|
java.awt.Image |
getIconImage()
Get an image representation for the view
|
static ViewProxy<?> |
getInstance(DataAdaptor adaptor)
generator
|
void |
handleChildNodePropertyChange(ViewNode node,
BeanNode<?> beanNode,
java.beans.PropertyDescriptor propertyDescriptor,
java.lang.Object value)
handle child node property change
|
boolean |
isContainer()
Determine whether the view should be treated as a container
|
boolean |
isWindow()
determine if the view is a window
|
getBeanInstance, getBeanInstance, getConstructorParameters, getConstructorParameterTypes, getJavaDeclarationSnippet, getJavaReferenceSnippet, getJythonReferenceSnippet, getName, getPrototype, getPrototypeClass, getReferenceSnippetFetchMethodArgumentsString, getReferenceSnippetFetchMethodName, getShortName, getText, getType, getXALReferenceSnippet, setup, setupPrototype, toString, update, write
public static final java.lang.String DATA_LABEL
protected final boolean IS_CONTAINER
protected final boolean MAKE_ICON
public ViewProxy(java.lang.Class<ViewType> prototypeClass, boolean isContainer, boolean makeIcon)
public static ViewProxy<?> getInstance(DataAdaptor adaptor)
public boolean isContainer()
public boolean isWindow()
public java.awt.Container getContainer(ViewType view)
view
- the view whose container is to be gottenpublic void handleChildNodePropertyChange(ViewNode node, BeanNode<?> beanNode, java.beans.PropertyDescriptor propertyDescriptor, java.lang.Object value)
public javax.swing.Icon getIcon()
public java.awt.Image getIconImage()
public java.lang.String dataLabel()
dataLabel
in interface DataListener
dataLabel
in class BeanProxy<ViewType extends java.awt.Component>