Class ClientTagFolder
- java.lang.Object
-
- com.inductiveautomation.ignition.common.sqltags.tags.AbstractTag
-
- com.inductiveautomation.factorypmi.application.sqltags.AbstractClientTag
-
- com.inductiveautomation.factorypmi.application.sqltags.ClientTagFolder
-
- All Implemented Interfaces:
ClientTag
,Diagnosable
,MutableTag
,Tag
,TagNode
,TagScriptMonitor
,java.lang.Comparable<Tag>
- Direct Known Subclasses:
SystemTagFolder
public class ClientTagFolder extends AbstractClientTag
-
-
Field Summary
-
Fields inherited from class com.inductiveautomation.factorypmi.application.sqltags.AbstractClientTag
appContext, deleted, LOGGER, name, pathContext
-
Fields inherited from class com.inductiveautomation.ignition.common.sqltags.tags.AbstractTag
accessRights, attributes, enabled, eventScripts, permissionModel, type
-
-
Constructor Summary
Constructors Constructor Description ClientTagFolder()
For serialization.ClientTagFolder(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChild(Tag tag)
Adds a child tag to this tag folder.void
applyDiff(TagDiff diff)
Applies the diff to this tag, and fires one change at the end.ClientTag
findChild(java.lang.String tagName)
Attempts to find a tag with the given name (case insensitive).java.util.List<ClientTag>
getChildren()
Returns a list of children.TagType
getType()
Returns the type of this tag.boolean
isEnabled()
Returns the enabled bit for this tagvoid
notifyTagDeleted()
Called when this tag is removed.Tag
removeChild(java.lang.String tagName)
Removes the child with the given name (case insensitive).void
setChildren(java.util.List<ClientTag> list)
Shouldn't be called directly.void
setEnabled(boolean en)
Sets this tag enabled/disabledvoid
startBinding(VisionClientContext appContext, TagPath pathContext, TagChangeListener rootListener)
Starts any binding for the tag, such as an expression binding or a SQL query bindingvoid
stopBinding()
Stops any binding activities for this tag-
Methods inherited from class com.inductiveautomation.factorypmi.application.sqltags.AbstractClientTag
checkName, fireScriptEvent, fireTagChange, getAlarmStates, getAttribute, getCurrentValue, getName, getPath, getValueRaw, hasPermission, isAlarmingSupported, onScriptError, onScriptSuccess, sampleDiagnostics, setAccessRights, setAlarmStates, setAlarmStates, setAttribute, setCurrentValue, setEventScripts, setName, setTypeAndValue, setTypeAndValue, setTypeAndValue, transferState, updateRuntimeQuality
-
Methods inherited from class com.inductiveautomation.ignition.common.sqltags.tags.AbstractTag
coerceValue, compareTo, getAccessRights, getChild, getDataType, getEventScripts, getPermissionModel, getRawAttributes, main, setDataType, setPermissionModel, setRawAttributes, setValue
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.inductiveautomation.ignition.common.sqltags.model.MutableTag
setDataType
-
Methods inherited from interface com.inductiveautomation.ignition.common.sqltags.model.Tag
getAccessRights, getDataType, getEventScripts, getPermissionModel
-
-
-
-
Method Detail
-
getChildren
public java.util.List<ClientTag> getChildren()
Description copied from interface:TagNode
Returns a list of children.- Specified by:
getChildren
in interfaceTagNode
- Overrides:
getChildren
in classAbstractClientTag
- Returns:
- children, NULL if not a folder.
-
setChildren
public void setChildren(java.util.List<ClientTag> list)
Shouldn't be called directly. For serialization
-
addChild
public void addChild(Tag tag)
Description copied from interface:ClientTag
Adds a child tag to this tag folder. Will throw an UnsupportedOperationException on anything but a folder tag- Specified by:
addChild
in interfaceClientTag
- Overrides:
addChild
in classAbstractTag
-
notifyTagDeleted
public void notifyTagDeleted()
Description copied from interface:ClientTag
Called when this tag is removed. Should notify all subscribers that it no longer exists- Specified by:
notifyTagDeleted
in interfaceClientTag
- Overrides:
notifyTagDeleted
in classAbstractClientTag
-
getType
public TagType getType()
Description copied from interface:Tag
Returns the type of this tag.
-
isEnabled
public boolean isEnabled()
Description copied from interface:Tag
Returns the enabled bit for this tag- Specified by:
isEnabled
in interfaceTag
- Overrides:
isEnabled
in classAbstractTag
-
setEnabled
public void setEnabled(boolean en)
Description copied from interface:MutableTag
Sets this tag enabled/disabled- Specified by:
setEnabled
in interfaceMutableTag
- Overrides:
setEnabled
in classAbstractClientTag
-
findChild
public ClientTag findChild(java.lang.String tagName)
Description copied from interface:ClientTag
Attempts to find a tag with the given name (case insensitive).- Specified by:
findChild
in interfaceClientTag
- Overrides:
findChild
in classAbstractClientTag
-
removeChild
public Tag removeChild(java.lang.String tagName)
Description copied from interface:ClientTag
Removes the child with the given name (case insensitive). Will throw an UnsupportedOperationException on anything but a folder tag. Returns the tag removed, or null if no tag by the given name was found.- Specified by:
removeChild
in interfaceClientTag
- Overrides:
removeChild
in classAbstractClientTag
-
applyDiff
public void applyDiff(TagDiff diff)
Description copied from class:AbstractClientTag
Applies the diff to this tag, and fires one change at the end.- Specified by:
applyDiff
in interfaceClientTag
- Overrides:
applyDiff
in classAbstractClientTag
-
startBinding
public void startBinding(VisionClientContext appContext, TagPath pathContext, TagChangeListener rootListener)
Description copied from interface:ClientTag
Starts any binding for the tag, such as an expression binding or a SQL query binding- Specified by:
startBinding
in interfaceClientTag
- Overrides:
startBinding
in classAbstractClientTag
-
stopBinding
public void stopBinding()
Description copied from interface:ClientTag
Stops any binding activities for this tag- Specified by:
stopBinding
in interfaceClientTag
- Overrides:
stopBinding
in classAbstractClientTag
-
-