Class mozile.edit.Wrap

Object
   |
   +--mozile.edit.Command
         |
         +--mozile.edit.Wrap

class mozile.edit.Wrap
extends mozile.edit.Command

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, strings
 
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.
 Boolean isAvailable(<Event> event)
           Indicates that the command is available to be used.
 mozile.edit.State prepare(<Event> event)
           Prepares a state object for the wrap command.
 
Methods inherited from class mozile.edit.Command
localize, toString, evaluate, respond, test, trigger, request, unexecute
 

Field Detail

group

Boolean group

makesChanges

String makesChanges

name

String name

nested

Boolean nested

watchesChanges

String watchesChanges

Constructor Detail

mozile.edit.Wrap

mozile.edit.Wrap()

Method Detail

_getWrapper

Element _getWrapper(<Node> node, <Boolean> outerWrapper)

_isWrapper

Boolean _isWrapper(<Node> node)

execute

Object execute(<mozile.edit.State> state, <Boolean> fresh)

isActive

Boolean isActive(<Event> event)

isAvailable

Boolean isAvailable(<Event> event)

prepare

mozile.edit.State prepare(<Event> event)


Documentation generated by JSDoc on Wed Feb 20 13:25:28 2008