Class 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 Detail

      • HistoryDropHandler

        public HistoryDropHandler​(java.beans.BeanInfo beanInfo)
    • 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)