org.nakedobjects.plugins.dnd.viewer.tree
Class CompositeNodeSpecification
java.lang.Object
org.nakedobjects.plugins.dnd.viewer.tree.CompositeNodeSpecification
- All Implemented Interfaces:
- CompositeViewSpecification, SubviewSpec, ViewSpecification
- Direct Known Subclasses:
- OpenCollectionNodeSpecification, OpenObjectNodeSpecification
public abstract class CompositeNodeSpecification
- extends java.lang.Object
- implements CompositeViewSpecification, SubviewSpec
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
builder
protected ViewBuilder builder
CAN_OPEN
public static final int CAN_OPEN
- See Also:
- Constant Field Values
CANT_OPEN
public static final int CANT_OPEN
- See Also:
- Constant Field Values
UNKNOWN
public static final int UNKNOWN
- See Also:
- Constant Field Values
CompositeNodeSpecification
public CompositeNodeSpecification()
setCollectionSubNodeSpecification
public void setCollectionSubNodeSpecification(org.nakedobjects.plugins.dnd.viewer.tree.NodeSpecification collectionLeafNodeSpecification)
setObjectSubNodeSpecification
public void setObjectSubNodeSpecification(org.nakedobjects.plugins.dnd.viewer.tree.NodeSpecification objectLeafNodeSpecification)
createNodeView
protected View createNodeView(Content content,
ViewAxis axis)
decorateSubview
public View decorateSubview(View view)
- Specified by:
decorateSubview in interface SubviewSpec
getSubviewBuilder
public ViewBuilder getSubviewBuilder()
- Specified by:
getSubviewBuilder in interface CompositeViewSpecification
createSubview
public View createSubview(Content content,
ViewAxis axis,
int fieldNumber)
- Specified by:
createSubview in interface SubviewSpec
canOpen
public abstract int canOpen(Content content)
createView
public final View createView(Content content,
ViewAxis axis)
- Description copied from interface:
ViewSpecification
- Create a new view to this specification for the specified context, and using the specified axis if
specified (which can be null).
- Specified by:
createView in interface ViewSpecification
isAligned
public boolean isAligned()
- Description copied from interface:
ViewSpecification
- Return true if the generated views are to have their sizes adjusted so they are consistent with
surrounding views.
- Specified by:
isAligned in interface ViewSpecification
isOpen
public boolean isOpen()
- Description copied from interface:
ViewSpecification
- Indicates whether views to this specification are open - displaying the attributes of the content
object - or are closed - display only the title of the content object.
- Specified by:
isOpen in interface ViewSpecification
isReplaceable
public boolean isReplaceable()
- Description copied from interface:
ViewSpecification
- Indicates whether this view can be replaced with another view (for the same value or reference).
- Specified by:
isReplaceable in interface ViewSpecification
- Returns:
- true if it can be replaced by another view; false if it can't be replaces
isSubView
public boolean isSubView()
- Specified by:
isSubView in interface ViewSpecification
Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.