|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--mozile.edit.Command | +--mozile.edit.Style
Defined in rich.js
Field Summary | |
String |
direction
Determines what direction to search for the target in. |
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. |
String |
styleName
Determines the style to be changed. |
String |
styleValue
Determines the new value for the style. |
String |
target
Determines what node is the target of the replacement. |
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.Style
()
A command used to style an element. |
Method Summary | |
Object
|
execute(<mozile.edit.State> state, <Boolean> fresh)
Inserts a new element at the selection. |
Boolean
|
isActive(<Event> event)
Indicates that the command is currently active. |
Boolean
|
isAvailable(<Event> event)
Indicates that the command is currently available. |
mozile.edit.State
|
prepare(<Event> event)
Prepares a state object for the wrap command. |
mozile.edit.State
|
test(<Event> event)
Tests an event to see if the command should be executed. |
Object
|
unexecute(<mozile.edit.State> state, fresh)
Removes all wrapper elements. |
Methods inherited from class mozile.edit.Command |
toString, evaluate, respond, trigger, request
|
Field Detail |
String direction
Boolean group
String makesChanges
String name
String styleName
String styleValue
String target
String watchesChanges
Constructor Detail |
mozile.edit.Style()
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.
Boolean isActive(<Event> event)
event
- Optional. The current event.
Boolean isAvailable(<Event> event)
event
- Optional. The current event.
mozile.edit.State prepare(<Event> event)
event
- The event object to be converted into a state.
mozile.edit.State test(<Event> event)
event
- Optional. The event object to test.
Object unexecute(<mozile.edit.State> state, fresh)
state
- The state information needed to unexecute this command.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |