Class CellUpdateAdapter
- java.lang.Object
-
- com.inductiveautomation.factorypmi.application.binding.AbstractPropertyAdapter
-
- com.inductiveautomation.factorypmi.application.binding.CellUpdateAdapter
-
- All Implemented Interfaces:
Adapter
,Adapter.ValueHolder
,SearchablePropertyAdapter
,PropertyAdapter
,java.beans.PropertyChangeListener
,java.util.EventListener
public class CellUpdateAdapter extends AbstractPropertyAdapter implements java.beans.PropertyChangeListener, SearchablePropertyAdapter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CellUpdateAdapter.CellUpdateSpec
static class
CellUpdateAdapter.RowIdentifier
-
Nested classes/interfaces inherited from class com.inductiveautomation.factorypmi.application.binding.AbstractPropertyAdapter
AbstractPropertyAdapter.EdtUpdateValue
-
Nested classes/interfaces inherited from interface com.inductiveautomation.factorypmi.application.binding.Adapter
Adapter.ValueHolder
-
Nested classes/interfaces inherited from interface com.inductiveautomation.factorypmi.application.binding.PropertyAdapter
PropertyAdapter.PAType
-
-
Field Summary
-
Fields inherited from class com.inductiveautomation.factorypmi.application.binding.AbstractPropertyAdapter
appContext, isTargetPropertyDynamic, log, overlayOptOut, target, targetPropertyName, value, valueClass
-
-
Constructor Summary
Constructors Constructor Description CellUpdateAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
connect(VisionClientContext appContext)
Calls connect() on all interaction descriptorsvoid
disconnect()
Calls disconnect() on all interaction descriptorsBindingConfiguration
getBindingConfiguration()
java.lang.String
getGetterMethodName()
InteractionDescriptor[]
getInteractions()
Retrieves an array of the interactions that this adapter depends on.PropertyAdapter.PAType
getReferenceType()
java.util.List<CellUpdateAdapter.CellUpdateSpec>
getUpdates()
void
propertyChange(java.beans.PropertyChangeEvent evt)
Listens to our target for when the target dataset changesvoid
setGetterMethodName(java.lang.String getterMethodName)
void
setUpdates(java.util.List<CellUpdateAdapter.CellUpdateSpec> newList)
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.protected void
updateTarget()
Sets the target property to the value.-
Methods inherited from class com.inductiveautomation.factorypmi.application.binding.AbstractPropertyAdapter
getQValue, getTarget, getTargetDesc, getTargetFullPath, getTargetPropertyName, getValueClass, handleError, handleNullToPrimitive, initLogger, isDataUsed, isDataUsed, isOverlayOptOut, isTargetPropertyDynamic, isValid, isValueClassPrimitive, setOverlayOptOut, setQValue, setSetterMethodName, setTarget, setTargetPropertyDynamic, setTargetPropertyName, setValue, setValueClass, toString, updateQuality, updateValue, useQuality
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.inductiveautomation.factorypmi.application.binding.Adapter
getTarget, isValid, setTarget
-
Methods inherited from interface com.inductiveautomation.factorypmi.application.binding.PropertyAdapter
getTargetPropertyName, setTargetPropertyName
-
-
-
-
Method Detail
-
getReferenceType
public PropertyAdapter.PAType getReferenceType()
- Specified by:
getReferenceType
in interfacePropertyAdapter
-
getBindingConfiguration
public BindingConfiguration getBindingConfiguration()
- Specified by:
getBindingConfiguration
in interfaceSearchablePropertyAdapter
-
connect
public void connect(VisionClientContext appContext)
Description copied from class:AbstractPropertyAdapter
Calls connect() on all interaction descriptors- Specified by:
connect
in interfaceAdapter
- Overrides:
connect
in classAbstractPropertyAdapter
-
disconnect
public void disconnect()
Description copied from class:AbstractPropertyAdapter
Calls disconnect() on all interaction descriptors- Specified by:
disconnect
in interfaceAdapter
- Overrides:
disconnect
in classAbstractPropertyAdapter
-
startup
public void startup()
Description copied from interface:Adapter
Notifies the adapter that it is becoming active, and should start any polling/threaded activities.- Specified by:
startup
in interfaceAdapter
- Overrides:
startup
in classAbstractPropertyAdapter
-
shutdown
public void shutdown()
Description copied from interface:Adapter
Notifies the adapter that it is becoming inactive, and should cease any polling/threaded activities.- Specified by:
shutdown
in interfaceAdapter
- Overrides:
shutdown
in classAbstractPropertyAdapter
-
getInteractions
public InteractionDescriptor[] getInteractions()
Description copied from interface:Adapter
Retrieves an array of the interactions that this adapter depends on. An interaction descriptor describes an inter-component interaction.- Specified by:
getInteractions
in interfaceAdapter
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent evt)
Listens to our target for when the target dataset changes- Specified by:
propertyChange
in interfacejava.beans.PropertyChangeListener
-
updateTarget
protected void updateTarget()
Description copied from class:AbstractPropertyAdapter
Sets the target property to the value. If a problem occurs, the problem is displayed, not thrown. Note that updateValue() is probably a better bet, as it updates both value and quality.- Overrides:
updateTarget
in classAbstractPropertyAdapter
-
getUpdates
public java.util.List<CellUpdateAdapter.CellUpdateSpec> getUpdates()
-
setUpdates
public void setUpdates(java.util.List<CellUpdateAdapter.CellUpdateSpec> newList)
-
getGetterMethodName
public java.lang.String getGetterMethodName()
-
setGetterMethodName
public void setGetterMethodName(java.lang.String getterMethodName)
-
-