Class DefaultUserActionManagerCtrl

    • Constructor Detail

      • DefaultUserActionManagerCtrl

        public DefaultUserActionManagerCtrl()
    • Method Detail

      • getAction

        protected String getAction​(org.zkoss.zk.ui.event.KeyEvent event)
      • onEvent

        public void onEvent​(org.zkoss.zk.ui.event.Event event)
                     throws Exception
        Specified by:
        onEvent in interface org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
        Throws:
        Exception
      • updateClipboardEffect

        protected void updateClipboardEffect​(Sheet sheet)
      • clearClipboard

        protected void clearClipboard()
      • registerHandler

        public void registerHandler​(String category,
                                    String action,
                                    UserActionHandler handler)
        Description copied from interface: UserActionManager
        Register a handler to the handler list of category/action, append to the last handler of same category/action.
        Specified by:
        registerHandler in interface UserActionManager
        Parameters:
        category - the category of the handler
        action - the action of the handler
        handler - the handler
      • setHandler

        public void setHandler​(String category,
                               String action,
                               UserActionHandler handler)
        Description copied from interface: UserActionManager
        set a handler to the handler list of category/action, it will remove all other handlers in same category/action
        Specified by:
        setHandler in interface UserActionManager
        Parameters:
        category - the category of the handler
        action - the action of the handler
        handler - the handler
      • doUndo

        protected boolean doUndo()
      • doRedo

        protected boolean doRedo()
      • clearUndoable

        protected void clearUndoable()