de.grogra.pf.ui.edit
Class NodeSelection
java.lang.Object
de.grogra.pf.ui.edit.SelectionBase
de.grogra.pf.ui.edit.FieldSelection
de.grogra.pf.ui.edit.NodeSelection
- All Implemented Interfaces:
- GraphSelection, Selection, Described
public class NodeSelection
- extends FieldSelection
- implements GraphSelection
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodeSelection
public NodeSelection(Context ctx,
Node object,
PersistenceField[] fields,
int[][] indices,
PropertyEditor[] editors,
java.lang.String[] labels,
Item description,
boolean invokeValueForPathChanged)
contains
public boolean contains(Graph graph,
java.lang.Object object,
boolean asNode)
- Specified by:
contains in interface GraphSelection
createProperty
protected FieldProperty createProperty(Context c,
int i)
- Specified by:
createProperty in class FieldSelection
createTree
protected PropertyEditorTree createTree()
- Specified by:
createTree in class SelectionBase
getDescription
public java.lang.Object getDescription(java.lang.String type)
- Description copied from interface:
Described
- Returns the description associated with the given
type.
type has to be one of the predefined constants
of this interface, the returned value has to conform to the
specification of the used constant.
- Specified by:
getDescription in interface Described- Overrides:
getDescription in class FieldSelection
- Parameters:
type - the type of description
- Returns:
- the description, or
null if no description is available
getGraphState
public GraphState getGraphState(int index)
- Specified by:
getGraphState in interface GraphSelection
getObject
public java.lang.Object getObject(int index)
- Specified by:
getObject in interface GraphSelection
isNode
public boolean isNode(int index)
- Specified by:
isNode in interface GraphSelection
size
public int size()
- Specified by:
size in interface GraphSelection