Class UndoPanel

    • Field Detail

      • m_Undo

        protected Undo m_Undo
        the undo manager.
    • Constructor Detail

      • UndoPanel

        public UndoPanel()
        Initializes the panel, the undo mechanism holds the undo list in memory.
      • UndoPanel

        public UndoPanel​(Class undoClass,
                         boolean onDisk)
        Initializes the panel, the undo mechanism holds the undo list either in memory or stores the objects on disk.
        Parameters:
        undoClass - the class of objects the undo list is for
        onDisk - if true then the objects are stored on disk
    • Method Detail

      • initialize

        protected void initialize()
        For initializing members.
        Overrides:
        initialize in class BasePanel
      • setUndo

        public void setUndo​(Undo value)
        Sets the undo manager to use, can be null if no undo-support wanted.
        Specified by:
        setUndo in interface UndoHandler
        Parameters:
        value - the undo manager to use
      • getUndo

        public Undo getUndo()
        Returns the current undo manager, can be null.
        Specified by:
        getUndo in interface UndoHandler
        Returns:
        the undo manager, if any
      • isUndoSupported

        public boolean isUndoSupported()
        Returns whether an Undo manager is currently available.
        Specified by:
        isUndoSupported in interface UndoHandler
        Returns:
        true if an undo manager is set