Class GraphComponentEditComponent
java.lang.Object
org.graffiti.plugin.editcomponent.ValueEditComponentAdapter
org.graffiti.plugin.editcomponent.AbstractValueEditComponent
org.graffiti.plugin.editcomponent.GraphComponentEditComponent
- All Implemented Interfaces:
EventListener
,AttributeListener
,EdgeListener
,GraphListener
,NodeListener
,TransactionListener
,ValueEditComponent
- Direct Known Subclasses:
SingleGraphElementEditComponent
public abstract class GraphComponentEditComponent extends AbstractValueEditComponent
This class provides an edit component for parts of a graph.
- See Also:
SingleGraphElementEditComponent
,SelectionEditComponent
-
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 void
postAttributeAdded(AttributeEvent e)
Called after an attribute as been added.void
postAttributeChanged(AttributeEvent e)
Called after a change of an attribute took place.void
postAttributeRemoved(AttributeEvent e)
Called just before an attribute is removed.void
preAttributeAdded(AttributeEvent e)
Called just before an attribute is added.void
preAttributeChanged(AttributeEvent e)
Called before a change of an attribute takes place.void
preAttributeRemoved(AttributeEvent e)
Called just before an attribute is removed.abstract void
setGraphElement(GraphElement graphElement)
Sets the graph component selectable by this edit component.void
transactionFinished(TransactionEvent t, BackgroundTaskStatusProviderSupportingExternalCall status)
Called if a transaction got finished.void
transactionStarted(TransactionEvent t)
Called if a transaction got started.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
getComponent, setEditFieldValue, setValue
-
Method Details
-
setGraphElement
Sets the graph component selectable by this edit component. -
postAttributeAdded
Called after an attribute as been added.- Specified by:
postAttributeAdded
in interfaceAttributeListener
- Overrides:
postAttributeAdded
in classValueEditComponentAdapter
- Parameters:
e
- the AttributeEvent detailing changes.
-
postAttributeChanged
Called after a change of an attribute took place.- Specified by:
postAttributeChanged
in interfaceAttributeListener
- Overrides:
postAttributeChanged
in classAbstractValueEditComponent
- Parameters:
e
- the AttributeEvent detailing the changes.
-
postAttributeRemoved
Called just before an attribute is removed.- Specified by:
postAttributeRemoved
in interfaceAttributeListener
- Overrides:
postAttributeRemoved
in classValueEditComponentAdapter
- Parameters:
e
- the AttributeEvent detailing the changes.
-
preAttributeAdded
Called just before an attribute is added.- Specified by:
preAttributeAdded
in interfaceAttributeListener
- Overrides:
preAttributeAdded
in classValueEditComponentAdapter
- Parameters:
e
- the AttributeEvent detailing the changes.
-
preAttributeChanged
Called before a change of an attribute takes place.- Specified by:
preAttributeChanged
in interfaceAttributeListener
- Overrides:
preAttributeChanged
in classAbstractValueEditComponent
- Parameters:
e
- the AttributeEvent detailing the changes.
-
preAttributeRemoved
Called just before an attribute is removed.- Specified by:
preAttributeRemoved
in interfaceAttributeListener
- Overrides:
preAttributeRemoved
in classValueEditComponentAdapter
- Parameters:
e
- the AttributeEvent detailing the changes.
-
transactionFinished
public void transactionFinished(TransactionEvent t, BackgroundTaskStatusProviderSupportingExternalCall status)Called if a transaction got finished.- Specified by:
transactionFinished
in interfaceTransactionListener
- Overrides:
transactionFinished
in classValueEditComponentAdapter
- Parameters:
t
- the transaction event.
-
transactionStarted
Called if a transaction got started.- Specified by:
transactionStarted
in interfaceTransactionListener
- Overrides:
transactionStarted
in classValueEditComponentAdapter
- Parameters:
t
- the transaction event.
-