Class ToolBarUndoPanel

    • Field Detail

      • m_Undo

        protected Undo m_Undo
        the undo manager.
    • Constructor Detail

      • ToolBarUndoPanel

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

        public ToolBarUndoPanel​(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 ToolBarPanel
      • 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