public interface VisualObject extends ComponentProducer
VisualObject
interface defines the methods
required for objects to have a visual onscreen representation. The
onscreen version may be used to manipulate the properties of the
object.Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a listener to receive property change events for when this
object's value changes.
|
void |
firePropertyChange()
Fires a property change event for this object's value.
|
java.lang.Object |
getValue()
Gets the object value.
|
boolean |
hasChooser()
Gets the chooser flag.
|
void |
setRestrictions(java.lang.Object restrict)
Sets restrictions on the allowed object values.
|
void |
showChooser()
Shows the chooser dialog used to manipulate the object's
properties.
|
getComponent, refreshComponent
void showChooser()
hasChooser()
returns
false and this method has no effect.boolean hasChooser()
java.lang.Object getValue()
void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- the listener to add.void firePropertyChange()
void setRestrictions(java.lang.Object restrict)
restrict
- the restictions, a custom object that is known to
the child class.