public class HTMLAlignAction extends HTMLTextEditAction
| Modifier and Type | Field and Description |
|---|---|
protected int |
align |
static String[] |
ALIGNMENT_NAMES |
static String[] |
ALIGNMENTS |
static int |
CENTER |
static String[] |
IMGS |
static int |
JUSTIFY |
static int |
LEFT |
static int |
RIGHT |
actionListeners, DISABLED, EDITOR, resourceBundle, WYSIWYGchangeSupport, enabledDEBUG_LANGUAGEACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON| Constructor and Description |
|---|
HTMLAlignAction(int al)
Creates a new HTMLAlignAction
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
alignElement(Element elem) |
protected void |
editPerformed(ActionEvent e,
JEditorPane editor) |
protected boolean |
shouldBeSelected(JEditorPane ed) |
protected void |
updateContextState(JEditorPane ed) |
actionPerformedCatch, addActionPerformedListener, contextChanged, execute, firePostActionPerformed, firePreviousActionPerformed, getCurrentEditor, getTextsToTranslate, removeActionPerformedListener, setComponentLocale, setResourceBundleshouldBeEnabled, updateEnabledactionPerformed, 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, updateEnabledStateaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, removePropertyChangeListener, setEnabledequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddPropertyChangeListener, getValue, isEnabled, removePropertyChangeListener, setEnabledpublic static final int LEFT
public static final int CENTER
public static final int RIGHT
public static final int JUSTIFY
public static final String[] ALIGNMENT_NAMES
public static final String[] ALIGNMENTS
public static final String[] IMGS
protected int align
public HTMLAlignAction(int al)
throws IllegalArgumentException
al - LEFT, RIGHT, CENTER, or JUSTIFYIllegalArgumentExceptionprotected void updateContextState(JEditorPane ed)
updateContextState in class HTMLTextEditActionprotected boolean shouldBeSelected(JEditorPane ed)
protected void editPerformed(ActionEvent e, JEditorPane editor)
editPerformed in class HTMLTextEditActionprotected void alignElement(Element elem)
Copyright © 2016 Imatia Innovation S.L.. All rights reserved.