Class HistoryDropHandler
- java.lang.Object
-
- com.inductiveautomation.factorypmi.designer.beaninfo.tags.AbstractBindingTagDropHandler
-
- com.inductiveautomation.factorypmi.designer.beaninfo.tags.HistoryDropHandler
-
- All Implemented Interfaces:
TagDropHandler
public abstract class HistoryDropHandler extends AbstractBindingTagDropHandler
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 Constructor Description HistoryDropHandler(java.beans.BeanInfo beanInfo)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected boolean
bindDataset(DesignerContext context, javax.swing.JComponent bean, NodeBrowseInfo node)
protected boolean
bindHistorical(DesignerContext context, javax.swing.JComponent bean, java.util.List<Path> paths)
protected java.beans.FeatureDescriptor
findProperty(javax.swing.JComponent bean, java.lang.String name)
protected abstract AggregationMode
getAggregationMode()
protected abstract java.lang.String
getDatasetPropertyName(javax.swing.JComponent bean)
protected abstract int
getPollingMode()
protected abstract int
getPollingRate()
protected abstract int
getRange()
protected abstract TimeUnits
getRangeUnits()
protected abstract ReturnFormat
getReturnFormat()
protected abstract int
getReturnSize()
boolean
handleDrop(DesignerContext context, java.util.List<NodeBrowseInfo> nodes, javax.swing.JComponent bean, java.awt.dnd.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
-
-
-
-
Method Detail
-
handleDrop
public boolean handleDrop(DesignerContext context, java.util.List<NodeBrowseInfo> nodes, javax.swing.JComponent bean, java.awt.dnd.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
protected abstract java.lang.String getDatasetPropertyName(javax.swing.JComponent bean)
-
getAggregationMode
protected abstract AggregationMode getAggregationMode()
-
getReturnFormat
protected abstract ReturnFormat getReturnFormat()
-
getReturnSize
protected abstract int getReturnSize()
-
getRange
protected abstract int getRange()
-
getRangeUnits
protected abstract TimeUnits getRangeUnits()
-
getPollingMode
protected abstract int getPollingMode()
-
getPollingRate
protected abstract int getPollingRate()
-
findProperty
protected java.beans.FeatureDescriptor findProperty(javax.swing.JComponent bean, java.lang.String name)
-
bindHistorical
protected boolean bindHistorical(DesignerContext context, javax.swing.JComponent bean, java.util.List<Path> paths)
-
bindDataset
protected boolean bindDataset(DesignerContext context, javax.swing.JComponent bean, NodeBrowseInfo node)
-
-