Class AbstractValueDefinition

    • Field Detail

      • m_Enabled

        protected boolean m_Enabled
        whether the value definition is enabled.
      • m_Name

        protected String m_Name
        the name of the value.
      • m_Display

        protected String m_Display
        the display text.
      • m_Help

        protected String m_Help
        the help text.
      • m_FlowContext

        protected Actor m_FlowContext
        the flow context.
    • Constructor Detail

      • AbstractValueDefinition

        public AbstractValueDefinition()
    • Method Detail

      • getFlowContext

        public Actor getFlowContext()
        Returns the flow context, if any.
        Specified by:
        getFlowContext in interface FlowContextHandler
        Returns:
        the actor, null if none available
      • requiresFlowContext

        protected abstract boolean requiresFlowContext()
        Returns whether flow context is required.
        Returns:
        true if required
      • setEnabled

        public void setEnabled​(boolean value)
        Sets whether the definition is to be used.
        Parameters:
        value - true if enabled
      • getEnabled

        public boolean getEnabled()
        Returns whether the definition is to be used.
        Returns:
        true if enabled
      • enabledTipText

        public String enabledTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setName

        public void setName​(String value)
        Sets the name of the value.
        Parameters:
        value - the name
      • getName

        public String getName()
        Returns the name of the value.
        Returns:
        the name
      • nameTipText

        public String nameTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setDisplay

        public void setDisplay​(String value)
        Sets the display text for the value.
        Parameters:
        value - the display text
      • getDisplay

        public String getDisplay()
        Returns the display text for the value.
        Returns:
        the display text
      • displayTipText

        public String displayTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setHelp

        public void setHelp​(String value)
        Sets the help text for the value.
        Parameters:
        value - the help text
      • getHelp

        public String getHelp()
        Returns the help text for the value.
        Returns:
        the help text
      • helpTipText

        public String helpTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • check

        protected boolean check()
        Method for checking setup state.
        Returns:
        true if checks successful
      • setDefaultValueAsString

        public abstract void setDefaultValueAsString​(String value)
        Sets the default value as string.
        Parameters:
        value - the default value
      • getDefaultValueAsString

        public abstract String getDefaultValueAsString()
        Returns the default of the value as string.
        Returns:
        the default
      • addToPanel

        public abstract boolean addToPanel​(PropertiesParameterPanel panel)
        Adds the value to the panel.
        Parameters:
        panel - the panel to add to
        Returns:
        true if successfully added
      • headlessInteraction

        public abstract String headlessInteraction()
        Prompts the user to enter a value in headless mode and returns it.
        Returns:
        the entered value, null if canceled
      • canBeRestored

        public boolean canBeRestored()
        Returns whether this definition can be restored from a restoration file.
        Returns:
        true if can be restored