Class MozileStyleCommand
Object
|
+--MozileComponent
|
+--MozileCommand
|
+--MozileWrapCommand
|
+--MozileStyleCommand
- class
MozileStyleCommand
- extends MozileWrapCommand
Defined in XHTMLBasic.js
Constructor Summary |
MozileStyleCommand
(<String> configString)
Mozile Style Command Object -
Wraps the selection in span tags, or uses the style attribute to add CSS to a given selection.
|
Method Summary |
Void
|
execute(<Event> event)
Executes the command.
|
String
|
getAttribute()
Gets the attribute for the tage.
|
String
|
getStyle()
Gets the style for the module.
|
String
|
getTag()
Gets the tag for the module.
|
Boolean
|
isActive()
Mozile Style Command - Is Active -
Checks to see if the current node has a parent which has this.getAttribute() matching this.getStyle().
|
MozileStyleCommand
MozileStyleCommand(<String> configString)
Mozile Style Command Object -
Wraps the selection in span tags, or uses the style attribute to add CSS to a given selection. Behaves in most ways like the MozileWrapCommand it inherits from.
Configuration String Requirements: "mode=[inline|toggle|toggleBlock|block], style=[CSS style rules]", for example "mode=toggle, style='color: red; font-weight: bold". A tag is optional, and the default is "span". An attribute is also optional, and the default is "style".
Parameters:
configString
- A properly formatted configuration string.
execute
Void execute(<Event> event)
Parameters:
event
- The event object which triggered the command.
getAttribute
String getAttribute()
Gets the attribute for the tage. Default is "style".
getStyle
String getStyle()
Gets the style for the module. Throws an error if none exists.
getTag
String getTag()
Gets the tag for the module. Default is "span".
isActive
Boolean isActive()
Mozile Style Command - Is Active -
Checks to see if the current node has a parent which has this.getAttribute() matching this.getStyle().
Documentation generated by
JSDoc on Tue Apr 18 14:14:33 2006