Class ExpressionWatchPanel

  • All Implemented Interfaces:
    ImageObserver, MenuContainer, Serializable, Accessible

    public class ExpressionWatchPanel
    extends BasePanel
    Panel that allows the definition of variable, boolean and numerical expressions, which can be updated by the user. Useful when debugging a flow.
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_ButtonAdd

        protected BaseButton m_ButtonAdd
        the button for adding an expression.
      • m_ButtonEdit

        protected BaseButton m_ButtonEdit
        the button for editing an expression.
      • m_ButtonRemove

        protected BaseButton m_ButtonRemove
        the button for removing an expression.
      • m_ButtonRemoveAll

        protected BaseButton m_ButtonRemoveAll
        the button for removing all expressions.
      • m_ButtonRefresh

        protected BaseButton m_ButtonRefresh
        the button for refreshing an expression.
      • m_ButtonRefreshAll

        protected BaseButton m_ButtonRefreshAll
        the button for refreshing all expression.
    • Constructor Detail

      • ExpressionWatchPanel

        public ExpressionWatchPanel()
    • Method Detail

      • initGUI

        protected void initGUI()
        Initializes the members.
        initGUI in class BasePanel
      • updateButtons

        protected void updateButtons()
        Updates the enabled state of the buttons.
      • initExpressionDialog

        protected void initExpressionDialog()
        Initializes the dialog for entering/updating an expression.
      • addExpression

        public void addExpression()
        Pops up dialog for entering a new expression.
      • addExpression

        public boolean addExpression​(String expr,
                                     ExpressionWatchPanel.ExpressionType type)
        Adds a new expression (if not already present).
        expr - the expression
        type - the type
        true if added
      • hasExpression

        public boolean hasExpression​(String expr,
                                     ExpressionWatchPanel.ExpressionType type)
        Checks whether the expression is already present.
        expr - the expression
        type - the type
        true if already present
      • updateExpression

        public void updateExpression()
        Pops up dialog for updating an expression.
      • removeSelectedExpressions

        public void removeSelectedExpressions()
        Removes all selected expressions.
      • removeAllExpressions

        public void removeAllExpressions()
        Removes all expressions.
      • refreshSelectedExpressions

        public void refreshSelectedExpressions()
        Removes all selected expressions.
      • refreshAllExpressions

        public void refreshAllExpressions()
        Removes all expressions.
      • setVariables

        public void setVariables​(Variables value)
        Sets the underlying Variables instance.
        value - the instance to use
      • getVariables

        public Variables getVariables()
        Returns the underlying Variables instance.
        the instance in use