public class HTMLEditor extends RichTextEditor
HTMLEditor object is a multi-line area that displays
text. It is suited for editing HTML documents.
It is created with tool bar.| 修飾子とタイプ | フィールドと説明 |
|---|---|
static java.lang.String |
A_ANCHOR |
static java.lang.String |
A_BACKWARD |
static java.lang.String |
A_DOC_TITLE |
static java.lang.String |
A_FORWARD |
static java.lang.String |
A_LINK |
static java.lang.String |
A_OLIST |
static java.lang.String |
A_RELOAD |
static java.lang.String |
A_STOP |
static java.lang.String |
A_ULIST |
protected static java.lang.String |
actionListenerK
Internal constant for serialization
|
protected java.lang.Thread |
backgroundThread |
protected Button |
backwardButton |
protected Button |
forwardButton |
protected java.util.Stack |
history |
protected int |
historyIndex |
protected static java.util.Hashtable |
HTMLStyles |
static java.lang.String |
I_LINK |
static java.lang.String |
I_OLIST |
static java.lang.String |
I_ULIST |
static java.lang.String |
L_FIXED |
static java.lang.String |
L_L_STYLE |
static java.lang.String |
L_M_STYLE |
static java.lang.String |
L_PARA_STYLE |
static java.lang.String |
L_S_STYLE |
static java.lang.String |
L_VARIABLE |
static java.lang.String |
L_VL_STYLE |
protected java.awt.event.ActionListener |
linkActionListener |
protected ToggleButton |
linkButton |
protected ToggleButton |
listButton |
protected java.io.InputStream |
loadInputStream |
static int |
MAX_HISTORY |
protected ToggleButton |
olistButton |
static java.lang.String |
P_BACKGROUND |
static java.lang.String |
P_FOREGROUND |
static java.lang.String |
P_TITLE |
static java.lang.String |
P_URL |
protected static java.util.Hashtable |
PStyles |
protected Button |
stopButton |
protected TextField |
urlField |
A_BOLD, A_CENTER, A_CLEAR_STYLE, A_DEC_INDENT, A_HR, A_IMAGE, A_INC_INDENT, A_ITALIC, A_LARGE, A_LEFT, A_RIGHT, A_SMALL, A_UNDERLINE, boldButton, I_BOLD, I_ITALIC, I_UNDERLINE, italicButton, L_ALIGN, L_FORMAT, L_INSERT, L_LIST, underlineButtonA_COPY, A_CUT, A_FIND, A_GOTO, A_OPEN, A_PASTE, A_PRINT, A_SAVE, A_SAVE_AS, A_UNDO, caretDisableComps, change, checkboxMenuMap, I_AUTO_INDENT, I_INCREMENTAL_LOAD, I_SHOW_MATCH, I_SOFT_TAB, I_WORD_WRAP, INC_LINE_COUNT, incrementalLoad, L_CLOSE, L_CLOSE_CONFIRM, L_EDIT, L_EXIT, L_EXIT_CONFIRM, L_FILE, L_FONT, L_FONT_COLOR, L_FONT_NAME, L_FONT_SIZE, L_FONT_STYLE, L_HELP, L_KFC_ADDRESS, L_KFC_ADDRESS2, L_KFC_AUTHOR, L_KFC_URL, L_NEW_WIN, L_OPEN_CONFIRM, L_READ_ENCODING, L_VERSION, L_VIEW, L_WRITE_ENCODING, P_AUTO_INDENT, P_FILE, P_INCREMENTAL_LOAD, P_READ_ENCODING, P_SHOW_MATCH, P_SOFT_TAB, P_SUB_COMPS, P_WORD_WRAP, P_WRITE_ENCODING, readEncoding, savedTextCursor, subComps, subCompStates, textChanged, writeEncoding, writeTargetCHAR_WRAP, columns, DEFAULT_HORIZONTAL_STYLE, DEFAULT_VERTICAL_STYLE, editController, editModel, editView, NO_WRAP, NOT_EDITABLE_BACKGROUND, NOT_EDITABLE_FOREGROUND, NOT_EDITABLE_SELECTION_BACKGROUND, NOT_EDITABLE_SELECTION_FOREGROUND, rows, savedBackgroundColor, savedForegroundColor, savedSelectionBackgroundColor, savedSelectionForegroundColor, SCROLLBARS_BOTH, SCROLLBARS_HORIZONTAL_ONLY, SCROLLBARS_NONE, SCROLLBARS_VERTICAL_ONLY, textListener, textListenerK, textPositionListeners, WORD_WRAPfocusTraversable| コンストラクタと説明 |
|---|
HTMLEditor()
Constructs a new html text area with tool bar.
|
HTMLEditor(boolean showToolBar)
Constructs a new html text area with tool bar.
|
HTMLEditor(int rows,
int columns)
Constructs a new html text area with tool bar, with the specified
number of rows and columns.
|
HTMLEditor(int rows,
int columns,
boolean showToolBar)
Constructs a new html text area with tool bar, with the specified
number of rows and columns.
|
HTMLEditor(int rows,
int columns,
boolean showToolBar,
java.awt.event.ActionListener openActionListener,
java.awt.event.ActionListener saveActionListener,
java.awt.event.ActionListener printActionListener)
Constructs a new html text area with tool bar, with the specified
number of rows and columns.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Invoked when an action occurs.
|
void |
backward_page()
Goes to the previouse page.
|
void |
clear_list()
Clears the selected paragraph as a list.
|
void |
clear_ordered_list()
Clears the selected paragraph as an ordered list.
|
protected void |
closeLoadInputStream() |
protected TextEditModel |
createDefaultTextEditModel() |
protected java.awt.Component[] |
createDocumentComponents() |
protected java.awt.Menu |
createFontMenu() |
protected java.awt.Component |
createFontNameComponent() |
protected java.awt.Menu |
createFormatMenu() |
protected java.awt.Component[] |
createInsertComponents() |
protected java.awt.Menu |
createInsertMenu() |
protected java.awt.Component[] |
createListComponents() |
protected java.awt.Component |
createParagraphStyleComponent() |
protected java.awt.Menu |
createPStyleMenu() |
protected java.awt.Component |
createTextComponent(TextEditModel model,
int rows,
int columns) |
protected ToolBar |
createToolBar(boolean showToolBar,
java.awt.event.ActionListener openActionListener,
java.awt.event.ActionListener saveActionListener,
java.awt.event.ActionListener printActionListener)
Creates a tool bar.
|
protected java.awt.Menu |
createViewMenu() |
protected java.awt.Component[] |
createWebComponents1() |
protected java.awt.Component[] |
createWebComponents2() |
void |
decrease_indent()
Decreases the selected paragraph indentation.
|
void |
delete_link()
Deletes a link from the selected text.
|
void |
disableSubComps()
Disables sub components.
|
void |
disableSubComps(boolean withStop)
Disables sub components.
|
void |
edit_document_property()
Edits the document property.
|
void |
enableSubComps()
Enables sub components.
|
void |
enableSubComps(boolean withStop)
Enables sub components.
|
protected java.lang.String |
fileToURLString(java.io.File file) |
void |
forward_page()
Goes to the next page.
|
java.lang.String[] |
getAllAnchorNames()
Returns the names of all target anchors (references) in this html
document.
|
int |
getAnchorIndex(java.lang.String name)
Returns the index of the specified target anchor (reference) in this
html document.
|
protected jp.kyasu.editor.HistoryElement |
getHistoryElement(java.net.URL url) |
HTMLStyle |
getHTMLStyle()
Returns the html style of this text component.
|
HTMLText |
getHTMLText()
Returns the html text of this text component.
|
java.awt.Color |
getLinkColor()
Returns the link color of this text component.
|
protected int[] |
getListStyleRange() |
java.lang.String |
getTitle()
Returns the title of this text component.
|
java.net.URL |
getURL()
Returns the url of this text component.
|
void |
goto_page(java.awt.event.ActionEvent e)
Goes to the page with the specified url action.
|
void |
goto_page(java.lang.String urlString)
Goes to the page with the specified url string.
|
void |
goto_page(java.net.URL url)
Goes to the page with the specified url.
|
protected void |
gotoHistory(int index) |
void |
increase_indent()
Increases the selected paragraph indentation.
|
void |
insert_anchor()
Inserts an anchor.
|
void |
insert_anchor(java.awt.event.ActionEvent e)
Inserts an anchor with the specified target event into the selected text.
|
void |
insert_anchor(java.lang.String target)
Inserts an anchor with the specified target string.
|
void |
insert_link()
Inserts a link into the selected text.
|
void |
insert_link(java.awt.event.ActionEvent e)
Inserts a link with the specified url event into the selected text.
|
void |
insert_link(java.lang.String urlString)
Inserts a link with the specified url string into the selected text.
|
protected void |
insertTextAttachmentAsLine(TextAttachment ta) |
protected boolean |
isListStyle(ParagraphStyle pStyle) |
void |
itemStateChanged(java.awt.event.ItemEvent e)
Invoked when an item's state has been changed.
|
protected void |
load(java.net.URL url,
boolean reload) |
protected void |
load(java.net.URLConnection conn,
boolean reload) |
protected void |
loadError(java.net.URLConnection conn,
java.lang.String errorMessage) |
protected boolean |
loadHistory(java.net.URL url) |
protected void |
loadHTML(java.net.URLConnection conn,
java.net.URL url) |
protected void |
loadImage(java.net.URLConnection conn,
java.net.URL url) |
protected void |
loadText(java.net.URLConnection conn) |
static void |
main(java.lang.String[] args)
Executes the examples.
|
void |
make_font_large()
Makes the selected text large.
|
void |
make_font_small()
Makes the selected text small.
|
void |
make_list()
Makes the selected paragraph as a list.
|
void |
make_ordered_list()
Makes the selected paragraph as an ordered list.
|
void |
open_file()
Opens the new file.
|
void |
open_file(java.io.File file)
Opens the specified file.
|
void |
print_file()
Prints the file.
|
protected void |
pushToHistory(HTMLText htmlText) |
void |
reload_page()
Reloads the current page.
|
void |
save_file_as(java.io.File file)
Saves the text into the specified file.
|
void |
save_file()
Saves the text into the file.
|
boolean |
saveAsHTML(java.io.File file)
Saves the contents of this component as a HTML into the specified file.
|
void |
set_paragraph_style(java.lang.String name)
Sets the paragraph style named by the specified name.
|
void |
setBackground(java.awt.Color color)
Sets the background color of this text component to be the specified
color.
|
void |
setForeground(java.awt.Color color)
Sets the foreground color of this text component to be the specified
color.
|
void |
setHTMLStyle(HTMLStyle htmlStyle)
Sets the html style of this html document to be the specified style.
|
void |
setHTMLText(HTMLText htmlText)
Sets the html text of this text component.
|
void |
setLinkActionListener(java.awt.event.ActionListener l)
Sets the action listener for the link to the specified listener.
|
void |
setLinkColor(java.awt.Color color)
Sets the link color of this text component to be the specified color.
|
void |
setRichText(RichText rtext)
Sets the html text of this text component.
|
void |
setText(java.lang.String str)
Sets the string of this text component.
|
void |
setTEXT(Text text)
Sets the string of this text component.
|
void |
setTitle(java.lang.String title)
Sets the title of this text component to be the specified string.
|
void |
setURL(java.net.URL url)
Sets the url of this text component to be the specified url.
|
void |
stop_loading()
Stops the loading.
|
void |
textPositionChanged(TextPositionEvent te)
Invoked when the position of the text has changed.
|
protected void |
updateHistory(HTMLText htmlText) |
protected void |
updateLocationOfTextInHistory() |
align_to_center, align_to_left, align_to_right, clear_font_bold, clear_font_italic, clear_font_styles, clear_font_underlined, createAlignmentComponents, createFontComponents1, createFontComponents2, getInsertionStyle, insert_hr, insert_image, insertVisualizable, make_font_bold, make_font_bold, make_font_italic, make_font_italic, make_font_underlined, make_font_underlined, parseInt, parseSignedInt, set_alignment, set_font_color, set_font_color, set_font_name, set_font_name, set_font_size_diff, set_font_size, set_font_sizeaddCaretDisableComp, addCaretDisableItem, addPropertyChangeListener, addSubComp, addTextListener, addTextPositionListener, appendAnyway, createCheckboxMenuItem, createEditComponents, createEditMenu, createFileComponents, createFindComponents, createIconButton, createIconToggleButton, createMenuItem, createPrintComponents, createReadCharSetMenu, createTextComponent, createWriteCharSetMenu, getEditMenu, getFileFromLoadDialog, getFileFromSaveDialog, getFormatMenu, getIcon, getInsertMenu, getReadEncoding, getToolLabel, getToolTip, getViewMenu, getWriteEncoding, initComponent, isIncrementalLoad, isTextChanged, isWordWrap, load, print_file, removePropertyChangeListener, removeTextListener, removeTextPositionListener, save_file_as, save, setAutoIndentEnabled, setIncrementalLoad, setReadEncoding, setShowMatchEnabled, setSoftTab, setTextChanged, setWordWrap, setWriteEncoding, setWriteTarget, textValueChanged, warnaddKeyAction, append, append, append, appendText, backward_character, backward_word, beep, beginning_of_file, beginning_of_line, clearSoftTab, clearUndo, copy_clipboard, createTextComponent, createTextComponent, cut_clipboard, delete_next_character, delete_next_word, delete_previous_character, delete_previous_word, delete_selection, delete_to_end_of_line, delete_to_start_of_line, deselect_all, end_of_file, end_of_line, find_word, forward_character, forward_word, getCaretColor, getCaretPosition, getColumns, getController, getCurrentTextStyle, getEventSource, getKeyAction, getKeyBinding, getKeymap, getLineWrap, getLocationOfText, getMinimumSize, getMinimumSize, getModel, getParagraphStyleAt, getParagraphStyleCount, getParagraphStyles, getParagraphStyles, getPopupMenu, getPreferredSize, getPreferredSize, getRichText, getRows, getScrollbarThickness, getScrollbarVisibility, getSelectedText, getSelectedTEXT, getSelectionBackground, getSelectionEnd, getSelectionForeground, getSelectionStart, getSoftTab, getText, getTEXT, getText, getTextCaret, getTextStyleAt, getTextStyleCount, getTextStyles, getTextStyles, getView, goto_line, insert_character, insert_string, insert, insert, insert, insertText, isAutoIndentEnabled, isClickable, isClickToFocus, isEditable, isMouseFocus, isShowMatchEnabled, isSoftTab, kill_next_character, kill_next_word, kill_previous_character, kill_previous_word, kill_selection, kill_to_end_of_line, kill_to_start_of_line, minimumSize, modifyRangeParagraphStyle, modifyRangeParagraphStyle, modifyRangeTextStyle, modifyRangeTextStyle, modifySelectionParagraphStyle, modifySelectionParagraphStyle, modifySelectionTextStyle, modifySelectionTextStyle, newbreak, newline_and_indent, newline, next_line, next_page, paragraphStyles, paragraphStyles, paste_clipboard, performKeyAction, performKeyAction, preferredSize, previous_line, previous_page, print, print, print, print, print, processEvent, redraw_display, removeKeyAction, removeKeyActionNamed, replaceRange, replaceRange, replaceRange, replaceSelection, replaceSelection, replaceSelection, replaceText, select_all, select_line, select_word, select, select, select, selectAll, selectionIsCaret, setCaretColor, setCaretPosition, setCaretPosition, setClickable, setClickToFocus, setColumns, setCursor, setEditable, setEditable, setEnabled, setFont, setKeymap, setLineWrap, setLocationOfText, setMouseFocus, setPopupMenu, setRangeParagraphStyle, setRangeParagraphStyle, setRangeTextStyle, setRangeTextStyle, setRows, setScrollbarThickness, setSelectionBackground, setSelectionEnd, setSelectionForeground, setSelectionParagraphStyle, setSelectionParagraphStyle, setSelectionStart, setSelectionTextStyle, setSelectionTextStyle, setSoftTab, setTextCaret, tab, textStyles, textStyles, undo, unkilladdFocusListener, addKeyListener, addMouseListener, addMouseMotionListener, delegateFocusEvent, delegateKeyEvent, delegateMouseEvent, focusGained, focusLost, getToolTipText, getToolTipVisual, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, setToolTipText, setToolTipText, setToolTipVisualaddNotify, bounds, disable, doLayout, enable, enable, getBounds, getFrame, getInsets, getLocation, getSize, hide, insets, isDirectNotification, isFocusTraversable, layout, location, minimumSize, postOldEvent, preferredSize, repaintNow, requestFocus, reshape, setBounds, setFocusTraversable, setVisible, show, show, size, updateadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getListeners, getMaximumSize, getMousePosition, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, isValidateRoot, list, list, locate, paint, paintComponents, paramString, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addMouseWheelListener, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setBounds, setComponentOrientation, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, toString, transferFocus, transferFocusBackward, transferFocusUpCycleprotected transient java.awt.event.ActionListener linkActionListener
protected transient java.util.Stack history
protected transient int historyIndex
protected transient java.io.InputStream loadInputStream
protected transient java.lang.Thread backgroundThread
protected ToggleButton linkButton
protected Button stopButton
protected Button forwardButton
protected Button backwardButton
protected ToggleButton listButton
protected ToggleButton olistButton
protected TextField urlField
public static final int MAX_HISTORY
public static final java.lang.String L_PARA_STYLE
public static final java.lang.String L_VARIABLE
public static final java.lang.String L_FIXED
public static final java.lang.String L_S_STYLE
public static final java.lang.String L_M_STYLE
public static final java.lang.String L_L_STYLE
public static final java.lang.String L_VL_STYLE
public static final java.lang.String I_LINK
public static final java.lang.String I_ULIST
public static final java.lang.String I_OLIST
public static final java.lang.String A_LINK
public static final java.lang.String A_ULIST
public static final java.lang.String A_OLIST
public static final java.lang.String A_ANCHOR
public static final java.lang.String A_FORWARD
public static final java.lang.String A_BACKWARD
public static final java.lang.String A_STOP
public static final java.lang.String A_RELOAD
public static final java.lang.String A_DOC_TITLE
public static final java.lang.String P_URL
public static final java.lang.String P_TITLE
public static final java.lang.String P_BACKGROUND
public static final java.lang.String P_FOREGROUND
protected static final java.util.Hashtable PStyles
protected static final java.util.Hashtable HTMLStyles
protected static final java.lang.String actionListenerK
public HTMLEditor()
public HTMLEditor(boolean showToolBar)
showToolBar is true, then shows the tool bar initially;
otherwise hides.
This html text area is created with vertical scroll bar.showToolBar - if true, then shows the tool bar initially;
otherwise hides.public HTMLEditor(int rows,
int columns)
rows - the number of rowscolumns - the number of columns.public HTMLEditor(int rows,
int columns,
boolean showToolBar)
showToolBar is true,
then shows the tool bar initially; otherwise hidden.
This html text area is created with vertical scroll bar.rows - the number of rowscolumns - the number of columns.showToolBar - if true, then shows the tool bar initially;
otherwise hides.public HTMLEditor(int rows,
int columns,
boolean showToolBar,
java.awt.event.ActionListener openActionListener,
java.awt.event.ActionListener saveActionListener,
java.awt.event.ActionListener printActionListener)
showToolBar is true,
then shows the tool bar initially; otherwise hidden.
This html text area is created with vertical scroll bar.rows - the number of rowscolumns - the number of columns.showToolBar - if true, then shows the tool bar initially;
otherwise hides.openActionListener - the action listener that receives action
events from the open button in tool bar.saveActionListener - the action listener that receives action
events from the save button in tool bar.printActionListener - the action listener that receives action
events from the print button in tool bar.protected TextEditModel createDefaultTextEditModel()
createDefaultTextEditModel クラス内 RichTextEditorprotected java.awt.Component createTextComponent(TextEditModel model, int rows, int columns)
createTextComponent クラス内 TextEditorpublic void setForeground(java.awt.Color color)
setForeground クラス内 TextComponentpublic void setBackground(java.awt.Color color)
setBackground クラス内 TextComponentpublic void setText(java.lang.String str)
setText クラス内 TextEditorstr - the new string.TextComponent.getText()public void setTEXT(Text text)
setTEXT クラス内 TextEditorTextComponent.getTEXT()public void setRichText(RichText rtext)
setRichText クラス内 TextEditorpublic void setLinkActionListener(java.awt.event.ActionListener l)
public HTMLText getHTMLText()
public void setHTMLText(HTMLText htmlText)
getHTMLText()public HTMLStyle getHTMLStyle()
public void setHTMLStyle(HTMLStyle htmlStyle)
public java.net.URL getURL()
public void setURL(java.net.URL url)
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public java.awt.Color getLinkColor()
public void setLinkColor(java.awt.Color color)
public java.lang.String[] getAllAnchorNames()
public int getAnchorIndex(java.lang.String name)
name - the name of the target anchor (reference).-1
if the target anchor (reference) does not exist.public void disableSubComps()
disableSubComps クラス内 TextEditorenableSubComps(),
disableSubComps(boolean)public void disableSubComps(boolean withStop)
withStop - if true, updates the stop button state.disableSubComps()public void enableSubComps()
enableSubComps クラス内 TextEditordisableSubComps(),
enableSubComps(boolean)public void enableSubComps(boolean withStop)
withStop - if true, updates the stop button state.enableSubComps()public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed インタフェース内 java.awt.event.ActionListeneractionPerformed クラス内 RichTextEditorActionListenerpublic void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged インタフェース内 java.awt.event.ItemListeneritemStateChanged クラス内 RichTextEditorItemListenerpublic void textPositionChanged(TextPositionEvent te)
textPositionChanged インタフェース内 TextPositionListenertextPositionChanged クラス内 TextEditorjava.awt.event.TextPositionListenerpublic void print_file()
print_file クラス内 TextEditorpublic void insert_link()
public void insert_link(java.lang.String urlString)
public void insert_link(java.awt.event.ActionEvent e)
public void delete_link()
public void make_font_large()
make_font_large クラス内 RichTextEditorpublic void make_font_small()
make_font_small クラス内 RichTextEditorpublic void set_paragraph_style(java.lang.String name)
public void make_list()
public void clear_list()
public void make_ordered_list()
public void clear_ordered_list()
public void increase_indent()
public void decrease_indent()
public void insert_anchor()
public void insert_anchor(java.lang.String target)
public void insert_anchor(java.awt.event.ActionEvent e)
public void goto_page(java.net.URL url)
public void goto_page(java.lang.String urlString)
public void goto_page(java.awt.event.ActionEvent e)
public void reload_page()
public void forward_page()
public void backward_page()
public void stop_loading()
public void edit_document_property()
public void open_file()
open_file クラス内 TextEditorpublic void open_file(java.io.File file)
open_file クラス内 TextEditorpublic void save_file()
save_file クラス内 TextEditorpublic void save_file_as(java.io.File file)
save_file_as クラス内 TextEditorpublic boolean saveAsHTML(java.io.File file)
file - the file to be saved into.protected void load(java.net.URL url,
boolean reload)
protected boolean loadHistory(java.net.URL url)
protected void load(java.net.URLConnection conn,
boolean reload)
protected void loadHTML(java.net.URLConnection conn,
java.net.URL url)
throws java.io.IOException
java.io.IOExceptionprotected void loadText(java.net.URLConnection conn)
throws java.io.IOException
java.io.IOExceptionprotected void loadImage(java.net.URLConnection conn,
java.net.URL url)
protected void loadError(java.net.URLConnection conn,
java.lang.String errorMessage)
protected jp.kyasu.editor.HistoryElement getHistoryElement(java.net.URL url)
protected void pushToHistory(HTMLText htmlText)
protected void updateHistory(HTMLText htmlText)
protected void gotoHistory(int index)
protected void updateLocationOfTextInHistory()
protected void closeLoadInputStream()
protected ToolBar createToolBar(boolean showToolBar, java.awt.event.ActionListener openActionListener, java.awt.event.ActionListener saveActionListener, java.awt.event.ActionListener printActionListener)
createToolBar クラス内 TextEditorshowToolBar - if true, then shows the tool bar initially;
otherwise hides.openActionListener - the action listener that receives action
events from the open button in tool bar.saveActionListener - the action listener that receives action
events from the save button in tool bar.printActionListener - the action listener that receives action
events from the print button in tool bar.protected java.awt.Component[] createWebComponents1()
protected java.awt.Component[] createWebComponents2()
protected java.awt.Component createParagraphStyleComponent()
protected java.awt.Component createFontNameComponent()
protected java.awt.Component[] createListComponents()
protected java.awt.Component[] createDocumentComponents()
protected java.awt.Component[] createInsertComponents()
protected java.awt.Menu createViewMenu()
createViewMenu クラス内 TextEditorprotected java.awt.Menu createFontMenu()
createFontMenu クラス内 TextEditorprotected java.awt.Menu createInsertMenu()
createInsertMenu クラス内 TextEditorprotected java.awt.Menu createFormatMenu()
createFormatMenu クラス内 TextEditorprotected java.awt.Menu createPStyleMenu()
protected void insertTextAttachmentAsLine(TextAttachment ta)
insertTextAttachmentAsLine クラス内 RichTextEditorprotected int[] getListStyleRange()
protected final boolean isListStyle(ParagraphStyle pStyle)
protected java.lang.String fileToURLString(java.io.File file)
public static void main(java.lang.String[] args)