Class mozile.edit.SetAttribute

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

class mozile.edit.SetAttribute
extends mozile.edit.Command

Defined in rich.js


Field Summary
 String attributeName
          Determines the style to be changed.
 String attributeValue
          Determines the new value for the style.
 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 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, strings
 
Constructor Summary
mozile.edit.SetAttribute ()
            A command used to change and attribute of 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, target, attributeName, attributeValue)
           Prepares a state object for the wrap command.
 mozile.edit.State test(<Event> event, target, attributeName, attributeValue)
           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
localize, toString, evaluate, respond, trigger, request
 

Field Detail

attributeName

String attributeName

attributeValue

String attributeValue

direction

String direction

group

Boolean group

makesChanges

String makesChanges

name

String name

target

String target

watchesChanges

String watchesChanges

Constructor Detail

mozile.edit.SetAttribute

mozile.edit.SetAttribute()

Method Detail

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, target, attributeName, attributeValue)

test

mozile.edit.State test(<Event> event, target, attributeName, attributeValue)

unexecute

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


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