Class DefaultUserActionManagerCtrl

    • Constructor Detail

      • DefaultUserActionManagerCtrl

        public DefaultUserActionManagerCtrl()
    • Method Detail

      • getAction

        protected java.lang.String getAction​(org.zkoss.zk.ui.event.KeyEvent event)
      • getSupportedUserAction

        public java.util.Set<java.lang.String> getSupportedUserAction​(Sheet sheet)
        Description copied from interface: UserActionManagerCtrl
        Returns the supported user action that should be disabled
        Specified by:
        getSupportedUserAction in interface UserActionManagerCtrl
        Parameters:
        sheet - the sheet for cheeking
        Returns:
        a disabled user action array
      • getInterestedEvents

        public java.util.Set<java.lang.String> getInterestedEvents()
        Description copied from interface: UserActionManagerCtrl
        Returns the interested events of the spreadsheet.
        Specified by:
        getInterestedEvents in interface UserActionManagerCtrl
        Returns:
        event name list if you have any interested event of spreadsheet.
        See Also:
        Events
      • onEvent

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

        protected void updateClipboardEffect​(Sheet sheet)
      • clearClipboard

        protected void clearClipboard()
      • registerHandler

        public void registerHandler​(java.lang.String category,
                                    java.lang.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​(java.lang.String category,
                               java.lang.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
      • getHandlerList

        protected java.util.List<UserActionHandler> getHandlerList​(java.lang.String category,
                                                                   java.lang.String action)
      • doUndo

        protected boolean doUndo()
      • doRedo

        protected boolean doRedo()
      • clearUndoable

        protected void clearUndoable()