Class BooleanEditComponent
java.lang.Object
org.graffiti.plugin.editcomponent.ValueEditComponentAdapter
org.graffiti.plugin.editcomponent.AbstractValueEditComponent
org.graffiti.plugins.editcomponents.defaults.BooleanEditComponent
- All Implemented Interfaces:
EventListener
,AttributeListener
,EdgeListener
,GraphListener
,NodeListener
,TransactionListener
,ValueEditComponent
public class BooleanEditComponent extends AbstractValueEditComponent
Represents a component, which can edit a boolean value.
- Version:
- $Revision: 1.12 $
-
Field Summary
Fields inherited from class org.graffiti.plugin.editcomponent.AbstractValueEditComponent
showEmpty
Fields inherited from interface org.graffiti.plugin.editcomponent.ValueEditComponent
EMPTY_STRING
-
Constructor Summary
Constructors Constructor Description BooleanEditComponent(Displayable disp)
Constructs a new boolean edit component, referencing the given displayable. -
Method Summary
Modifier and Type Method Description JComponent
getComponent()
Returns theJComponent
for editing this edit component.void
setEditFieldValue()
Sets the current value of theAttribute
in the correspondingJComponent
.void
setValue()
Sets the value of the displayable specified in theJComponent
.Methods inherited from class org.graffiti.plugin.editcomponent.AbstractValueEditComponent
getDisplayable, getShowEmpty, isEnabled, postAttributeChanged, preAttributeChanged, setDisplayable, setEnabled, setShowEmpty
Methods inherited from class org.graffiti.plugin.editcomponent.ValueEditComponentAdapter
postAttributeAdded, postAttributeRemoved, postDirectedChanged, postEdgeAdded, postEdgeRemoved, postEdgeReversed, postGraphCleared, postInEdgeAdded, postInEdgeRemoved, postNodeAdded, postNodeRemoved, postOutEdgeAdded, postOutEdgeRemoved, postSourceNodeChanged, postTargetNodeChanged, postUndirectedEdgeAdded, postUndirectedEdgeRemoved, preAttributeAdded, preAttributeRemoved, preDirectedChanged, preEdgeAdded, preEdgeRemoved, preEdgeReversed, preGraphCleared, preInEdgeAdded, preInEdgeRemoved, preNodeAdded, preNodeRemoved, preOutEdgeAdded, preOutEdgeRemoved, preSourceNodeChanged, preTargetNodeChanged, preUndirectedEdgeAdded, preUndirectedEdgeRemoved, setParameter, setValue, transactionFinished, transactionStarted
-
Constructor Details
-
BooleanEditComponent
Constructs a new boolean edit component, referencing the given displayable.- Parameters:
disp
- DOCUMENT ME!
-
-
Method Details
-
getComponent
Returns theJComponent
for editing this edit component.- Returns:
- the
JComponent
for editing this edit component.
-
setEditFieldValue
public void setEditFieldValue()Sets the current value of theAttribute
in the correspondingJComponent
. -
setValue
public void setValue()Sets the value of the displayable specified in theJComponent
. But only if it is different.
-