Class ShefHelper
java.lang.Object
net.thevpc.more.shef.ShefHelper
- Author:
- thevpc
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidendCompoundEdit(Document doc) static ActiongetInitialAction(JEditorPane editor, Object key) static ActiongetInitialActionOrNull(JEditorPane editor, Object key) static UndoManagerResolverstatic ListgetParagraphElements(JEditorPane editor) static HTML.TagGets the tagstatic HTML.TaggetTag(InlineStyleEnum type) static JEditorPaneinit(JEditorPane editor) static JEditorPaneinstallMin(JEditorPane editor) static booleanisDefined(AttributeSet attr, InlineStyleEnum type) static booleanisEnabledAlign(JEditorPane editor, AlignEnum alignEnum) static booleanisEnabledCopy(JEditorPane editor) static booleanisEnabledCut(JEditorPane editor) static booleanisInTD(JEditorPane tc) static voidrunChangeFont(JEditorPane editor, FontDesc d) static voidrunClearStyles(JEditorPane editor) static voidrunCopy(JEditorPane editor) static voidrunCut(JEditorPane editor) static voidrunDeleteNext(JEditorPane editor) static voidrunDeletePrevious(JEditorPane editor) static voidby: vpcstatic voidstatic voidstatic voidstatic FontDescrunGetFont(JEditorPane editor) static voidrunIndent(JEditorPane editor) static voidrunInsertBloc(JEditorPane editor, BlocEnum type) static voidrunInsertEnter(JEditorPane editor) static voidrunInsertHorizontalRule(JEditorPane editor) static voidrunInsertHTML(String html, HTML.Tag tag, HTML.Tag root) static voidrunInsertHTML(JEditorPane editor, String htmlFragment) static voidrunInsertImage(JEditorPane editor, String imageHtml) static voidrunInsertLineBreak(JEditorPane editor) static voidrunInsertLink(JEditorPane editor, String linkHtml) static voidrunInsertTabBackward(JEditorPane editor) static voidrunInsertTabForward(JEditorPane editor) static voidrunInsertTable(JEditorPane editor, String tableHtml) static voidstatic voidstatic voidstatic voidrunPaste(JEditorPane editor) static voidrunSetColor(JEditorPane editor, Color color) static voidrunSetFontSize(JEditorPane editor, FontSizeEnum size) static voidrunTextAlign(JEditorPane editor, AlignEnum alignEnum) static voidrunToggleInlineStyle(JEditorPane editor, InlineStyleEnum type) static voidrunUnIndent(JEditorPane editor) static voidsetManagerResolver(UndoManagerResolver managerResolver)
-
Field Details
-
ALIGNMENTS
-
managerResolver
-
-
Constructor Details
-
ShefHelper
public ShefHelper()
-
-
Method Details
-
getManagerResolver
-
setManagerResolver
-
installMin
-
init
-
getInitialActionOrNull
-
getInitialAction
-
isEnabledCopy
-
isEnabledCut
-
isEnabledAlign
-
runCopy
-
runCut
-
runInsertEnter
-
runClearStyles
-
runTextAlign
-
runInsertBloc
-
getTag
-
runGetFont
-
runChangeFont
-
runSetColor
-
runSetFontSize
-
runInsertHorizontalRule
-
runInsertImage
-
runToggleInlineStyle
-
isDefined
-
getTag
-
runInsertLineBreak
-
runInsertLink
-
runInsertTable
-
runIndent
-
runUnIndent
-
getParagraphElements
-
runInsertHTML
-
runInsertHTML
-
runDeleteNext
-
runDeletePrevious
-
runPaste
-
runInsertTabForward
-
runInsertTabBackward
-
runInsertTableCell
-
runInsertTableRow
-
runInsertTableCol
-
runDeleteTableCell
-
runDeleteTableRow
-
runDeleteTable
-
runDeleteTableCol
-
isInTD
-
beginCompoundEdit
-
endCompoundEdit
-