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 TypeMethodDescriptionvoid
Add the views to this nodevoid
Add the views nodes to this nodeboolean
Determine if the brick can add the specified viewProvides the name used to identify the class in an external data source.void
dispose of all windowsint
Get the tree index offset from the view indexvoid
insertSiblingNodes
(List<BeanNode<?>> originalNodes) Insert the view nodes in this node beginning at the specified indexvoid
insertSiblings
(List<BeanProxy<?>> viewProxies) Insert the views in this node beginning at the specified indexvoid
insertViewNode
(ViewNode node, int viewIndex) Insert the bean node in this node beginning at the specified indexvoid
moveDownNodes
(List<BeanNode<?>> nodes) move the specified nodes downvoid
moveUpNodes
(List<BeanNode<?>> nodes) move the specified nodes upvoid
nodesAdded
(Object source, Brick container, List<BeanNode<?>> nodes) Handle the event in which nodes have been added to a containervoid
nodesRemoved
(Object source, Brick container, List<BeanNode<?>> nodes) Handle the event in which nodes have been removed from a containervoid
propertyChanged
(BeanNode<?> node, PropertyDescriptor propertyDescriptor, Object value) Handle the event in which a bean's property has been changedvoid
Remove this brick from its parentvoid
removeNode
(BeanNode<?> node) Remove the view node from this containervoid
removeNodes
(List<BeanNode<?>> nodes) Remove the view nodes from this containertoString()
Get the labelvoid
treeNeedsRefresh
(Object source, Brick brick) Handle the event in which a brick's tree path needs refreshvoid
update
(DataAdaptor adaptor) Update the data based on the information provided by the data provider.void
write
(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, removeBrickListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
canAdd
in interfaceViewNodeContainer
- Specified by:
canAdd
in 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:
add
in 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:
getTreeIndexOffsetFromViewIndex
in interfaceViewNodeContainer
- Returns:
- the tree index offset
-
moveDownNodes
move the specified nodes down- Specified by:
moveDownNodes
in interfaceViewNodeContainer
- Parameters:
nodes
-
-
moveUpNodes
move the specified nodes up- Specified by:
moveUpNodes
in interfaceViewNodeContainer
- Parameters:
nodes
-
-
insertViewNode
Insert the bean node in this node beginning at the specified index- Specified by:
insertViewNode
in 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:
insertSiblings
in interfaceViewNodeContainer
- Parameters:
viewProxies
- the views to add to this node
-
addNodes
Add the views nodes to this node- Specified by:
addNodes
in 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:
insertSiblingNodes
in interfaceViewNodeContainer
- Parameters:
originalNodes
- the nodes to add to this node
-
removeNode
Remove the view node from this container- Specified by:
removeNode
in interfaceViewNodeContainer
- Parameters:
node
- the node to remove
-
removeNodes
Remove the view nodes from this container- Specified by:
removeNodes
in interfaceViewNodeContainer
- Parameters:
nodes
- the nodes to remove
-
removeFromParent
public void removeFromParent()Remove this brick from its parent- Specified by:
removeFromParent
in classBrick
-
dataLabel
Provides the name used to identify the class in an external data source.- Specified by:
dataLabel
in 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:
update
in interfaceDataListener
- Parameters:
adaptor
- The adaptor from which to update the data
-
write
Write data to the data adaptor for storage.- Specified by:
write
in 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:
nodesAdded
in 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:
nodesRemoved
in 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:
propertyChanged
in 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:
treeNeedsRefresh
in interfaceBrickListener
- Parameters:
source
- the source of the eventbrick
- the brick at which the refresh needs to be done
-