|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--mozile.edit.Command | +--mozile.edit.Wrap
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 |
nested
Determines whether wrappers may be nested. |
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.Wrap
()
A command used to wrap a selection inside a new element. |
Method Summary | |
Element
|
_getWrapper(<Node> node, <Boolean> outerWrapper)
Finds the wrapper for the given node if it has one. |
Boolean
|
_isWrapper(<Node> node)
Checks to see if the given node is a wrapper. |
Object
|
execute(<mozile.edit.State> state, <Boolean> fresh)
Wraps the current selection in a new element. |
Boolean
|
isActive(<Event> event)
Indicates that the command is currently active. |
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, test, trigger, request, unexecute
|
Field Detail |
Boolean group
String makesChanges
String name
Boolean nested
String watchesChanges
Constructor Detail |
mozile.edit.Wrap()
name
- The group's name.
Method Detail |
Element _getWrapper(<Node> node, <Boolean> outerWrapper)
node
- The node to start searching from.
outerWrapper
- Optional. When true the method will continue to search for wrappers instead of stopping when one is found.
Boolean _isWrapper(<Node> node)
node
- The node to check.
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.
Boolean isActive(<Event> event)
event
- Optional. The current event.
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 |