public abstract class HTMLTextEditAction extends DefaultAction implements Internationalization
| Modifier and Type | Field and Description |
|---|---|
protected Vector |
actionListeners |
static int |
DISABLED |
static String |
EDITOR |
protected ResourceBundle |
resourceBundle |
static int |
WYSIWYG |
changeSupport, 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 |
|---|
HTMLTextEditAction(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
actionPerformedCatch(Throwable t)
Catch all for anything thrown in the execute() method.
|
void |
addActionPerformedListener(ActionPerformedListener listener) |
protected void |
contextChanged() |
protected abstract void |
editPerformed(ActionEvent e,
JEditorPane editor) |
void |
execute(ActionEvent e) |
void |
firePostActionPerformed(ActionEvent e) |
void |
firePreviousActionPerformed(ActionEvent e) |
protected JEditorPane |
getCurrentEditor() |
Vector |
getTextsToTranslate()
Returns all the texts in the element suitable for being translated.
|
void |
removeActionPerformedListener(ActionPerformedListener listener) |
void |
setComponentLocale(Locale l) |
void |
setResourceBundle(ResourceBundle resourceBundle)
Sets the language resource bundle.
|
protected void |
updateContextState(JEditorPane editor) |
shouldBeEnabled, 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 String EDITOR
public static final int DISABLED
public static final int WYSIWYG
protected Vector actionListeners
protected ResourceBundle resourceBundle
public HTMLTextEditAction(String name)
public void execute(ActionEvent e) throws Exception
execute in class org.bushe.swing.action.BasicActionExceptionprotected JEditorPane getCurrentEditor()
protected void actionPerformedCatch(Throwable t)
DefaultActionactionPerformedCatch in class DefaultActionBasicAction.actionPerformedCatch(java.lang.Throwable)protected void contextChanged()
contextChanged in class org.bushe.swing.action.BasicActionprotected void updateContextState(JEditorPane editor)
protected abstract void editPerformed(ActionEvent e, JEditorPane editor)
public void addActionPerformedListener(ActionPerformedListener listener)
public void firePreviousActionPerformed(ActionEvent e)
public void firePostActionPerformed(ActionEvent e)
public void removeActionPerformedListener(ActionPerformedListener listener)
public void setComponentLocale(Locale l)
setComponentLocale in interface Internationalizationpublic void setResourceBundle(ResourceBundle resourceBundle)
InternationalizationsetResourceBundle in interface InternationalizationresourceBundle - the new language bundle.public Vector getTextsToTranslate()
InternationalizationgetTextsToTranslate in interface InternationalizationCopyright © 2016 Imatia Innovation S.L.. All rights reserved.