Class ShefHelper

java.lang.Object
net.thevpc.more.shef.ShefHelper

public class ShefHelper extends Object
Author:
thevpc
  • Field Details

  • Constructor Details

    • ShefHelper

      public ShefHelper()
  • Method Details

    • getManagerResolver

      public static UndoManagerResolver getManagerResolver()
    • setManagerResolver

      public static void setManagerResolver(UndoManagerResolver managerResolver)
    • installMin

      public static JEditorPane installMin(JEditorPane editor)
    • init

      public static JEditorPane init(JEditorPane editor)
    • getInitialActionOrNull

      public static Action getInitialActionOrNull(JEditorPane editor, Object key)
    • getInitialAction

      public static Action getInitialAction(JEditorPane editor, Object key)
    • isEnabledCopy

      public static boolean isEnabledCopy(JEditorPane editor)
    • isEnabledCut

      public static boolean isEnabledCut(JEditorPane editor)
    • isEnabledAlign

      public static boolean isEnabledAlign(JEditorPane editor, AlignEnum alignEnum)
    • runCopy

      public static void runCopy(JEditorPane editor)
    • runCut

      public static void runCut(JEditorPane editor)
    • runInsertEnter

      public static void runInsertEnter(JEditorPane editor)
    • runClearStyles

      public static void runClearStyles(JEditorPane editor)
    • runTextAlign

      public static void runTextAlign(JEditorPane editor, AlignEnum alignEnum)
    • runInsertBloc

      public static void runInsertBloc(JEditorPane editor, BlocEnum type)
    • getTag

      public static HTML.Tag getTag(BlocEnum type)
      Gets the tag
      Parameters:
      type - type
      Returns:
      tag
    • runGetFont

      public static FontDesc runGetFont(JEditorPane editor)
    • runChangeFont

      public static void runChangeFont(JEditorPane editor, FontDesc d)
    • runSetColor

      public static void runSetColor(JEditorPane editor, Color color)
    • runSetFontSize

      public static void runSetFontSize(JEditorPane editor, FontSizeEnum size)
    • runInsertHorizontalRule

      public static void runInsertHorizontalRule(JEditorPane editor)
    • runInsertImage

      public static void runInsertImage(JEditorPane editor, String imageHtml)
    • runToggleInlineStyle

      public static void runToggleInlineStyle(JEditorPane editor, InlineStyleEnum type)
    • isDefined

      public static boolean isDefined(AttributeSet attr, InlineStyleEnum type)
    • getTag

      public static HTML.Tag getTag(InlineStyleEnum type)
    • runInsertLineBreak

      public static void runInsertLineBreak(JEditorPane editor)
    • runInsertLink

      public static void runInsertLink(JEditorPane editor, String linkHtml)
    • runInsertTable

      public static void runInsertTable(JEditorPane editor, String tableHtml)
    • runIndent

      public static void runIndent(JEditorPane editor)
    • runUnIndent

      public static void runUnIndent(JEditorPane editor)
    • getParagraphElements

      public static List getParagraphElements(JEditorPane editor)
    • runInsertHTML

      public static void runInsertHTML(String html, HTML.Tag tag, HTML.Tag root)
    • runInsertHTML

      public static void runInsertHTML(JEditorPane editor, String htmlFragment)
    • runDeleteNext

      public static void runDeleteNext(JEditorPane editor)
    • runDeletePrevious

      public static void runDeletePrevious(JEditorPane editor)
    • runPaste

      public static void runPaste(JEditorPane editor)
    • runInsertTabForward

      public static void runInsertTabForward(JEditorPane editor)
    • runInsertTabBackward

      public static void runInsertTabBackward(JEditorPane editor)
    • runInsertTableCell

      public static void runInsertTableCell(JEditorPane ed)
    • runInsertTableRow

      public static void runInsertTableRow(JEditorPane ed)
    • runInsertTableCol

      public static void runInsertTableCol(JEditorPane ed)
    • runDeleteTableCell

      public static void runDeleteTableCell(JEditorPane ed)
    • runDeleteTableRow

      public static void runDeleteTableRow(JEditorPane ed)
    • runDeleteTable

      public static void runDeleteTable(JEditorPane ed)
      by: vpc
      Parameters:
      ed - editor
    • runDeleteTableCol

      public static void runDeleteTableCol(JEditorPane ed)
    • isInTD

      public static boolean isInTD(JEditorPane tc)
    • beginCompoundEdit

      public static void beginCompoundEdit(Document doc)
    • endCompoundEdit

      public static void endCompoundEdit(Document doc)