org.jhotdraw.gui
Interface AttributeEditor<T>
-
- All Known Implementing Classes:
- JAttributeSlider, JAttributeTextArea, JAttributeTextField
public interface AttributeEditor<T>Interface for a field or any other kind of editor which can be used to edit an attribute of the selectedFigures in aDrawingView.The
AttributeEditorcan be attached to a singleDrawingViewor to the wholeDrawingEditorby means of anAttributeFieldHandler.
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringATTRIBUTE_VALUE_PROPERTYstatic java.lang.StringMULTIPLE_VALUES_PROPERTY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidaddPropertyChangeListener(java.beans.PropertyChangeListener l)Adds a property change listener.TgetAttributeValue()Gets the attribute value.javax.swing.JComponentgetComponent()Returns the JComponent of the attribute field.booleangetValueIsAdjusting()Returns true if the field is currently adjusting the value.booleanisMultipleValues()This method returns the value of the multipleValues property.voidremovePropertyChangeListener(java.beans.PropertyChangeListener l)Removes a property change listener.voidsetAttributeValue(T newValue)Sets the attribute value.voidsetMultipleValues(boolean newValue)This method is called, if the figures of the attribute field have multiple values.
-
-
-
Field Detail
-
ATTRIBUTE_VALUE_PROPERTY
static final java.lang.String ATTRIBUTE_VALUE_PROPERTY
- See Also:
- Constant Field Values
-
MULTIPLE_VALUES_PROPERTY
static final java.lang.String MULTIPLE_VALUES_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getComponent
javax.swing.JComponent getComponent()
Returns the JComponent of the attribute field.
-
setAttributeValue
void setAttributeValue(T newValue)
Sets the attribute value. This is a bound property.- Parameters:
newValue-
-
getAttributeValue
T getAttributeValue()
Gets the attribute value.
-
setMultipleValues
void setMultipleValues(boolean newValue)
This method is called, if the figures of the attribute field have multiple values.- Parameters:
newValue-
-
isMultipleValues
boolean isMultipleValues()
This method returns the value of the multipleValues property.
-
getValueIsAdjusting
boolean getValueIsAdjusting()
Returns true if the field is currently adjusting the value.
-
addPropertyChangeListener
void addPropertyChangeListener(java.beans.PropertyChangeListener l)
Adds a property change listener.- Parameters:
l-
-
removePropertyChangeListener
void removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes a property change listener.- Parameters:
l-
-
-
DataMelt 3.0 © DataMelt by jWork.ORG