Interface Adapter
-
- All Known Subinterfaces:
PropertyAdapter,SearchablePropertyAdapter
- All Known Implementing Classes:
AbstractPropertyAdapter,AbstractQueryAdapter,AbstractTagAdapter,ActionAdapter,CellUpdateAdapter,ExpressionPropertyAdapter,ExtensibleBinding,IndirectTagBindingAdapter,IndirectUDTTagAdapter,NamedQueryAdapter,SimpleBoundColorAdapter,SimpleBoundPropertyAdapter,SimpleBoundTagAdapter,SQLPropertyAdapter,TagHistoryAdapter,UDTTagAdapter
public interface AdapterAn adapter is essentially a rider on a component that affects or augments the component's normal behavior in some way. The two common types of adapters are PropertyAdapters and ActionAdapters. PropertyAdapters are associated with one property of the target component, usually setting it to the value of something else.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceAdapter.ValueHolder
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconnect(VisionClientContext appContext)Notifies the adapter that it should connect any listeners that it needs.voiddisconnect()Notifies the adapter that it should disconnect any listeners.InteractionDescriptor[]getInteractions()Retrieves an array of the interactions that this adapter depends on.java.awt.ComponentgetTarget()The target component is the component that this adapter serves.booleanisValid()Returns true if this adapter's configuration is valid.voidsetTarget(java.awt.Component c)voidshutdown()Notifies the adapter that it is becoming inactive, and should cease any polling/threaded activities.voidstartup()Notifies the adapter that it is becoming active, and should start any polling/threaded activities.
-
-
-
Method Detail
-
startup
void startup()
Notifies the adapter that it is becoming active, and should start any polling/threaded activities.
-
shutdown
void shutdown()
Notifies the adapter that it is becoming inactive, and should cease any polling/threaded activities.
-
disconnect
void disconnect()
Notifies the adapter that it should disconnect any listeners.
-
connect
void connect(VisionClientContext appContext)
Notifies the adapter that it should connect any listeners that it needs. Adapters will remain connected throughout their lifetime, even when they are dormant
-
getInteractions
InteractionDescriptor[] getInteractions()
Retrieves an array of the interactions that this adapter depends on. An interaction descriptor describes an inter-component interaction.
-
getTarget
java.awt.Component getTarget()
The target component is the component that this adapter serves. This means it is the target of a property adapter or the source of events for an action adapter.
-
setTarget
void setTarget(java.awt.Component c)
-
isValid
boolean isValid()
Returns true if this adapter's configuration is valid. This somewhat of a hack, to detect if something has gone wrong with the adapter (due do serialization, we think?)
-
-