Overview | File | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## Class draw2d.CommandStackEvent

    Object
       |
       +--draw2d.CommandStackEvent

class draw2d.CommandStackEvent

Defined in CommandStackEvent.js
Version: 0.9.14
Author: Andreas Herz

Field Summary
`Object` | `command`
`Object` | `details`
`Object` | `type`

Constructor Summary
`draw2d.CommandStackEvent ( command, details)` Instances of this class are sent whenever stack events occur.

Method Summary
`draw2d.Command` | `getCommand()` Returns null or a Command if a command is relevant to the current event.
`Object` | `getDetails()` Returns an integer identifying the type of event which has occurred ( defined by draw2d.CommandStack).
`boolean` | `isPostChangeEvent()` Returns true if this event is fired after the stack having changed.
`boolean` | `isPreChangeEvent()` Returns true if this event is fired prior to the stack changing.

Field Detail

### command

    Object command

### details

    Object details

### type

    Object type

Constructor Detail

### draw2d.CommandStackEvent

    draw2d.CommandStackEvent( command, details)

Instances of this class are sent whenever stack events occur. The type of event can be determined by calling getDetail(), and comparing the return value to constants defined by draw2d.CommandStack. Warning: this class is not intended to be subclassed.

Version: 0.9.14
Author: Andreas Herz

Method Detail

### getCommand

    draw2d.Command getCommand()

Returns null or a Command if a command is relevant to the current event.

### getDetails

    Object getDetails()

Returns an integer identifying the type of event which has occurred ( defined by draw2d.CommandStack).

### isPostChangeEvent

    boolean isPostChangeEvent()

Returns true if this event is fired after the stack having changed.

Returns:

true if post-change event

### isPreChangeEvent

    boolean isPreChangeEvent()

Returns true if this event is fired prior to the stack changing.

Returns:

true if pre-change event

Overview | File | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Documentation generated by JSDoc on Thu Feb 7 23:45:47 2008