dundas.UndoableCommand Class

A command supporting undo and redo options when editing a file.
 

Inheritance Hierarchy

 
Class
   dundas.EventDisposable
      dundas.Command
         dundas.UndoableCommand
            dundas.ServerEntityUndoableCommand
            dundas.ShakingFeedbackCommand
 

Constructors

 
  Name Description
init Creates a new undo-able command. Inherited from dundas.Command.
 
 

Properties

 
  Name Description
action Gets or sets the action to be executed for this command. Inherited from dundas.Command.
caption Gets or sets the caption of this command. Inherited from dundas.Command.
categoryName Gets or sets the category name of this command. Inherited from dundas.Command.
cssClass Gets or sets a custom CSS class that can be applied to the command element. Inherited from dundas.Command.
data Gets the storage for this command. Inherited from dundas.Command.
description Gets or sets the description of this command. Inherited from dundas.Command.
id Gets the ID of this command. Inherited from dundas.Command.
imageUrl Gets or sets the image URL of this command. Inherited from dundas.Command.
invalidReason Gets or sets the value to describe why this command is marked as invalid. Inherited from dundas.Command.
isActionAsync Gets a value indicating whether or not the action is an async function. Inherited from dundas.Command.
isActionCollapse Gets or sets a value defining whether the toolbar will collapse when the command is executed. Inherited from dundas.Command.
isDisposed Gets a value indicating whether this instance has been disposed. Inherited from dundas.EventDisposable.
isEnabled Gets or sets whether this command is enabled. Inherited from dundas.Command.
isRedoActionAsync Gets the value to indicate whether or not the redoaction is an async function.
isTogglable Gets or sets whether toggle is enabled for this command. Inherited from dundas.Command.
isToggled Gets or sets whether this command is toggled. Inherited from dundas.Command.
isUndoActionAsync Gets the value to indicate whether or not the undoaction is an async function.
isUndone Gets or sets a value indicating whether or not this command is undone.
isValid Gets or sets a value indicating whether the command is valid. Inherited from dundas.Command.
redoAction Gets the function to redo this command.
showFeedback Gets the function to show a visual feed back for this command.
sortOrder Gets or sets the sort order for this command for insertion into toolbars and menus. Inherited from dundas.Command.
subCommands Gets or sets the sub commands of this command. Inherited from dundas.Command.
toggleGroup Gets or sets what toggle group this command is part of (for use as radio button). Inherited from dundas.Command.
uiCache Gets the UI cache table Inherited from dundas.EventDisposable.
undoAction Gets the function to undo this command.
 
 

Methods

 
  Name Description
bind Bind an event to this class object. Inherited from dundas.EventDisposable.
dispose Inherited from dundas.EventDisposable.
execute Execute the action.
feedback Creates the visual feedback when command is executed.
fromJObject Applies the property values from a plain object created from JSON to the properties of this instance. Inherited from Class.
notifyCommandExecuted Notify that this command has completed its execution.
raiseBindEvent Fire the event specified with eventName, or subscribe a handler. Inherited from dundas.EventDisposable.
redo Redo this command.
subscribe Subscribe or unsubscribe an event handler for an event. Inherited from dundas.EventDisposable.
subscribeDisposed Subscribe to the disposed event. Inherited from dundas.EventDisposable.
subscribeIsEnabledChanged Subscribe an event handler for IsEnabled event change. Handler to subscribe or unsubscribe.(Optional) True to unsubscribe. (Optional) True to subscribe a one time handler. Inherited from dundas.Command.
subscribeOnce Subscribe a one time event handler for an event. Inherited from dundas.EventDisposable.
toJSON Implementation for toJSON to return an object that will include this class's prototype property values when stringified. Inherited from Class.
trigger Raise an event. Inherited from dundas.EventDisposable.
unbind Unsubscribe an event. if handler is specified, unsubscribe that handler. if no parameters are specified, unbind everything. Inherited from dundas.EventDisposable.
unbindAll unsubscribe all events. Inherited from dundas.EventDisposable.
undo Undo this command.