Class SetQueryCommand

    • Constructor Detail

      • SetQueryCommand

        public SetQueryCommand​(Query query,
                               String oldFormula,
                               String oldComment,
                               String newFormula,
                               String newComment)
        Constructor
        Parameters:
        query - - The query object
        oldFormula - - The old query formula
        oldComment - - The old query comment
        newFormula - - The new query formula
        newComment - - The new query comment
    • Method Detail

      • execute

        public void execute()
      • undo

        public void undo()
      • getModifiedElement

        public Element getModifiedElement()
        Returns:
        the modified element or its closest relative (sibling or parent) if the element is not displayed.
      • getQueryProperty

        public Query getQueryProperty()
      • setText

        public void setText​(String newFormula,
                            String newComment)
        Set the new query property and comment text
        Parameters:
        newFormula - - The new query formula
        newComment - - The new query comment