HTMLEditor
| Modifier and Type | Class and Description |
|---|---|
| public static enum | HTMLEditorSkin.
Represents commands that can be passed into the HTMLEditor web engine. |
| Modifier and Type | Field and Description |
|---|---|
| private ToggleButton | |
| private ToggleButton | |
| private ToggleButton | |
| private ToggleGroup | |
| private ToggleButton | |
| private int | |
| private ColorPicker | |
| private ToggleButton | |
| private ToggleButton | |
| private String | |
| private static PseudoClass | |
| private Button | |
| private Button | |
| private static final Color | |
| private static final Color | |
| private static final String[][] | |
| private boolean | |
| private ParentTraversalEngine | |
| private ColorPicker | |
| private static final int | |
| private static final int | |
| private static final int | |
| private ComboBox | |
| private ComboBox | |
| private Map | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private ComboBox | |
| private Map | |
| private GridPane | |
| private Button | |
| private Button | |
| private boolean | |
| private ToggleButton | |
| private ListChangeListener | |
| private ToggleButton | |
| private Button | |
| private Button | |
| private boolean | |
| private ResourceBundle | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private Map | |
| private ToggleButton | |
| private Map | |
| private ToolBar | |
| private ToolBar | |
| private ToggleButton | |
| private WebPage | |
| private WebView |
| Access | Constructor and Description |
|---|---|
| public | HTMLEditorSkin(HTMLEditor
The control that this skin should be installed onto. control)Creates a new HTMLEditorSkin instance, installing the necessary child
nodes into the Control |
| Modifier and Type | Method and Description |
|---|---|
| private Button | |
| private ToggleButton | addToggleButton(ToolBar toolbar, ToggleGroup toggleGroup, final String iconName, String tooltipText, final String command, final String styleClass)
|
| private void | |
| private String | |
| private void | |
| private void | |
| private void | |
| private boolean | |
| private Color | |
| private boolean | |
| private String | |
| pack-priv final String | |
| private boolean | |
| protected void | layoutChildren(final double
the x position x, final double the y position y, final double the width w, final double the height h)Overrides javafx. Called during the layout pass of the scenegraph. |
| public void | performCommand(final HTMLEditorSkin.
the command commandSpecial-case handling for certain commands. |
| private void | |
| pack-priv void | |
| private void | |
| pack-priv final void | |
| private void | |
| private void |
| alignCenterButton | back to summary |
|---|---|
| private ToggleButton alignCenterButton | |
| alignJustifyButton | back to summary |
|---|---|
| private ToggleButton alignJustifyButton | |
| alignLeftButton | back to summary |
|---|---|
| private ToggleButton alignLeftButton | |
| alignmentToggleGroup | back to summary |
|---|---|
| private ToggleGroup alignmentToggleGroup | |
| alignRightButton | back to summary |
|---|---|
| private ToggleButton alignRightButton | |
| atomicityCount | back to summary |
|---|---|
| private int atomicityCount | |
| bgColorButton | back to summary |
|---|---|
| private ColorPicker bgColorButton | |
| boldButton | back to summary |
|---|---|
| private ToggleButton boldButton | |
| bulletsButton | back to summary |
|---|---|
| private ToggleButton bulletsButton | |
| cachedHTMLText | back to summary |
|---|---|
| private String cachedHTMLText | |
| CONTAINS_FOCUS_PSEUDOCLASS_STATE | back to summary |
|---|---|
| private static PseudoClass CONTAINS_FOCUS_PSEUDOCLASS_STATE | |
| copyButton | back to summary |
|---|---|
| private Button copyButton | |
| cutButton | back to summary |
|---|---|
| private Button cutButton | |
| DEFAULT_BG_COLOR | back to summary |
|---|---|
| private static final Color DEFAULT_BG_COLOR | |
| DEFAULT_FG_COLOR | back to summary |
|---|---|
| private static final Color DEFAULT_FG_COLOR | |
| DEFAULT_FORMAT_MAPPINGS | back to summary |
|---|---|
| private static final String[][] DEFAULT_FORMAT_MAPPINGS | |
| enableAtomicityCheck | back to summary |
|---|---|
| private boolean enableAtomicityCheck | |
| engine | back to summary |
|---|---|
| private ParentTraversalEngine engine | |
| fgColorButton | back to summary |
|---|---|
| private ColorPicker fgColorButton | |
| FONT_FAMILY_MENU_WIDTH | back to summary |
|---|---|
| private static final int FONT_FAMILY_MENU_WIDTH | |
| FONT_FAMILY_MENUBUTTON_WIDTH | back to summary |
|---|---|
| private static final int FONT_FAMILY_MENUBUTTON_WIDTH | |
| FONT_SIZE_MENUBUTTON_WIDTH | back to summary |
|---|---|
| private static final int FONT_SIZE_MENUBUTTON_WIDTH | |
| fontFamilyComboBox | back to summary |
|---|---|
| private ComboBox<String> fontFamilyComboBox | |
| fontSizeComboBox | back to summary |
|---|---|
| private ComboBox<String> fontSizeComboBox | |
| fontSizeMap | back to summary |
|---|---|
| private Map<String, String> fontSizeMap | |
| FORMAT_HEADING_1 | back to summary |
|---|---|
| private static final String FORMAT_HEADING_1 | |
| FORMAT_HEADING_2 | back to summary |
|---|---|
| private static final String FORMAT_HEADING_2 | |
| FORMAT_HEADING_3 | back to summary |
|---|---|
| private static final String FORMAT_HEADING_3 | |
| FORMAT_HEADING_4 | back to summary |
|---|---|
| private static final String FORMAT_HEADING_4 | |
| FORMAT_HEADING_5 | back to summary |
|---|---|
| private static final String FORMAT_HEADING_5 | |
| FORMAT_HEADING_6 | back to summary |
|---|---|
| private static final String FORMAT_HEADING_6 | |
| FORMAT_PARAGRAPH | back to summary |
|---|---|
| private static final String FORMAT_PARAGRAPH | |
| formatComboBox | back to summary |
|---|---|
| private ComboBox<String> formatComboBox | |
| formatStyleMap | back to summary |
|---|---|
| private Map<String, String> formatStyleMap | |
| gridPane | back to summary |
|---|---|
| private GridPane gridPane | |
| indentButton | back to summary |
|---|---|
| private Button indentButton | |
| insertHorizontalRuleButton | back to summary |
|---|---|
| private Button insertHorizontalRuleButton | |
| isFirstRun | back to summary |
|---|---|
| private boolean isFirstRun | |
| italicButton | back to summary |
|---|---|
| private ToggleButton italicButton | |
| itemsListener | back to summary |
|---|---|
| private ListChangeListener<Node> itemsListener | |
| numbersButton | back to summary |
|---|---|
| private ToggleButton numbersButton | |
| outdentButton | back to summary |
|---|---|
| private Button outdentButton | |
| pasteButton | back to summary |
|---|---|
| private Button pasteButton | |
| resetToolbarState | back to summary |
|---|---|
| private boolean resetToolbarState | |
| resources | back to summary |
|---|---|
| private ResourceBundle resources | |
| SIZE_LARGE | back to summary |
|---|---|
| private static final String SIZE_LARGE | |
| SIZE_MEDIUM | back to summary |
|---|---|
| private static final String SIZE_MEDIUM | |
| SIZE_SMALL | back to summary |
|---|---|
| private static final String SIZE_SMALL | |
| SIZE_X_LARGE | back to summary |
|---|---|
| private static final String SIZE_X_LARGE | |
| SIZE_X_SMALL | back to summary |
|---|---|
| private static final String SIZE_X_SMALL | |
| SIZE_XX_LARGE | back to summary |
|---|---|
| private static final String SIZE_XX_LARGE | |
| SIZE_XX_SMALL | back to summary |
|---|---|
| private static final String SIZE_XX_SMALL | |
| sizeFontMap | back to summary |
|---|---|
| private Map<String, String> sizeFontMap | |
| strikethroughButton | back to summary |
|---|---|
| private ToggleButton strikethroughButton | |
| styleFormatMap | back to summary |
|---|---|
| private Map<String, String> styleFormatMap | |
| toolbar1 | back to summary |
|---|---|
| private ToolBar toolbar1 | |
| toolbar2 | back to summary |
|---|---|
| private ToolBar toolbar2 | |
| underlineButton | back to summary |
|---|---|
| private ToggleButton underlineButton | |
| webPage | back to summary |
|---|---|
| private WebPage webPage | |
| webView | back to summary |
|---|---|
| private WebView webView | |
| HTMLEditorSkin | back to summary |
|---|---|
| public HTMLEditorSkin(HTMLEditor control) Creates a new HTMLEditorSkin instance, installing the necessary child
nodes into the Control
| |
| addButton | back to summary |
|---|---|
| private Button addButton(ToolBar toolbar, final String iconName, String tooltipText, final String command, final String styleClass) | |
| addToggleButton | back to summary |
|---|---|
| private ToggleButton addToggleButton(ToolBar toolbar, ToggleGroup toggleGroup, final String iconName, String tooltipText, final String command, final String styleClass) | |
| applyTextFormatting | back to summary |
|---|---|
| private void applyTextFormatting() | |
| colorValueToRGBA | back to summary |
|---|---|
| private String colorValueToRGBA(Color c) | |
| createFontSizeMenuItem | back to summary |
|---|---|
| private void createFontSizeMenuItem(String fontSizeValue, String label) | |
| createFormatMenuItem | back to summary |
|---|---|
| private void createFormatMenuItem(String formatValue, String label) | |
| enableToolbar | back to summary |
|---|---|
| private void enableToolbar(final boolean enable) | |
| executeCommand | back to summary |
|---|---|
| private boolean executeCommand(String command, String value) | |
| getColor | back to summary |
|---|---|
| private Color getColor(String value) | |
| getCommandState | back to summary |
|---|---|
| private boolean getCommandState(String command) | |
| getCommandValue | back to summary |
|---|---|
| private String getCommandValue(String command) | |
| getHTMLText | back to summary |
|---|---|
| pack-priv final String getHTMLText() | |
| isCommandEnabled | back to summary |
|---|---|
| private boolean isCommandEnabled(String command) | |
| layoutChildren | back to summary |
|---|---|
| protected void layoutChildren(final double x, final double y, final double w, final double h) Overrides javafx. Doc from javafx. Called during the layout pass of the scenegraph.
| |
| performCommand | back to summary |
|---|---|
| public void performCommand(final HTMLEditorSkin. Special-case handling for certain commands. Over time this may be extended to handle additional commands. The current list of supported commands is:
| |
| populateToolbars | back to summary |
|---|---|
| private void populateToolbars() | |
| back to summary | |
|---|---|
| pack-priv void print(PrinterJob job) | |
| setContentEditable | back to summary |
|---|---|
| private void setContentEditable(boolean b) | |
| setHTMLText | back to summary |
|---|---|
| pack-priv final void setHTMLText(String htmlText) | |
| updateNodeOrientation | back to summary |
|---|---|
| private void updateNodeOrientation() | |
| updateToolbarState | back to summary |
|---|---|
| private void updateToolbarState(final boolean updateAlignment) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final HTMLEditorSkin. | ALIGN_CENTER
Align Center command. |
| public static final HTMLEditorSkin. | ALIGN_JUSTIFY
Align Justify command. |
| public static final HTMLEditorSkin. | ALIGN_LEFT
Align Left command. |
| public static final HTMLEditorSkin. | ALIGN_RIGHT
Align Right command. |
| public static final HTMLEditorSkin. | BACKGROUND_COLOR
Background color command. |
| public static final HTMLEditorSkin. | BOLD
Bold command. |
| public static final HTMLEditorSkin. | BULLETS
Insert bullets command. |
| private final String | |
| public static final HTMLEditorSkin. | COPY
Copy command. |
| public static final HTMLEditorSkin. | CUT
Cut command. |
| public static final HTMLEditorSkin. | FONT_FAMILY
Font name command. |
| public static final HTMLEditorSkin. | FONT_SIZE
Font size command. |
| public static final HTMLEditorSkin. | FOREGROUND_COLOR
Foreground color command. |
| public static final HTMLEditorSkin. | FORMAT
Format command. |
| public static final HTMLEditorSkin. | INDENT
Indent command. |
| public static final HTMLEditorSkin. | INSERT_HORIZONTAL_RULE
Command to insert horizontal rule. |
| public static final HTMLEditorSkin. | INSERT_NEW_LINE
Insert newline command. |
| public static final HTMLEditorSkin. | INSERT_TAB
Insert tab command. |
| public static final HTMLEditorSkin. | ITALIC
Italic command. |
| public static final HTMLEditorSkin. | NUMBERS
Insert numbers command. |
| public static final HTMLEditorSkin. | OUTDENT
Outdent command. |
| public static final HTMLEditorSkin. | PASTE
Paste command. |
| public static final HTMLEditorSkin. | REDO
Redo command. |
| public static final HTMLEditorSkin. | STRIKETHROUGH
Strikethrough command. |
| public static final HTMLEditorSkin. | STYLEWITHCSS
Style with CSS command. |
| public static final HTMLEditorSkin. | UNDERLINE
Underline command. |
| public static final HTMLEditorSkin. | UNDO
Undo command. |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public static HTMLEditorSkin. | |
| public static HTMLEditorSkin. |
| ALIGN_CENTER | back to summary |
|---|---|
| public static final HTMLEditorSkin. Align Center command. | |
| ALIGN_JUSTIFY | back to summary |
|---|---|
| public static final HTMLEditorSkin. Align Justify command. | |
| ALIGN_LEFT | back to summary |
|---|---|
| public static final HTMLEditorSkin. Align Left command. | |
| ALIGN_RIGHT | back to summary |
|---|---|
| public static final HTMLEditorSkin. Align Right command. | |
| BACKGROUND_COLOR | back to summary |
|---|---|
| public static final HTMLEditorSkin. Background color command. | |
| BOLD | back to summary |
|---|---|
| public static final HTMLEditorSkin. Bold command. | |
| BULLETS | back to summary |
|---|---|
| public static final HTMLEditorSkin. Insert bullets command. | |
| command | back to summary |
|---|---|
| private final String command | |
| COPY | back to summary |
|---|---|
| public static final HTMLEditorSkin. Copy command. | |
| CUT | back to summary |
|---|---|
| public static final HTMLEditorSkin. Cut command. | |
| FONT_FAMILY | back to summary |
|---|---|
| public static final HTMLEditorSkin. Font name command. | |
| FONT_SIZE | back to summary |
|---|---|
| public static final HTMLEditorSkin. Font size command. | |
| FOREGROUND_COLOR | back to summary |
|---|---|
| public static final HTMLEditorSkin. Foreground color command. | |
| FORMAT | back to summary |
|---|---|
| public static final HTMLEditorSkin. Format command. | |
| INDENT | back to summary |
|---|---|
| public static final HTMLEditorSkin. Indent command. | |
| INSERT_HORIZONTAL_RULE | back to summary |
|---|---|
| public static final HTMLEditorSkin. Command to insert horizontal rule. | |
| INSERT_NEW_LINE | back to summary |
|---|---|
| public static final HTMLEditorSkin. Insert newline command. | |
| INSERT_TAB | back to summary |
|---|---|
| public static final HTMLEditorSkin. Insert tab command. | |
| ITALIC | back to summary |
|---|---|
| public static final HTMLEditorSkin. Italic command. | |
| NUMBERS | back to summary |
|---|---|
| public static final HTMLEditorSkin. Insert numbers command. | |
| OUTDENT | back to summary |
|---|---|
| public static final HTMLEditorSkin. Outdent command. | |
| PASTE | back to summary |
|---|---|
| public static final HTMLEditorSkin. Paste command. | |
| REDO | back to summary |
|---|---|
| public static final HTMLEditorSkin. Redo command. | |
| STRIKETHROUGH | back to summary |
|---|---|
| public static final HTMLEditorSkin. Strikethrough command. | |
| STYLEWITHCSS | back to summary |
|---|---|
| public static final HTMLEditorSkin. Style with CSS command. | |
| UNDERLINE | back to summary |
|---|---|
| public static final HTMLEditorSkin. Underline command. | |
| UNDO | back to summary |
|---|---|
| public static final HTMLEditorSkin. Undo command. | |
| Command | back to summary |
|---|---|
| private Command(String command) | |
| getCommand | back to summary |
|---|---|
| public String getCommand() Gets the name of this command.
| |
| valueOf | back to summary |
|---|---|
| public static HTMLEditorSkin. | |
| values | back to summary |
|---|---|
| public static HTMLEditorSkin. | |