Class HistoryDropHandler
java.lang.Object
com.inductiveautomation.factorypmi.designer.beaninfo.tags.AbstractBindingTagDropHandler
com.inductiveautomation.factorypmi.designer.beaninfo.tags.HistoryDropHandler
- All Implemented Interfaces:
TagDropHandler
A TagDropHandler that is meant to bind to components that can display dataset-based history. If the tags dropped
represent historical tags, then a tag history binding is created. If the tag is is a single dataset tag, then a
standard tag binding is created.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
bindDataset
(DesignerContext context, JComponent bean, NodeBrowseInfo node) protected boolean
bindHistorical
(DesignerContext context, JComponent bean, List<Path> paths) protected FeatureDescriptor
findProperty
(JComponent bean, String name) protected abstract AggregationMode
protected abstract String
protected abstract int
protected abstract int
protected abstract int
getRange()
protected abstract TimeUnits
protected abstract ReturnFormat
protected abstract int
boolean
handleDrop
(DesignerContext context, List<NodeBrowseInfo> nodes, JComponent bean, DropTargetDropEvent dropEvent) Handles the drop of one or more tags onto a component.Methods inherited from class com.inductiveautomation.factorypmi.designer.beaninfo.tags.AbstractBindingTagDropHandler
findController, findProperty
-
Constructor Details
-
HistoryDropHandler
-
-
Method Details
-
handleDrop
public boolean handleDrop(DesignerContext context, List<NodeBrowseInfo> nodes, JComponent bean, DropTargetDropEvent dropEvent) Description copied from interface:TagDropHandler
Handles the drop of one or more tags onto a component. The tag paths may refer to a tag, tag folder, or tag property.- Returns:
- a boolean indicating whether or not the drop was successfully handled.
-
getDatasetPropertyName
-
getAggregationMode
-
getReturnFormat
-
getReturnSize
protected abstract int getReturnSize() -
getRange
protected abstract int getRange() -
getRangeUnits
-
getPollingMode
protected abstract int getPollingMode() -
getPollingRate
protected abstract int getPollingRate() -
findProperty
-
bindHistorical
-
bindDataset
-