public class SimpleBoundColorAdapter extends AbstractPropertyAdapter implements java.beans.PropertyChangeListener, Blinker, SearchablePropertyAdapter
Modifier and Type | Class and Description |
---|---|
static class |
SimpleBoundColorAdapter.ColorState
Deprecated.
|
static class |
SimpleBoundColorAdapter.ColorStateTable
Deprecated.
|
AbstractPropertyAdapter.EDTUpdateValue
PropertyAdapter.PAType
Adapter.ValueHolder
Modifier and Type | Field and Description |
---|---|
static int |
DIRECT_MODE |
static int |
NUMBER_TRANSLATION_MODE |
static int |
STRING_MODE |
appContext, isTargetPropertyDynamic, log, overlayOptOut, target, targetPropertyName, value, valueClass
Constructor and Description |
---|
SimpleBoundColorAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
connect(VisionClientContext appContext)
Calls connect() on all interaction descriptors
|
void |
doBlink()
Implementation of Blinker interface.
|
BindingConfiguration |
getBindingConfiguration() |
ColorState |
getCurrentState() |
PropertyInteractionDescriptor |
getInteraction() |
InteractionDescriptor[] |
getInteractions()
Retrieves an array of the interactions that this adapter depends on.
|
int |
getMode() |
PropertyAdapter.PAType |
getReferenceType() |
ColorStateTable |
getTranslationTable() |
void |
propertyChange(java.beans.PropertyChangeEvent evt)
Listens to the property that we are bound to (source property) Calls setValue() with the new value.
|
void |
setCurrentState(ColorState state) |
void |
setInteraction(PropertyInteractionDescriptor descriptor) |
void |
setMode(int i) |
void |
setQValue(QualifiedValue newValue)
Overridden to provide translation logic.
|
void |
setTranslationTable(ColorStateTable table) |
void |
shutdown()
Notifies the adapter that it is becoming inactive, and should cease any polling/threaded activities.
|
void |
startup()
Notifies the adapter that it is becoming active, and should start any polling/threaded activities.
|
canUpdate, disconnect, getQValue, getTarget, getTargetDesc, getTargetFullPath, getTargetPropertyName, getValueClass, handleError, handleNullToPrimitive, initLogger, isDataUsed, isDataUsed, isOverlayOptOut, isTargetPropertyDynamic, isValid, setOverlayOptOut, setSetterMethodName, setTarget, setTargetPropertyDynamic, setTargetPropertyName, setValue, setValueClass, toString, updateQuality, updateTarget, updateValue, useQuality
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTargetPropertyName, setTargetPropertyName
disconnect, getTarget, isValid, setTarget
public static final int DIRECT_MODE
public static final int NUMBER_TRANSLATION_MODE
public static final int STRING_MODE
public PropertyAdapter.PAType getReferenceType()
getReferenceType
in interface PropertyAdapter
public BindingConfiguration getBindingConfiguration()
getBindingConfiguration
in interface SearchablePropertyAdapter
public void connect(VisionClientContext appContext)
AbstractPropertyAdapter
connect
in interface Adapter
connect
in class AbstractPropertyAdapter
public void startup()
Adapter
startup
in interface Adapter
startup
in class AbstractPropertyAdapter
public void shutdown()
Adapter
shutdown
in interface Adapter
shutdown
in class AbstractPropertyAdapter
public InteractionDescriptor[] getInteractions()
Adapter
getInteractions
in interface Adapter
public void doBlink()
public void setQValue(QualifiedValue newValue)
setQValue
in interface Adapter.ValueHolder
setQValue
in class AbstractPropertyAdapter
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
public PropertyInteractionDescriptor getInteraction()
public void setInteraction(PropertyInteractionDescriptor descriptor)
public int getMode()
public void setMode(int i)
public ColorStateTable getTranslationTable()
public void setTranslationTable(ColorStateTable table)
public ColorState getCurrentState()
public void setCurrentState(ColorState state)