|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractAction
org.bushe.swing.action.BasicAction
net.atlanticbb.tantlinger.ui.DefaultAction
net.atlanticbb.tantlinger.ui.text.actions.HTMLTextEditAction
net.atlanticbb.tantlinger.ui.text.actions.HTMLInlineAction
public class HTMLInlineAction
Action which toggles inline HTML elements
Field Summary | |
---|---|
static int |
BOLD
|
static int |
CITE
|
static int |
CODE
|
static int |
EM
|
static java.lang.String[] |
INLINE_TYPES
|
static int |
ITALIC
|
static int |
STRIKE
|
static int |
STRONG
|
static int |
SUB
|
static int |
SUP
|
static int |
UNDERLINE
|
Fields inherited from class net.atlanticbb.tantlinger.ui.text.actions.HTMLTextEditAction |
---|
DISABLED, EDITOR, SOURCE, WYSIWYG |
Fields inherited from class org.bushe.swing.action.BasicAction |
---|
DEFAULT_ENABLED_STATE |
Fields inherited from class javax.swing.AbstractAction |
---|
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
Constructor Summary | |
---|---|
HTMLInlineAction(int itype)
Creates a new HTMLInlineAction |
Method Summary | |
---|---|
javax.swing.text.html.HTML.Tag |
getTag()
|
protected void |
sourceEditPerformed(java.awt.event.ActionEvent e,
javax.swing.JEditorPane editor)
|
protected void |
updateSourceContextState(javax.swing.JEditorPane ed)
|
protected void |
updateWysiwygContextState(javax.swing.JEditorPane ed)
|
protected void |
wysiwygEditPerformed(java.awt.event.ActionEvent e,
javax.swing.JEditorPane editor)
|
Methods inherited from class net.atlanticbb.tantlinger.ui.text.actions.HTMLTextEditAction |
---|
actionPerformedCatch, contextChanged, execute, getCurrentEditor, getEditMode |
Methods inherited from class net.atlanticbb.tantlinger.ui.DefaultAction |
---|
shouldBeEnabled, updateEnabled |
Methods inherited from class org.bushe.swing.action.BasicAction |
---|
actionPerformed, actionPerformedFinally, actionPerformedTemplate, actionPerformedTry, addActionListener, addItemListener, addShouldBeEnabledDelegate, clearContext, createIcon, createIcon, getAccelerator, getActionCommandName, getActionName, getContext, getContextValue, getGroup, getId, getLongDescription, getMenuShowsIcon, getMnemonic, getRoles, getShortDescription, getSmallIcon, getToolbarShowsText, isSelected, propogateActionEvent, propogateItemEvent, putContextValue, putValue, removeActionListener, removeItemListener, removeShouldBeEnabledDelegate, setAccelerator, setActionCommandName, setActionName, setContext, setId, setLongDescription, setMenuShowsIcon, setMnemonic, setRoles, setSelected, setShortDescription, setSmallIcon, setToolbarShowsText, shouldBeEnabled, toString, updateEnabledState |
Methods inherited from class javax.swing.AbstractAction |
---|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.swing.Action |
---|
addPropertyChangeListener, getValue, isEnabled, removePropertyChangeListener, setEnabled |
Field Detail |
---|
public static final int EM
public static final int STRONG
public static final int CODE
public static final int CITE
public static final int SUP
public static final int SUB
public static final int BOLD
public static final int ITALIC
public static final int UNDERLINE
public static final int STRIKE
public static final java.lang.String[] INLINE_TYPES
Constructor Detail |
---|
public HTMLInlineAction(int itype) throws java.lang.IllegalArgumentException
itype
- an inline element type (BOLD, ITALIC, STRIKE, etc)
java.lang.IllegalArgumentException
Method Detail |
---|
protected void updateWysiwygContextState(javax.swing.JEditorPane ed)
updateWysiwygContextState
in class HTMLTextEditAction
protected void sourceEditPerformed(java.awt.event.ActionEvent e, javax.swing.JEditorPane editor)
sourceEditPerformed
in class HTMLTextEditAction
public javax.swing.text.html.HTML.Tag getTag()
protected void wysiwygEditPerformed(java.awt.event.ActionEvent e, javax.swing.JEditorPane editor)
wysiwygEditPerformed
in class HTMLTextEditAction
protected void updateSourceContextState(javax.swing.JEditorPane ed)
updateSourceContextState
in class HTMLTextEditAction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |