public class EnterKeyAction extends DecoratedTextAction
changeSupport, enabledACCELERATOR_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 |
|---|
EnterKeyAction(Action defaultEnterAction)
Creates a new EnterKeyAction.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e) |
protected String |
createBlock(HTML.Tag t,
Element elem,
String html) |
protected void |
encloseInDIV(Element elem,
HTMLDocument document) |
protected void |
insertImpliedBR(ActionEvent e) |
protected void |
insertParagraphAfter(Element elem,
JEditorPane editor)
Inserts a paragraph after the current paragraph of the same type
|
protected boolean |
isInList(Element el) |
protected boolean |
isListItem(HTML.Tag t) |
protected void |
setCharAttribs(Element p,
AttributeSet chAttribs) |
protected String |
toListItem(String txt) |
getDelegateaugmentList, getFocusedComponent, getTextComponentaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledpublic EnterKeyAction(Action defaultEnterAction)
defaultEnterAction - Should be the default actionpublic void actionPerformed(ActionEvent e)
protected boolean isListItem(HTML.Tag t)
protected boolean isInList(Element el)
protected void insertImpliedBR(ActionEvent e)
protected void encloseInDIV(Element elem, HTMLDocument document) throws Exception
Exceptionprotected void insertParagraphAfter(Element elem, JEditorPane editor) throws BadLocationException, IOException
elem - editor - BadLocationExceptionIOExceptionprotected void setCharAttribs(Element p, AttributeSet chAttribs)
Copyright © 2016 Imatia Innovation S.L.. All rights reserved.