|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.plugins.dnd.viewer.tree.EmptyNodeSpecification
public class EmptyNodeSpecification
A simple specification that always returns false when asked if it can display any content.
canDisplay(Content, ViewRequirement)| Field Summary | |
|---|---|
static int |
CAN_OPEN
|
static int |
CANT_OPEN
|
static int |
UNKNOWN
|
| Constructor Summary | |
|---|---|
EmptyNodeSpecification()
|
|
| Method Summary | |
|---|---|
boolean |
canDisplay(Content content,
ViewRequirement requirement)
Determines if the view created to this specification can display the specified type. |
int |
canOpen(Content content)
|
protected View |
createNodeView(Content content,
ViewAxis axis)
|
View |
createView(Content content,
ViewAxis axis)
Create a new view to this specification for the specified context, and using the specified axis if specified (which can be null). |
java.lang.String |
getName()
|
boolean |
isAligned()
Return true if the generated views are to have their sizes adjusted so they are consistent with surrounding views. |
boolean |
isOpen()
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. |
boolean |
isReplaceable()
Indicates whether this view can be replaced with another view (for the same value or reference). |
boolean |
isResizeable()
Indicates if this view can handled being resized. |
boolean |
isSubView()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int CAN_OPEN
public static final int CANT_OPEN
public static final int UNKNOWN
| Constructor Detail |
|---|
public EmptyNodeSpecification()
| Method Detail |
|---|
public int canOpen(Content content)
protected View createNodeView(Content content,
ViewAxis axis)
public boolean canDisplay(Content content,
ViewRequirement requirement)
ViewSpecification
public java.lang.String getName()
public final View createView(Content content,
ViewAxis axis)
ViewSpecification
createView in interface ViewSpecificationpublic boolean isAligned()
ViewSpecification
isAligned in interface ViewSpecificationpublic boolean isOpen()
ViewSpecification
isOpen in interface ViewSpecificationpublic boolean isReplaceable()
ViewSpecification
isReplaceable in interface ViewSpecificationpublic boolean isResizeable()
ViewSpecification
isResizeable in interface ViewSpecificationpublic boolean isSubView()
isSubView in interface ViewSpecification
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||