public class RootBrick extends Brick implements ViewNodeContainer, DataListener
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DATA_LABEL
data label
|
EVENT_PROXY, MESSAGE_CENTER, TREE_NODE| Constructor and Description |
|---|
RootBrick()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.util.List<BeanProxy<?>> beanProxies)
Add the views to this node
|
void |
addNodes(java.util.List<BeanNode<?>> originalNodes)
Add the views nodes to this node
|
boolean |
canAdd(BeanProxy<?> beanProxy)
Determine if the brick can add the specified view
|
java.lang.String |
dataLabel()
Provides the name used to identify the class in an external data source.
|
void |
disposeAllWindows()
dispose of all windows
|
int |
getTreeIndexOffsetFromViewIndex()
Get the tree index offset from the view index
|
void |
insertSiblingNodes(java.util.List<BeanNode<?>> originalNodes)
Insert the view nodes in this node beginning at the specified index
|
void |
insertSiblings(java.util.List<BeanProxy<?>> viewProxies)
Insert the views in this node beginning at the specified index
|
void |
insertViewNode(ViewNode node,
int viewIndex)
Insert the bean node in this node beginning at the specified index
|
void |
moveDownNodes(java.util.List<BeanNode<?>> nodes)
move the specified nodes down
|
void |
moveUpNodes(java.util.List<BeanNode<?>> nodes)
move the specified nodes up
|
void |
nodesAdded(java.lang.Object source,
Brick container,
java.util.List<BeanNode<?>> nodes)
Handle the event in which nodes have been added to a container
|
void |
nodesRemoved(java.lang.Object source,
Brick container,
java.util.List<BeanNode<?>> nodes)
Handle the event in which nodes have been removed from a container
|
void |
propertyChanged(BeanNode<?> node,
java.beans.PropertyDescriptor propertyDescriptor,
java.lang.Object value)
Handle the event in which a bean's property has been changed
|
void |
removeFromParent()
Remove this brick from its parent
|
void |
removeNode(BeanNode<?> node)
Remove the view node from this container
|
void |
removeNodes(java.util.List<BeanNode<?>> nodes)
Remove the view nodes from this container
|
java.lang.String |
toString()
Get the label
|
void |
treeNeedsRefresh(java.lang.Object source,
Brick brick)
Handle the event in which a brick's tree path needs refresh
|
void |
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.
|
addBrickListener, canAddAll, canAddAllNodes, canAddNode, canAllBeSiblings, canAllNodesBeSiblings, canBeSibling, canNodeBeSibling, getContainingBrick, getParent, getTreeNode, isAncestorOf, removeBrickListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcanAddAll, canAddAllNodes, canAddNode, canAllBeSiblings, canAllNodesBeSiblings, canBeSiblingpublic static final java.lang.String DATA_LABEL
public void disposeAllWindows()
public boolean canAdd(BeanProxy<?> beanProxy)
canAdd in interface ViewNodeContainercanAdd in class Brickpublic java.lang.String toString()
toString in class java.lang.Objectpublic void add(java.util.List<BeanProxy<?>> beanProxies)
add in interface ViewNodeContainerbeanProxies - the views to add to this nodepublic int getTreeIndexOffsetFromViewIndex()
getTreeIndexOffsetFromViewIndex in interface ViewNodeContainerpublic void moveDownNodes(java.util.List<BeanNode<?>> nodes)
moveDownNodes in interface ViewNodeContainerpublic void moveUpNodes(java.util.List<BeanNode<?>> nodes)
moveUpNodes in interface ViewNodeContainerpublic void insertViewNode(ViewNode node, int viewIndex)
insertViewNode in interface ViewNodeContainernode - the node to insert in this nodeviewIndex - the initial index at which to begin inserting the nodespublic void insertSiblings(java.util.List<BeanProxy<?>> viewProxies)
insertSiblings in interface ViewNodeContainerviewProxies - the views to add to this nodepublic void addNodes(java.util.List<BeanNode<?>> originalNodes)
addNodes in interface ViewNodeContaineroriginalNodes - the nodes to add to this nodepublic void insertSiblingNodes(java.util.List<BeanNode<?>> originalNodes)
insertSiblingNodes in interface ViewNodeContaineroriginalNodes - the nodes to add to this nodepublic void removeNode(BeanNode<?> node)
removeNode in interface ViewNodeContainernode - the node to removepublic void removeNodes(java.util.List<BeanNode<?>> nodes)
removeNodes in interface ViewNodeContainernodes - the nodes to removepublic void removeFromParent()
removeFromParent in class Brickpublic java.lang.String dataLabel()
dataLabel in interface DataListenerpublic void update(DataAdaptor adaptor)
update in interface DataListeneradaptor - The adaptor from which to update the datapublic void write(DataAdaptor adaptor)
write in interface DataListeneradaptor - The adaptor to which the receiver's data is writtenpublic void nodesAdded(java.lang.Object source,
Brick container,
java.util.List<BeanNode<?>> nodes)
nodesAdded in interface BrickListenersource - the source of the eventcontainer - the node to which nodes have been addednodes - the nodes which have been addedpublic void nodesRemoved(java.lang.Object source,
Brick container,
java.util.List<BeanNode<?>> nodes)
nodesRemoved in interface BrickListenersource - the source of the eventcontainer - the node from which nodes have been removednodes - the nodes which have been removedpublic void propertyChanged(BeanNode<?> node, java.beans.PropertyDescriptor propertyDescriptor, java.lang.Object value)
propertyChanged in interface BrickListenernode - the node whose property has changedpropertyDescriptor - the property which has changedvalue - the new valuepublic void treeNeedsRefresh(java.lang.Object source,
Brick brick)
treeNeedsRefresh in interface BrickListenersource - the source of the eventbrick - the brick at which the refresh needs to be done