de.grogra.pf.ui.edit
public class NodeSelection extends FieldSelection implements GraphSelection
contextDELETABLE, HIERARCHICAL, TRANSFERABLEACCELERATOR_KEY, ICON, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, TITLE| Constructor and Description |
|---|
NodeSelection(Context ctx,
Node object,
PersistenceField[] fields,
int[][] indices,
PropertyEditor[] editors,
java.lang.String[] labels,
Item description,
boolean invokeValueForPathChanged) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Graph graph,
java.lang.Object object,
boolean asNode) |
protected FieldProperty |
createProperty(Context c,
int i) |
protected PropertyEditorTree |
createTree() |
java.lang.Object |
getDescription(java.lang.String type)
Returns the description associated with the given
type. |
GraphState |
getGraphState(int index) |
java.lang.Object |
getObject(int index) |
boolean |
isNode(int index) |
int |
size() |
createPropertyNodes, createPropertyNodesInGroup, equals, getEditorFor, getHierarchySource, getHierarchySourceRoot, getLabelFor, getPropertiescreatePropertyEditorComponent, createPropertyEditorMenu, createPropertyNodes, delete, getCapabilities, getContext, remove, toTransferableclone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreatePropertyEditorComponent, createPropertyEditorMenu, delete, getCapabilities, getContext, toTransferablepublic NodeSelection(Context ctx, Node object, PersistenceField[] fields, int[][] indices, PropertyEditor[] editors, java.lang.String[] labels, Item description, boolean invokeValueForPathChanged)
public boolean contains(Graph graph, java.lang.Object object, boolean asNode)
contains in interface GraphSelectionprotected FieldProperty createProperty(Context c, int i)
createProperty in class FieldSelectionprotected PropertyEditorTree createTree()
createTree in class SelectionBasepublic java.lang.Object getDescription(java.lang.String type)
Describedtype.
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.getDescription in interface DescribedgetDescription in class FieldSelectiontype - the type of descriptionnull if no description is availablepublic GraphState getGraphState(int index)
getGraphState in interface GraphSelectionpublic java.lang.Object getObject(int index)
getObject in interface GraphSelectionpublic boolean isNode(int index)
isNode in interface GraphSelectionpublic int size()
size in interface GraphSelection