Package xal.extension.bricks
Class ViewProxy<T extends Component>
java.lang.Object
xal.extension.bricks.BeanProxy<T>
xal.extension.bricks.ViewProxy<T>
- All Implemented Interfaces:
DataListener
interface for providing view node behavior
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
data labelprotected final boolean
indicates whether the component should accept componentsprotected final boolean
indicates whether to display a prototype iconFields inherited from class xal.extension.bricks.BeanProxy
prototypeClass
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionProvides the name used to identify the class in an external data source.getContainer
(T view) Get the container to which sub views should be addedgetIcon()
Get an icon representation for the viewGet an image representation for the viewstatic ViewProxy<?>
getInstance
(DataAdaptor adaptor) generatorvoid
handleChildNodePropertyChange
(ViewNode node, BeanNode<?> beanNode, PropertyDescriptor propertyDescriptor, Object value) handle child node property changeboolean
Determine whether the view should be treated as a containerboolean
isWindow()
determine if the view is a windowMethods inherited from class xal.extension.bricks.BeanProxy
getBeanInstance, getBeanInstance, getConstructorParameters, getConstructorParameterTypes, getJavaDeclarationSnippet, getJavaReferenceSnippet, getJythonReferenceSnippet, getName, getPrototype, getPrototypeClass, getReferenceSnippetFetchMethodArgumentsString, getReferenceSnippetFetchMethodName, getShortName, getText, getType, getXALReferenceSnippet, setup, setupPrototype, toString, update, write
-
Field Details
-
DATA_LABEL
data label- See Also:
-
isContainer
protected final boolean isContainerindicates whether the component should accept components -
makeIcon
protected final boolean makeIconindicates whether to display a prototype icon
-
-
Constructor Details
-
ViewProxy
Constructor
-
-
Method Details
-
getInstance
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
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
Get an icon representation for the view -
getIconImage
Get an image representation for the view -
dataLabel
Provides the name used to identify the class in an external data source.
-