Package xal.extension.bricks
Class RootBrick
java.lang.Object
xal.extension.bricks.Brick
xal.extension.bricks.RootBrick
- All Implemented Interfaces:
BrickListener,ViewNodeContainer,DataListener
root brick to which windows are added
-
Field Summary
FieldsFields inherited from class xal.extension.bricks.Brick
eventProxy, messageCenter, treeNode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd the views to this nodevoidAdd the views nodes to this nodebooleanDetermine if the brick can add the specified viewProvides the name used to identify the class in an external data source.voiddispose of all windowsintGet the tree index offset from the view indexvoidinsertSiblingNodes(List<BeanNode<?>> originalNodes) Insert the view nodes in this node beginning at the specified indexvoidinsertSiblings(List<BeanProxy<?>> viewProxies) Insert the views in this node beginning at the specified indexvoidinsertViewNode(ViewNode node, int viewIndex) Insert the bean node in this node beginning at the specified indexvoidmoveDownNodes(List<BeanNode<?>> nodes) move the specified nodes downvoidmoveUpNodes(List<BeanNode<?>> nodes) move the specified nodes upvoidnodesAdded(Object source, Brick container, List<BeanNode<?>> nodes) Handle the event in which nodes have been added to a containervoidnodesRemoved(Object source, Brick container, List<BeanNode<?>> nodes) Handle the event in which nodes have been removed from a containervoidpropertyChanged(BeanNode<?> node, PropertyDescriptor propertyDescriptor, Object value) Handle the event in which a bean's property has been changedvoidRemove this brick from its parentvoidremoveNode(BeanNode<?> node) Remove the view node from this containervoidremoveNodes(List<BeanNode<?>> nodes) Remove the view nodes from this containertoString()Get the labelvoidtreeNeedsRefresh(Object source, Brick brick) Handle the event in which a brick's tree path needs refreshvoidupdate(DataAdaptor adaptor) Update the data based on the information provided by the data provider.voidwrite(DataAdaptor adaptor) Write data to the data adaptor for storage.Methods inherited from class xal.extension.bricks.Brick
addBrickListener, canAddAll, canAddAllNodes, canAddNode, canAllBeSiblings, canAllNodesBeSiblings, canBeSibling, canNodeBeSibling, getContainingBrick, getParent, getTreeNode, isAncestorOf, removeBrickListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface xal.extension.bricks.ViewNodeContainer
canAddAll, canAddAllNodes, canAddNode, canAllBeSiblings, canAllNodesBeSiblings, canBeSibling
-
Field Details
-
DATA_LABEL
data label- See Also:
-
-
Constructor Details
-
RootBrick
public RootBrick()Constructor
-
-
Method Details
-
disposeAllWindows
public void disposeAllWindows()dispose of all windows -
canAdd
Determine if the brick can add the specified view- Specified by:
canAddin interfaceViewNodeContainer- Specified by:
canAddin classBrick- Returns:
- true if it can add the specified view and false if not
-
toString
Get the label -
add
Add the views to this node- Specified by:
addin interfaceViewNodeContainer- Parameters:
beanProxies- the views to add to this node
-
getTreeIndexOffsetFromViewIndex
public int getTreeIndexOffsetFromViewIndex()Get the tree index offset from the view index- Specified by:
getTreeIndexOffsetFromViewIndexin interfaceViewNodeContainer- Returns:
- the tree index offset
-
moveDownNodes
move the specified nodes down- Specified by:
moveDownNodesin interfaceViewNodeContainer- Parameters:
nodes-
-
moveUpNodes
move the specified nodes up- Specified by:
moveUpNodesin interfaceViewNodeContainer- Parameters:
nodes-
-
insertViewNode
Insert the bean node in this node beginning at the specified index- Specified by:
insertViewNodein interfaceViewNodeContainer- Parameters:
node- the node to insert in this nodeviewIndex- the initial index at which to begin inserting the nodes
-
insertSiblings
Insert the views in this node beginning at the specified index- Specified by:
insertSiblingsin interfaceViewNodeContainer- Parameters:
viewProxies- the views to add to this node
-
addNodes
Add the views nodes to this node- Specified by:
addNodesin interfaceViewNodeContainer- Parameters:
originalNodes- the nodes to add to this node
-
insertSiblingNodes
Insert the view nodes in this node beginning at the specified index- Specified by:
insertSiblingNodesin interfaceViewNodeContainer- Parameters:
originalNodes- the nodes to add to this node
-
removeNode
Remove the view node from this container- Specified by:
removeNodein interfaceViewNodeContainer- Parameters:
node- the node to remove
-
removeNodes
Remove the view nodes from this container- Specified by:
removeNodesin interfaceViewNodeContainer- Parameters:
nodes- the nodes to remove
-
removeFromParent
public void removeFromParent()Remove this brick from its parent- Specified by:
removeFromParentin classBrick
-
dataLabel
Provides the name used to identify the class in an external data source.- Specified by:
dataLabelin interfaceDataListener- Returns:
- a tag that identifies the receiver's type
-
update
Update the data based on the information provided by the data provider.- Specified by:
updatein interfaceDataListener- Parameters:
adaptor- The adaptor from which to update the data
-
write
Write data to the data adaptor for storage.- Specified by:
writein interfaceDataListener- Parameters:
adaptor- The adaptor to which the receiver's data is written
-
nodesAdded
Handle the event in which nodes have been added to a container- Specified by:
nodesAddedin interfaceBrickListener- Parameters:
source- the source of the eventcontainer- the node to which nodes have been addednodes- the nodes which have been added
-
nodesRemoved
Handle the event in which nodes have been removed from a container- Specified by:
nodesRemovedin interfaceBrickListener- Parameters:
source- the source of the eventcontainer- the node from which nodes have been removednodes- the nodes which have been removed
-
propertyChanged
Handle the event in which a bean's property has been changed- Specified by:
propertyChangedin interfaceBrickListener- Parameters:
node- the node whose property has changedpropertyDescriptor- the property which has changedvalue- the new value
-
treeNeedsRefresh
Handle the event in which a brick's tree path needs refresh- Specified by:
treeNeedsRefreshin interfaceBrickListener- Parameters:
source- the source of the eventbrick- the brick at which the refresh needs to be done
-