|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--mozile.edit.Command | +--mozile.edit.Insert
Defined in rich.js
Field Summary | |
Boolean |
group
Indicates that this command does not contain more commands. |
String |
makesChanges
Specifies what kind of change this command makes to the document. |
String |
name
The name for this command group. |
Boolean |
remove
Indicates that any contents of the selection should be removed before inserting. |
String |
watchesChanges
Specifies what kind of change will cause this command to change its isActive or isAvailable states. |
Fields inherited from class mozile.edit.Command |
name, group, makesChanges, watchesChanges
|
Constructor Summary | |
mozile.edit.Insert
()
A command used to insert a new element. |
Method Summary | |
Object
|
execute(<mozile.edit.State> state, <Boolean> fresh)
Inserts a new element at the selection. |
mozile.edit.State
|
prepare(<Event> event)
Prepares a state object for the wrap command. |
Methods inherited from class mozile.edit.Command |
toString, evaluate, respond, isAvailable, isActive, test, trigger, request, unexecute
|
Field Detail |
Boolean group
String makesChanges
String name
Boolean remove
String watchesChanges
Constructor Detail |
mozile.edit.Insert()
name
- The group's name.
Method Detail |
Object execute(<mozile.edit.State> state, <Boolean> fresh)
state
- The state information needed to execute this command.
fresh
- Optional. A value of "true" indicates that the window's selection is already in the correct place and does not need to be moved.
mozile.edit.State prepare(<Event> event)
event
- The event object to be converted into a state.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |