Class SingleGraphElementEditComponent
java.lang.Object
org.graffiti.plugin.editcomponent.ValueEditComponentAdapter
org.graffiti.plugin.editcomponent.AbstractValueEditComponent
org.graffiti.plugin.editcomponent.GraphComponentEditComponent
org.graffiti.plugin.editcomponent.SingleGraphElementEditComponent
- All Implemented Interfaces:
EventListener
,AttributeListener
,EdgeListener
,GraphListener
,NodeListener
,TransactionListener
,ValueEditComponent
- Direct Known Subclasses:
EdgeEditComponent
,NodeEditComponent
public abstract class SingleGraphElementEditComponent extends GraphComponentEditComponent
This class provides an edit component for graph elements.
- See Also:
JComboBox
,NodeEditComponent
,EdgeEditComponent
,GraphElement
-
Field Summary
Fields inherited from class org.graffiti.plugin.editcomponent.AbstractValueEditComponent
showEmpty
Fields inherited from interface org.graffiti.plugin.editcomponent.ValueEditComponent
EMPTY_STRING
-
Method Summary
Modifier and Type Method Description String
getCaption()
Returns a String suitable for the name column in the name value table.JComponent
getComponent()
Returns theValueEditComponent
'sJComponent
.void
setEditFieldValue()
Sets the current value of theAttribute
in the correspondingJComponent
.void
setGraphElement(GraphElement ge)
Sets the graph component selectable by this edit component.Methods inherited from class org.graffiti.plugin.editcomponent.GraphComponentEditComponent
postAttributeAdded, postAttributeChanged, postAttributeRemoved, preAttributeAdded, preAttributeChanged, preAttributeRemoved, transactionFinished, transactionStarted
Methods inherited from class org.graffiti.plugin.editcomponent.AbstractValueEditComponent
getDisplayable, getShowEmpty, isEnabled, setDisplayable, setEnabled, setShowEmpty
Methods inherited from class org.graffiti.plugin.editcomponent.ValueEditComponentAdapter
postDirectedChanged, postEdgeAdded, postEdgeRemoved, postEdgeReversed, postGraphCleared, postInEdgeAdded, postInEdgeRemoved, postNodeAdded, postNodeRemoved, postOutEdgeAdded, postOutEdgeRemoved, postSourceNodeChanged, postTargetNodeChanged, postUndirectedEdgeAdded, postUndirectedEdgeRemoved, preDirectedChanged, preEdgeAdded, preEdgeRemoved, preEdgeReversed, preGraphCleared, preInEdgeAdded, preInEdgeRemoved, preNodeAdded, preNodeRemoved, preOutEdgeAdded, preOutEdgeRemoved, preSourceNodeChanged, preTargetNodeChanged, preUndirectedEdgeAdded, preUndirectedEdgeRemoved, setParameter, setValue
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.graffiti.plugin.editcomponent.ValueEditComponent
setValue
-
Method Details
-
getCaption
Returns a String suitable for the name column in the name value table.- Returns:
- a String suitable for the name column in the name value table.
-
getComponent
Returns theValueEditComponent
'sJComponent
.- Returns:
- DOCUMENT ME!
- Throws:
RuntimeException
- DOCUMENT ME!
-
setEditFieldValue
public void setEditFieldValue()Sets the current value of theAttribute
in the correspondingJComponent
. -
setGraphElement
Sets the graph component selectable by this edit component.- Specified by:
setGraphElement
in classGraphComponentEditComponent
-