Modifier and Type | Field and Description |
---|---|
protected BrickListener |
EVENT_PROXY
proxy which forwards events to registered listeners
|
protected MessageCenter |
MESSAGE_CENTER
message center which dispatches events
|
protected javax.swing.tree.DefaultMutableTreeNode |
TREE_NODE
the tree node
|
Constructor and Description |
---|
Brick()
Primary Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addBrickListener(BrickListener listener)
Add a listener of view node events
|
abstract boolean |
canAdd(BeanProxy<?> beanProxy)
Determine if the brick can add the specified view
|
boolean |
canAddAll(java.util.List<BeanProxy<?>> views)
Determine if the brick can add all of the specified views
|
boolean |
canAddAllNodes(java.util.List<BeanNode<?>> nodes)
Determine if the brick can add all of the specified view nodes
|
boolean |
canAddNode(BeanNode<?> node)
Determine if this brick can add the specified view node
|
boolean |
canAllBeSiblings(java.util.List<BeanProxy<?>> beanProxies)
Determine if all views can be sibling views
|
boolean |
canAllNodesBeSiblings(java.util.List<BeanNode<?>> nodes)
Determine if all views can be sibling views
|
boolean |
canBeSibling(BeanProxy<?> beanProxy)
Determine if the brick can be inserted in this view's parent
|
boolean |
canNodeBeSibling(BeanNode<?> node)
Determine if the node can be added as a sibling
|
Brick |
getContainingBrick()
Get the containing node
|
java.lang.Object |
getParent()
Get the parent view node
|
javax.swing.tree.DefaultMutableTreeNode |
getTreeNode()
Get the tree node.
|
boolean |
isAncestorOf(Brick brick)
Determine if this brick is the ancestor of the specified brick
|
void |
removeBrickListener(BrickListener listener)
Remove the listener from receiving view node events
|
abstract void |
removeFromParent()
Remove this brick from its parent
|
protected final javax.swing.tree.DefaultMutableTreeNode TREE_NODE
protected final MessageCenter MESSAGE_CENTER
protected final BrickListener EVENT_PROXY
public void addBrickListener(BrickListener listener)
listener
- the listener to register for receiving eventspublic void removeBrickListener(BrickListener listener)
listener
- the listener to remove for receiving events from this nodepublic javax.swing.tree.DefaultMutableTreeNode getTreeNode()
public java.lang.Object getParent()
public Brick getContainingBrick()
public boolean isAncestorOf(Brick brick)
brick
- the brick to testpublic abstract boolean canAdd(BeanProxy<?> beanProxy)
public boolean canBeSibling(BeanProxy<?> beanProxy)
public boolean canAllBeSiblings(java.util.List<BeanProxy<?>> beanProxies)
public boolean canAddAll(java.util.List<BeanProxy<?>> views)
public boolean canAddNode(BeanNode<?> node)
node
- the node to test for additionpublic boolean canAddAllNodes(java.util.List<BeanNode<?>> nodes)
public boolean canNodeBeSibling(BeanNode<?> node)
node
- the node to testpublic boolean canAllNodesBeSiblings(java.util.List<BeanNode<?>> nodes)
public abstract void removeFromParent()