Class MozileWrapCommand

Object
   |
   +--MozileCommand
         |
         +--MozileWrapCommand
Direct Known Subclasses:
MozileStyleCommand

class MozileWrapCommand
extends MozileCommand

Defined in XHTMLBasic.js


Field Summary
 Object mode
          Mozile Wrap Command - Mode - Selects the way in which this command operates.
 Object tag
          Mozile Wrap Command - Tag - The name of the element which will be the wrapper.
<static>  Object superclass
          
   
Fields inherited from class MozileCommand
type, id, label, tooltip, image, accesskey, accelerator, namespace, debugLevel, button, menuitem
 
Constructor Summary
MozileWrapCommand ()
           
 
Method Summary
 Object command(event)
           Mozile Wrap Command - Command - Behaves according to the mode.
 Object createMenuitem()
           Mozile Wrap Command - Create Menuitem - Creates an XUL menuitem element for this command.
 Object isActive()
           Mozile Wrap Command - Is Active - Checks to see if the current node has a parent which matches this.tag.
 Object unwrapRange(container, range, elementTemplate)
           Mozile Wrap Command - Unwrap Range - Given a range which does not span blocks, remove the range from the container which used to hold it, this removing it from the scope of the this.tag element.
 Object wrapBlock(block, element)
           Mozile Wrap Command - Wrap Block - Extract the contents of the given block, and inserts them within the given element which is made to be a child of the block.
 Object wrapInline(range, element)
           Mozile Wrap Command - Wrap Inline - Wraps a range (which does not span blocks) inside the given element.
 Object wrapRange(range, elementTemplate)
           Mozile Wrap Command - Wrap Range - Wraps an entire range (which might span multiple blocks) in copies of the given elementTemplate.
 
Methods inherited from class MozileCommand
init, debug, createButton, update
 

Field Detail

mode

Object mode

tag

Object tag

superclass

<static> Object superclass

Constructor Detail

MozileWrapCommand

MozileWrapCommand()

Method Detail

command

Object command(event)

createMenuitem

Object createMenuitem()

isActive

Object isActive()

unwrapRange

Object unwrapRange(container, range, elementTemplate)

wrapBlock

Object wrapBlock(block, element)

wrapInline

Object wrapInline(range, element)

wrapRange

Object wrapRange(range, elementTemplate)


Documentation generated by JSDoc on Fri Feb 3 19:22:12 2006