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 Details

    • HistoryDropHandler

      public HistoryDropHandler(BeanInfo beanInfo)
  • 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

      protected abstract String getDatasetPropertyName(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 FeatureDescriptor findProperty(JComponent bean, String name)
    • bindHistorical

      protected boolean bindHistorical(DesignerContext context, JComponent bean, List<Path> paths)
    • bindDataset

      protected boolean bindDataset(DesignerContext context, JComponent bean, NodeBrowseInfo node)