Class Revert

    • Constructor Detail

      • Revert

        public Revert()
        Instantiates the action.
    • Method Detail

      • hasChanged

        protected boolean hasChanged​(DataContainer cont)
        Checks whether the container got changed or the source has changed.
        Parameters:
        cont - the container to check
        Returns:
        true if changed
      • canRevert

        protected boolean canRevert()
        Checks whether any selected container can be reverted.
        Returns:
        true if any container can be reverted
      • doActionPerformed

        protected void doActionPerformed​(ActionEvent e)
        Invoked when an action occurs.
        Specified by:
        doActionPerformed in class adams.gui.action.AbstractBaseAction
        Parameters:
        e - the event