public class PropertyInteractionDescriptor extends java.lang.Object implements InteractionDescriptor
| Constructor and Description |
|---|
PropertyInteractionDescriptor() |
PropertyInteractionDescriptor(java.awt.Component source,
java.beans.PropertyChangeListener listener,
PropertyAdapter adapter,
java.lang.String sourceProp) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
_getSymbolicSourcePath() |
void |
_setSymbolicSourcePath(java.lang.String symbolicSourcePath)
Sets the symbolic path for when the ID is told to serialize symbolically
|
void |
connect()
Connects the listener to the listenable
|
void |
disconnect()
Removes the listener from the listenable.
|
Adapter |
getAdapter()
Returns the adapter that this interaction listener is a slave to.
|
javax.swing.JComponent |
getListenable()
Returns the component (source component) that we listen to for detecting when the interaction is updated
|
java.beans.PropertyChangeListener |
getListener()
The property change listener that is used to listen to the listenable (source)
|
QualityCode |
getQuality()
Looks up the quality of the property this is listening to
|
java.awt.Component |
getSource()
Returns the source component
|
java.lang.String |
getSourceProperty()
Returns the name of the property on the source that we are interested in
|
java.lang.String |
getSourceQualityProperty() |
void |
initialize(java.lang.Class type,
java.lang.Object oldInstance,
java.lang.Object newInstance,
java.beans.Encoder out)
Serializes this ID
|
boolean |
isSerializeSymbolically()
True if this ID has been told to serialize symbolically
|
void |
setAdapter(Adapter a) |
void |
setConnected(boolean b)
Deprecated.
|
void |
setListener(java.beans.PropertyChangeListener listener)
Sets the listener (the PCL that listens to the source)
|
void |
setSerializeSymbolically(boolean b)
Notifies this ID that it should serialize symbolically.
|
void |
setSource(java.awt.Component component)
Sets the source component
|
void |
setSourceProperty(java.lang.String string)
Sets the source property name
|
java.lang.String |
toString() |
public PropertyInteractionDescriptor()
public PropertyInteractionDescriptor(java.awt.Component source,
java.beans.PropertyChangeListener listener,
PropertyAdapter adapter,
java.lang.String sourceProp)
public javax.swing.JComponent getListenable()
public java.beans.PropertyChangeListener getListener()
public java.awt.Component getSource()
getSource in interface InteractionDescriptorpublic Adapter getAdapter()
getAdapter in interface InteractionDescriptorpublic void setAdapter(Adapter a)
setAdapter in interface InteractionDescriptorpublic QualityCode getQuality()
public void setListener(java.beans.PropertyChangeListener listener)
public void setSource(java.awt.Component component)
setSource in interface InteractionDescriptorpublic void disconnect()
disconnect in interface InteractionDescriptorpublic void connect()
connect in interface InteractionDescriptorpublic java.lang.String getSourceProperty()
public void setSourceProperty(java.lang.String string)
public java.lang.String getSourceQualityProperty()
@Deprecated public void setConnected(boolean b)
public boolean isSerializeSymbolically()
isSerializeSymbolically in interface InteractionDescriptorpublic void setSerializeSymbolically(boolean b)
setSerializeSymbolically in interface InteractionDescriptorpublic java.lang.String toString()
toString in class java.lang.Objectpublic void initialize(java.lang.Class type,
java.lang.Object oldInstance,
java.lang.Object newInstance,
java.beans.Encoder out)
initialize in interface InteractionDescriptorpublic java.lang.String _getSymbolicSourcePath()
_getSymbolicSourcePath in interface InteractionDescriptorpublic void _setSymbolicSourcePath(java.lang.String symbolicSourcePath)
_setSymbolicSourcePath in interface InteractionDescriptor