public class PropertyFilter extends SimpleManipulator
SimpleDataSource.NameEditorData
DataSource.Writable
cvsRev
UPDATE_DISPLAYED_VALUE, VALUE_INPUT
customTimer, EXPORT_READ_ONLY, EXPORT_READ_WRITE, NO_EXPORT, requiresSyncWrite, sharedTimer, syncWriteTimeout, timebase
autoSuspend, AUTOSUSPEND_DEFAULT, AUTOSUSPEND_NEVER, AUTOSUSPEND_NO_LISTENERS, AUTOSUSPEND_NO_LISTENERS_AND_NO_SOURCES, colorHi, colorHiHi, colorLo, colorLoLo, colorNormal, connectors, consoleLogger, currentColor, currentValue, debugLevel, DEFAULT_AUTOSUSPEND, dontConnect, gwtLog, hardSuspended, popupLogger, PRIMARYOUTPORTNAME, sendColors, stopped, suspended, timedPopupLogger, traceLogger, valueHi, valueHiHi, valueLo, valueLoLo
Constructor and Description |
---|
PropertyFilter()
Generic Constructor, Color set to null in currentValue.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getChangeColorTo() |
boolean |
getChangeTime()
Get whether or not to change the time in the outgoing ValueObject.
|
int |
getQuality()
Get the quality value for out-going valueObjects.
|
boolean |
getSendOnPropertyChange()
Get whether or not to send a new ValueObject every time the quality, color,
or timestamp of the data is changed.
|
long |
getTimeOffset()
Get the timeOffset to be applied to the timestamp of the out-going ValueObject.
|
java.awt.Color |
parseString(java.lang.String value)
This will parse a string.
|
void |
setChangeColorTo(java.lang.String colorString)
This sets the Color to be used in the outgoing ValueObject.
|
void |
setChangeTime(boolean changeTime)
Set whether or not to change the timestamp to the current time for the
outgoing ValueObject.
|
void |
setQuality(int quality)
Set the quality value for all out-going value objects.
|
void |
setSendOnPropertyChange(boolean sendOnPropertyChange)
Set whether or not to send a new ValueObject every time the quality, color,
or timestamp of the data is changed.
|
void |
setTimeOffset(long timeOffset)
Set the timeOffset (in millseconds) for all out-going value objects.
|
java.lang.String |
toString()
Provides a description of the current values and states.
|
void |
update(ValueObjectInterface newValue)
This takes the incoming value and sets the quality of the data.
|
ValueObjectInterface |
updateColor(ValueObjectInterface newValueObject)
The superclass sets the color according to values/levels which is not
what we want for this component.
|
void |
valueInput(ValueChangedEvent e)
This will take the string out the the event, and parse it.
|
getDefaultQualityForLocation
getInPortNames, getStaticLocationFor, setBooleanValue, setBoolValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValue, valueChanged
addConnector, addConnector, addDataSource, addPropertyChangeListener, addValueChangedListener, addVetoableChangeListener, authenticatedClientRequest, clientRequest, clientResponse, destroy, determineSuspendedStatus, getClassLicenseManager, getContainer, getCustomTimer, getDataSource, getDataSources, getDisplayName, getExportCriteria, getExposeComponentConnections, getName, getOutPortNames, getPullFromServers, getPushData, getPushName, getPushToServers, getServerListData, getTimebase, getTrace, isActive, isScreenLocal, refreshCurrentValue, removeConnector, removeDataSource, removePropertyChangeListener, removeValueChangedListener, removeVetoableChangeListener, requestSyncWrite, setAutoSuspend, setClassLicenseManager, setContainer, setCustomTimer, setDataSourceName, setExportCriteria, setExposeComponentConnections, setName, setPullFromServers, setPushData, setPushName, setPushToServers, setScreenLocal, setServerListData, setTimebase, setTrace, setValueObject, start, stop, tick, VIBEvent
addVIBEventListener, checkScript, executeInScriptInternal, executeScript, executeScriptInternal, executeScriptInternal, getAutoSuspend, getBooleanValue, getBoolValue, getColorHi, getColorHiHi, getColorLo, getColorLoLo, getColorNormal, getConnectors, getConsoleLogger, getCurrentColor, getDataSourceName, getDoubleValue, getFloatValue, getGWTLogger, getIncomingValueObject, getInScript, getIntValue, getLongValue, getParent, getPopupLogger, getScript, getScriptEngine, getSendColors, getSources, getStringValue, getSyncWriteTimeout, getTimedPopupLogger, getTraceLogger, getValueHi, getValueHiHi, getValueLo, getValueLoLo, getValueObject, init, isHardSuspended, isRunning, isSendOnlyChangedValuesDefault, isSuspended, logException, logGWT, logGWT, logMessage, logTrace, n2sortConnectors, performScriptSubstitutions, popupMessage, post, removeConnector, removeVIBEventListener, replaceConnectors, scriptExtensionSubstition, setColorHi, setColorHiHi, setColorLo, setColorLoLo, setColorNormal, setConsoleLogger, setGWTLogger, setHardSuspended, setInScript, setParent, setPopupLogger, setScript, setSendColors, setSendOnlyChangedValuesDefault, setSyncWriteTimeout, setTimedPopupLogger, setTraceLogger, setValueHi, setValueHiHi, setValueLo, setValueLoLo, updateListeners, updateListeners, updateListeners, whoAmI
public PropertyFilter()
public java.lang.String getChangeColorTo()
public boolean getChangeTime()
public int getQuality()
ValueObjectInterface
public boolean getSendOnPropertyChange()
public long getTimeOffset()
ValueObjectInterface
public java.awt.Color parseString(java.lang.String value)
public void setChangeColorTo(java.lang.String colorString) throws BadParameterException
changeColorTo
- The changeColorTo to set.BadParameterException
public void setChangeTime(boolean changeTime)
changeTime
- if true the ValueObject's timestamp will be set to the current System timepublic void setQuality(int quality)
newQuality
- a valid ValueObjectInterface quality valueValueObjectInterface
public void setSendOnPropertyChange(boolean sendOnPropertyChange)
sendOnPropertyChange
- if true then every time a property is changed a new ValueObject will be sent.public void setTimeOffset(long timeOffset)
timeOffset
- time (plus or minus) in milliseconds to apply to the timestampValueObjectInterface
public java.lang.String toString()
toString
in class Manipulator
public void update(ValueObjectInterface newValue) throws VIBUpdateFailedException
VIBUpdateFailedException
public ValueObjectInterface updateColor(ValueObjectInterface newValueObject)
updateColor
in class DataSource
public void valueInput(ValueChangedEvent e) throws VIBUpdateFailedException
valueInput
in class Manipulator
e
- The ValueChangedEvent that the bean or data source has sent.VIBUpdateFailedException
Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.