Class InsertQueryCommand

  • All Implemented Interfaces:
    Command

    public class InsertQueryCommand
    extends AbstractCommand
    The insert query command class
    • Field Detail

      • queryList

        protected final QueryList queryList
        The queries
      • index

        protected final int index
        The insert index
    • Constructor Detail

      • InsertQueryCommand

        public InsertQueryCommand​(QueryList queryList,
                                  int index)
        Constructor
        Parameters:
        queryList - - The queries list
        index - - The insert index
    • 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.
      • getIndex

        public int getIndex()
      • getAddedQuery

        public Query getAddedQuery()