Class StringEditComponent
java.lang.Object
org.graffiti.plugin.editcomponent.ValueEditComponentAdapter
org.graffiti.plugin.editcomponent.AbstractValueEditComponent
org.graffiti.plugins.editcomponents.defaults.StringEditComponent
- All Implemented Interfaces:
EventListener
,AttributeListener
,EdgeListener
,GraphListener
,NodeListener
,TransactionListener
,ValueEditComponent
- Direct Known Subclasses:
TextAreaEditComponent
public class StringEditComponent extends AbstractValueEditComponent
StringEditComponent
provides an edit component for editing
strings. The edit field has just one line.- Version:
- $Revision: 1.9 $
- See Also:
AbstractValueEditComponent
,JTextComponent
,TextAreaEditComponent
-
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 StringEditComponent(Displayable disp)
Constructs a newStringEditComponent
. -
Method Summary
Modifier and Type Method Description JComponent
getComponent()
Returns theJComponent
of this edit component.void
setEditFieldValue()
Sets the current value of the displayable in the correspondingJComponent
.void
setParameter(String setting, Object value)
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, setValue, transactionFinished, transactionStarted
-
Constructor Details
-
StringEditComponent
Constructs a newStringEditComponent
.- Parameters:
disp
- DOCUMENT ME!
-
-
Method Details
-
getComponent
Returns theJComponent
of this edit component.- Returns:
- the
JComponent
of this edit component.
-
setEditFieldValue
public void setEditFieldValue()Sets the current value of the displayable in the correspondingJComponent
. -
setValue
public void setValue()Sets the value of the displayable specified in theJComponent
. But only if it is different. -
setParameter
- Specified by:
setParameter
in interfaceValueEditComponent
- Overrides:
setParameter
in classValueEditComponentAdapter
-