|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--javax.swing.AbstractAction | +--javax.swing.text.TextAction | +--javax.swing.text.StyledEditorKit.StyledTextAction | +--javax.swing.text.html.HTMLEditorKit.HTMLTextAction | +--javax.swing.text.html.HTMLEditorKit.InsertHTMLTextAction
InsertHTMLTextAction ´Â ±âÁ¸ÀÇ HTML ¹®¼¿¡ ÀÓÀÇÀÇ HTML ij¸¯ÅÍ ¶óÀÎÀ» »ðÀÔÇϱâ À§Çؼ »ç¿ëÇÕ´Ï´Ù. HTML.Tags ´Â 2 kr ÀÌ»ó ÁöÁ¤ÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù. 1 ¹øÂ°ÀÇ ÅÂ±× parentTag ´Â ¿ä¼ÒÀÇ Ãß°¡Ã³°¡ µÇ´Â ¹®¼³»¿¡¼ ºÎ¸ð¸¦ ½Äº°ÇÕ´Ï´Ù. 2 ¹øÂ°ÀÇ ÅÂ±× addTag ´Â ¹®¼¿¡ Ãß°¡µÇ´Â HTML ij¸¯ÅÍ ¶óÀγ»ÀÇ 1 ¹øÂ°ÀÇ Å±׸¦ ½Äº°ÇÕ´Ï´Ù. 1 kr À¯ÀÇÇØ¾ß ÇÒ Á¡Àº °Ç³×¹ÞÀº HTML ij¸¯ÅÍ ¶óÀγ»¿¡ ÇÊ¿äÇÑ Å±װ¡ ¾ø´Â °æ¿ì¿¡¼µµ, ÆÄ¼¿¡ ÀÇÇØ ÀûÀýÇÑ Å±װ¡ ¸ðµÎ »ý¼ºµÇ´Â °ÍÀÔ´Ï´Ù.
¿¹¸¦ µé¾î, º»¹®Áß¿¡ °Ñ(Ç¥)¸¦ »ðÀÔÇϱâ À§ÇÑ ¾×¼ÇÀ» ÀÛ¼ºÇÒ Çʿ䰡 ÀÖ´Ù°í ÇÕ´Ï´Ù. ÀÌ °æ¿ì, parentTag ´Â HTML.Tag.BODY, addTag ´Â HTML.Tag.TABLE °¡ µÇ¾î, ij¸¯ÅÍ ¶óÀÎÀº <table><tr><td></td></tr></table> µîÀÌ µË´Ï´Ù.
¶Ç, ´ëüÀÇ parentTag ¹× addTag ¸¦ Á¦°øÇÏ´Â ¿É¼Çµµ ÀÖ½À´Ï´Ù. ÀÌ·¯ÇÑ Å±״ ¿ÀÇÁ¼Â(offset)ÀÇ À§Ä¡¿¡ parentTag °¡ ¾ø´Â °æ¿ì¿¡ Á¶»çÇÒ ¼ö ÀÖ°Ô µË´Ï´Ù.
ÇʵåÀÇ °³¿ä | |
protected HTML.Tag |
addTag
ű×ÀÇ Ãß°¡ÀÇ ½ÃÁ¡ÀÌ µÇ´Â HTML ³»ÀÇ Å±×ÀÔ´Ï´Ù. |
protected HTML.Tag |
alternateAddTag
parentTag °¡ ¾ø°í, alternateParentTag °¡ ÀÖ´Â °æ¿ì¿¡, ű×ÀÇ Ãß°¡ÀÇ ½ÃÁ¡ÀÌ µÇ´Â HTML ³»ÀÇ ´ëü ű×ÀÔ´Ï´Ù. |
protected HTML.Tag |
alternateParentTag
parentTag °¡ ¹ß°ßµÇÁö ¾Ê´Â °æ¿ì¿¡, ¹®¼³»¿¡¼ ½Äº°µÇ´Â ´ëü ű×ÀÔ´Ï´Ù. |
protected String |
html
»ðÀԵǴ HTML ÀÔ´Ï´Ù. |
protected HTML.Tag |
parentTag
¹®¼³»¿¡¼ ½Äº°µÇ´Â ű×ÀÔ´Ï´Ù. |
Ŭ·¡½º javax.swing. AbstractAction ¿¡¼ »ó¼Ó¹ÞÀº Çʵå |
changeSupport , enabled |
ÀÎÅÍÆäÀ̽º javax.swing. Action ¿¡¼ »ó¼Ó¹ÞÀº Çʵå |
ACCELERATOR_KEY , ACTION_COMMAND_KEY , DEFAULT , LONG_DESCRIPTION , MNEMONIC_KEY , NAME , SHORT_DESCRIPTION , SMALL_ICON |
»ý¼ºÀÚÀÇ °³¿ä | |
HTMLEditorKit.InsertHTMLTextAction (String name,
String html,
HTML.Tag parentTag,
HTML.Tag addTag)
|
|
HTMLEditorKit.InsertHTMLTextAction (String name,
String html,
HTML.Tag parentTag,
HTML.Tag addTag,
HTML.Tag alternateParentTag,
HTML.Tag alternateAddTag)
|
¸Þ¼ÒµåÀÇ °³¿ä | |
void |
actionPerformed (ActionEvent ae)
HTML ¸¦ ¹®¼¿¡ »ðÀÔÇÕ´Ï´Ù. |
protected void |
insertAtBoundary (JEditorPane editor,
HTMLDocument doc,
int offset,
Element insertElement,
String html,
HTML.Tag parentTag,
HTML.Tag addTag)
°æ°è¿¡ »ðÀÔÇÒ °æ¿ì¿¡ ºÒ·Á °©´Ï´Ù. |
protected void |
insertAtBoundry (JEditorPane editor,
HTMLDocument doc,
int offset,
Element insertElement,
String html,
HTML.Tag parentTag,
HTML.Tag addTag)
Ãßõ µÇ°í ÀÖÁö ¾Ê½À´Ï´Ù. Java 2 Ç÷§Æû v1. 3 ¿¡ ´ëÇØ insertAtBoundary ¸¦ »ç¿ëÇØ ÁÖ¼¼¿ä. |
protected void |
insertHTML (JEditorPane editor,
HTMLDocument doc,
int offset,
String html,
int popDepth,
int pushDepth,
HTML.Tag addTag)
HTMLEditorKit.insertHTML ¸¦ À§ÇÑ Ä¿¹öÀÔ´Ï´Ù. |
Ŭ·¡½º javax.swing.text.html. HTMLEditorKit.HTMLTextAction ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
elementCountToTag , findElementMatchingTag , getElementsAt , getHTMLDocument , getHTMLEditorKit |
Ŭ·¡½º javax.swing.text. StyledEditorKit.StyledTextAction ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
getEditor , getStyledDocument , getStyledEditorKit , setCharacterAttributes , setParagraphAttributes |
Ŭ·¡½º javax.swing.text. TextAction ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
augmentList , getFocusedComponent , getTextComponent |
Ŭ·¡½º javax.swing. AbstractAction ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
addPropertyChangeListener , clone , firePropertyChange , getKeys , getPropertyChangeListeners , getValue , isEnabled , putValue , removePropertyChangeListener , setEnabled |
Ŭ·¡½º java.lang. Object ¿¡¼ »ó¼Ó¹ÞÀº ¸Þ¼Òµå |
equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
ÇʵåÀÇ »ó¼¼ |
protected String html
protected HTML.Tag parentTag
protected HTML.Tag addTag
protected HTML.Tag alternateParentTag
protected HTML.Tag alternateAddTag
»ý¼ºÀÚÀÇ »ó¼¼ |
public HTMLEditorKit.InsertHTMLTextAction(String name, String html, HTML.Tag parentTag, HTML.Tag addTag)
public HTMLEditorKit.InsertHTMLTextAction(String name, String html, HTML.Tag parentTag, HTML.Tag addTag, HTML.Tag alternateParentTag, HTML.Tag alternateAddTag)
¸Þ¼ÒµåÀÇ »ó¼¼ |
protected void insertHTML(JEditorPane editor, HTMLDocument doc, int offset, String html, int popDepth, int pushDepth, HTML.Tag addTag)
protected void insertAtBoundary(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag)
protected void insertAtBoundry(JEditorPane editor, HTMLDocument doc, int offset, Element insertElement, String html, HTML.Tag parentTag, HTML.Tag addTag)
public void actionPerformed(ActionEvent ae)
ae
- À̺¥Æ®
|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
Java, Java 2 D, ¹× JDBC ´Â ¹Ì±¹ ¹× ±× ¿ÜÀÇ ³ª¶ó¿¡ ÀÖ¾î¼ÀÇ ¹Ì±¹ Sun Microsystems, Inc. ÀÇ »óÇ¥ ȤÀº µî·Ï»óÇ¥ÀÔ´Ï´Ù.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.