public class HTMLBlockAction extends HTMLTextEditAction
| Modifier and Type | Field and Description |
|---|---|
static int |
BLOCKQUOTE |
static int |
DIV |
static String[] |
ELEMENT_TYPES |
static int |
H1 |
static int |
H2 |
static int |
H3 |
static int |
H4 |
static int |
H5 |
static int |
H6 |
static int |
OL |
static int |
P |
static int |
PRE |
protected int |
type |
static int |
UL |
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 |
|---|
HTMLBlockAction(int type)
Creates a new HTMLBlockAction
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
changeBlockType(JEditorPane editor,
ActionEvent e) |
protected void |
changeListType(Element listParent,
HTML.Tag replaceTag,
HTMLDocument document) |
protected void |
editPerformed(ActionEvent e,
JEditorPane editor) |
protected HTML.Tag |
getRootTag(Element elem) |
HTML.Tag |
getTag()
Gets the tag
|
protected void |
insertHTML(String html,
HTML.Tag tag,
HTML.Tag root,
ActionEvent e) |
protected void |
insertList(JEditorPane editor,
ActionEvent e) |
protected boolean |
isListType() |
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 DIV
public static final int P
public static final int H1
public static final int H2
public static final int H3
public static final int H4
public static final int H5
public static final int H6
public static final int PRE
public static final int BLOCKQUOTE
public static final int OL
public static final int UL
public static final String[] ELEMENT_TYPES
protected int type
public HTMLBlockAction(int type)
throws IllegalArgumentException
type - A block type - P, PRE, BLOCKQUOTE, H1, H2, etcIllegalArgumentExceptionprotected void updateContextState(JEditorPane ed)
updateContextState in class HTMLTextEditActionprotected void editPerformed(ActionEvent e, JEditorPane editor)
editPerformed in class HTMLTextEditActionprotected void insertHTML(String html, HTML.Tag tag, HTML.Tag root, ActionEvent e)
protected void changeListType(Element listParent, HTML.Tag replaceTag, HTMLDocument document)
protected void insertList(JEditorPane editor, ActionEvent e) throws BadLocationException
BadLocationExceptionprotected void changeBlockType(JEditorPane editor, ActionEvent e) throws BadLocationException
BadLocationExceptionprotected boolean isListType()
public HTML.Tag getTag()
Copyright © 2016 Imatia Innovation S.L.. All rights reserved.