Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.gendiapo.editor.document
Class GenDiapoEditorKit.ToggleStyledTag  view GenDiapoEditorKit.ToggleStyledTag download GenDiapoEditorKit.ToggleStyledTag.java

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended byjavax.swing.text.TextAction
          extended byjavax.swing.text.StyledEditorKit.StyledTextAction
              extended byorg.gendiapo.editor.document.GenDiapoEditorKit.ToggleStyledTag
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable, org.merlotxml.merlot.StateAction
Enclosing class:
GenDiapoEditorKit

public static class GenDiapoEditorKit.ToggleStyledTag
extends javax.swing.text.StyledEditorKit.StyledTextAction
implements org.merlotxml.merlot.StateAction


Field Summary
(package private)  javax.swing.JEditorPane editor
           
(package private)  org.merlotxml.merlot.MerlotDOMNode node
           
(package private)  java.lang.String tag
           
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface org.merlotxml.merlot.StateAction
SELECTABLE, SELECTED
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
GenDiapoEditorKit.ToggleStyledTag(javax.swing.JEditorPane editor, java.lang.String tag)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          This method is invoked when an action occurs.
 boolean isSelectable()
           
 boolean isSelected()
           
 void setSelectable(boolean selected)
           
 void setSelected(boolean selected)
           
 void update()
           
protected  void updateInputAttribute(GenDiapoEditorKit kit)
           
 
Methods inherited from class javax.swing.text.StyledEditorKit.StyledTextAction
getEditor, getStyledDocument, getStyledEditorKit, setCharacterAttributes, setParagraphAttributes
 
Methods inherited from class javax.swing.text.TextAction
augmentList, getFocusedComponent, getTextComponent
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.Action
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 

Field Detail

tag

java.lang.String tag

editor

javax.swing.JEditorPane editor

node

org.merlotxml.merlot.MerlotDOMNode node
Constructor Detail

GenDiapoEditorKit.ToggleStyledTag

public GenDiapoEditorKit.ToggleStyledTag(javax.swing.JEditorPane editor,
                                         java.lang.String tag)
Method Detail

isSelected

public boolean isSelected()
Specified by:
isSelected in interface org.merlotxml.merlot.StateAction

setSelected

public void setSelected(boolean selected)
Specified by:
setSelected in interface org.merlotxml.merlot.StateAction

isSelectable

public boolean isSelectable()
Specified by:
isSelectable in interface org.merlotxml.merlot.StateAction

setSelectable

public void setSelectable(boolean selected)
Specified by:
setSelectable in interface org.merlotxml.merlot.StateAction

update

public void update()

updateInputAttribute

protected void updateInputAttribute(GenDiapoEditorKit kit)

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Description copied from interface: java.awt.event.ActionListener
This method is invoked when an action occurs.

Specified by:
actionPerformed in interface java.awt.event.ActionListener