|
JHotDraw 7.5.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@NotNull public interface AttributeEditor<T>
Interface for a field or any other kind of editor which can be used to edit
an attribute of the selected Figure
s in a DrawingView
.
The AttributeEditor
can be attached to a single DrawingView
or to the whole DrawingEditor
by means of an
AttributeFieldHandler
.
Field Summary | |
---|---|
static java.lang.String |
ATTRIBUTE_VALUE_PROPERTY
|
static java.lang.String |
MULTIPLE_VALUES_PROPERTY
|
Method Summary | |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Adds a property change listener. |
T |
getAttributeValue()
Gets the attribute value. |
javax.swing.JComponent |
getComponent()
Returns the JComponent of the attribute field. |
boolean |
getValueIsAdjusting()
Returns true if the field is currently adjusting the value. |
boolean |
isMultipleValues()
This method returns the value of the multipleValues property. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes a property change listener. |
void |
setAttributeValue(T newValue)
Sets the attribute value. |
void |
setMultipleValues(boolean newValue)
This method is called, if the figures of the attribute field have multiple values. |
Field Detail |
---|
static final java.lang.String ATTRIBUTE_VALUE_PROPERTY
static final java.lang.String MULTIPLE_VALUES_PROPERTY
Method Detail |
---|
javax.swing.JComponent getComponent()
void setAttributeValue(T newValue)
newValue
- T getAttributeValue()
void setMultipleValues(boolean newValue)
newValue
- boolean isMultipleValues()
boolean getValueIsAdjusting()
void addPropertyChangeListener(java.beans.PropertyChangeListener l)
l
- void removePropertyChangeListener(java.beans.PropertyChangeListener l)
l
-
|
Copyright 1996-2010 (c) by the authors and contributors of the JHotDraw project. Some rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |