JavaTM 2
Platform
Std.  Ed.  v1. 4.0

javax.swing.text
Ŭ·¡½º StyledEditorKit.StyledTextAction

java.lang.Object 
  |
  +--javax.swing.AbstractAction 
        |
        +--javax.swing.text.TextAction 
              |
              +--javax.swing.text.StyledEditorKit.StyledTextAction
¸ðµç ±¸Çö ÀÎÅÍÆäÀ̽º:
Action , ActionListener , Cloneable , EventListener , Serializable
Á÷°èÀÇ ±âÁ¸ÀÇ ¼­ºê Ŭ·¡½º:
HTMLEditorKit.HTMLTextAction , StyledEditorKit.AlignmentAction , StyledEditorKit.BoldAction , StyledEditorKit.FontFamilyAction , StyledEditorKit.FontSizeAction , StyledEditorKit.ForegroundAction , StyledEditorKit.ItalicAction , StyledEditorKit.UnderlineAction
Æ÷ÇԵǾî Àִ Ŭ·¡½º:
StyledEditorKit

public abstract static class StyledEditorKit.StyledTextAction
extends TextAction

ÀνºÅç µÈ StyledEditorKit (¶Ç´Â ¼­ºê Ŭ·¡½º)¿¡ ÀÇÇØ JEditorPane ·Î ¹æ¾Æ¼è µÈ´Ù°í º¸¿©Áö´Â ¾×¼ÇÀÔ´Ï´Ù. ÀÌ ¾×¼ÇÀº ij¸¯Åͳª ´Ü¶ôÀÇ ·¹º§ ¼Ó¼ºÀ» º¯°æÇÏ´Â °£ÀÌ ¸Þ¼ÒµåÀÔ´Ï´Ù. StyledDocument, JEditorPane, ¶Ç´Â StyledEditorKit °¡ true °¡ µÇÁö ¾Ê¾Ò´Ù°í º¸¿©Áö´Â °æ¿ì´Â ÀÌ °£ÀÌ ¸Þ¼Òµå¿¡ ÀÇÇØ IllegalArgumentException °¡ ½½·Î¿ì µË´Ï´Ù.

¼Ò½º°¡ JEditorPane Çü¿¡ ³×·Î¿ì º¯È¯µÇ´Â °æ¿ì, ÀÌ ¾×¼ÇÀÇ ¿µÇâÀ» ¹Þ´Â ÄÄÆÛ³ÍÆ®´Â ActionEvent ÀÇ ¼Ò½º°¡ µË´Ï´Ù. ¼Ò½º°¡ ³×·Î¿ì º¯È¯ÇÒ ¼ö ¾ø´Â °æ¿ì´Â ¸¶Áö¸·¿¡ Æ÷Ä¿½º°¡ ÀÖ´ø ÅØ½ºÆ® ÄÄÆÛ³ÍÆ®°¡ º¯°æµË´Ï´Ù. ¾î´À Âʵµ ¾Æ´Ñ °æ¿ì, ¾×¼ÇÀº ½ÇÇàµÇÁö ¾Ê½À´Ï´Ù.

°æ°í: ÀÌ Å¬·¡½ºÀÇ Á÷·ÄÈ­ µÈ ¿ÀºêÁ§Æ®´Â ÇâÈÄÀÇ Swing ÀÇ ¸±¸®½º¿Í´Â ȣȯ¼ºÀ» °¡ÁöÁö ¾Ê½À´Ï´Ù. ÇöÀçÀÇ Á÷·ÄÈ­ ¼­Æ÷Æ®´Â ´Ü±â°£ÀÇ ¿î¿ëÀ̳ª, °°Àº ¹öÁ¯ÀÇ Swing ¸¦ ½ÇÇàÇÏ´Â ¾îÇø®ÄÉÀ̼ǰ£ÀÇ RMI ¿¡ ÀûÀýÇϰí ÀÖ½À´Ï´Ù. 1.4 ¿¡¼­´Â ¸ðµç JavaBeansTM ÀÇ Àå±â ¿î¿ë ¼­Æ÷Æ®°¡, java.beans ÆÐŰÁö¿¡ Ãß°¡µÇ¾ú½À´Ï´Ù. XMLEncoder ¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä.


ÇʵåÀÇ °³¿ä
 
Ŭ·¡½º javax.swing. AbstractAction ¿¡¼­ »ó¼Ó¹ÞÀº Çʵå
changeSupport , enabled
 
ÀÎÅÍÆäÀ̽º javax.swing. Action ¿¡¼­ »ó¼Ó¹ÞÀº Çʵå
ACCELERATOR_KEY , ACTION_COMMAND_KEY , DEFAULT , LONG_DESCRIPTION , MNEMONIC_KEY , NAME , SHORT_DESCRIPTION , SMALL_ICON
 
»ý¼ºÀÚÀÇ °³¿ä
StyledEditorKit.StyledTextAction (String  nm)
          Ä³¸¯ÅÍ ¶óÀÎÀÎ ¾×¼Ç¸íÀ¸·ÎºÎÅÍ, »õ·Î¿î StyledTextAction ¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
 
¸Þ¼ÒµåÀÇ °³¿ä
protected  JEditorPane getEditor (ActionEvent  e)
          ¾×¼ÇÀÇ Å¸°Ù ¿¡µðÅ͸¦ ÃëµæÇÕ´Ï´Ù.
protected  StyledDocument getStyledDocument (JEditorPane  e)
          ÀÌ ¿¡µðÅÍ ±¸È¹¿¡ °ü·ÃÇÑ ¹®¼­¸¦ ÃëµæÇÕ´Ï´Ù.
protected  StyledEditorKit getStyledEditorKit (JEditorPane  e)
          ÀÌ ¿¡µðÅÍ ±¸È¹¿¡ °ü·ÃÇÑ ¿¡µðÅÍ Å¶À» ÃëµæÇÕ´Ï´Ù.
protected  void setCharacterAttributes (JEditorPane  editor, AttributeSet  attr, boolean replace)
          ÁöÁ¤µÈ ¼Ó¼ºÀ» ij¸¯ÅÍ ÄÁÅÙÃ÷¿¡ Àû¿ëÇÕ´Ï´Ù.
protected  void setParagraphAttributes (JEditorPane  editor, AttributeSet  attr, boolean replace)
          ÁöÁ¤µÈ ¼Ó¼ºÀ» ´Ü¶ô¿¡ Àû¿ëÇÕ´Ï´Ù.
 
Ŭ·¡½º 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
 
ÀÎÅÍÆäÀ̽º java.awt.event. ActionListener ¿¡¼­ »ó¼Ó¹ÞÀº ¸Þ¼Òµå
actionPerformed
 

»ý¼ºÀÚÀÇ »ó¼¼

StyledEditorKit.StyledTextAction

public StyledEditorKit.StyledTextAction(String  nm)
ij¸¯ÅÍ ¶óÀÎÀÎ ¾×¼Ç¸íÀ¸·ÎºÎÅÍ, »õ·Î¿î StyledTextAction ¸¦ ÀÛ¼ºÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
nm - ¾×¼ÇÀÇ À̸§
¸Þ¼ÒµåÀÇ »ó¼¼

getEditor

protected final JEditorPane  getEditor(ActionEvent  e)
¾×¼ÇÀÇ Å¸°Ù ¿¡µðÅ͸¦ ÃëµæÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
e - ¾×¼Ç À̺¥Æ®
¹Ýȯ°ª:
¿¡µðÅÍ

getStyledDocument

protected final StyledDocument  getStyledDocument(JEditorPane  e)
ÀÌ ¿¡µðÅÍ ±¸È¹¿¡ °ü·ÃÇÑ ¹®¼­¸¦ ÃëµæÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
e - ¿¡µðÅÍ
¹Ýȯ°ª:
¹®¼­
¿¹¿Ü:
IllegalArgumentException - ºÎÁ¤ÇÑ ¹®¼­ ŸÀÔÀÇ °æ¿ì

getStyledEditorKit

protected final StyledEditorKit  getStyledEditorKit(JEditorPane  e)
ÀÌ ¿¡µðÅÍ ±¸È¹¿¡ °ü·ÃÇÑ ¿¡µðÅÍ Å¶À» ÃëµæÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
e - ¿¡µðÅÍ ±¸È¹
¹Ýȯ°ª:
Ŷ
¿¹¿Ü:
IllegalArgumentException - ºÎÁ¤ÇÑ ¹®¼­ ŸÀÔÀÇ °æ¿ì

setCharacterAttributes

protected final void setCharacterAttributes(JEditorPane  editor,
                                            AttributeSet  attr,
                                            boolean replace)
ÁöÁ¤µÈ ¼Ó¼ºÀ» ij¸¯ÅÍ ÄÁÅÙÃ÷¿¡ Àû¿ëÇÕ´Ï´Ù. ¼±ÅÃÀÌ ÀÖ´Â °æ¿ì, ¼Ó¼ºÀº ±× ¼±Åà ¹üÀ§¿¡ Àû¿ëµË´Ï´Ù. ¼±ÅÃÀÌ ¾ø´Â °æ¿ì, ¼Ó¼ºÀº »ðÀԵǴ »õ·Î¿î ÅØ½ºÆ®ÀÇ ¼Ó¼ºÀ» Á¤ÀÇÇÏ´Â ÀÔ·Â ¼Ó¼º ¼¼Æ®¿¡ Àû¿ëµË´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
editor - ¿¡µðÅÍ
attr - ¼Ó¼º
replace - true ÀÇ °æ¿ì, ±âÁ¸ÀÇ ¼Ó¼ºÀ» ÃÖÃÊ·Î ¿Å°Ü³õÀ» ¼ö ÀÖ´Ù

setParagraphAttributes

protected final void setParagraphAttributes(JEditorPane  editor,
                                            AttributeSet  attr,
                                            boolean replace)
ÁöÁ¤µÈ ¼Ó¼ºÀ» ´Ü¶ô¿¡ Àû¿ëÇÕ´Ï´Ù. ¼±ÅÃÀÌ ÀÖ´Â °æ¿ì, ¼Ó¼ºÀº ±× ¼±Åðú »ç±Í´Â ´Ü¶ô¿¡ Àû¿ëµË´Ï´Ù. ¼±ÅÃÀÌ ¾ø´Â °æ¿ì, ¼Ó¼ºÀº ÇöÀçÀÇ caret À§Ä¡¿¡ ÀÖ´Â ´Ü¶ô¿¡ Àû¿ëµË´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
editor - ¿¡µðÅÍ
attr - ¼Ó¼º
replace - true ÀÇ °æ¿ì, ±âÁ¸ÀÇ ¼Ó¼ºÀ» ÃÖÃÊ·Î ¿Å°Ü³õÀ» ¼ö ÀÖ´Ù

JavaTM 2
Platform
Std.  Ed.  v1. 4.0

¹ö±×ÀÇ º¸°í¿Í ±â´ÉÀÇ ¸®Äù½ºÆ®
ÀÌ¿ÜÀÇ API ·¹ÆÛ·±½º ¹× °³¹ßÀÚ¿ë ¹®¼­¿¡ ´ëÇØ¼­´Â Java 2 SDK SE °³¹ßÀÚ¿ë ¹®¼­¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä. °³¹ßÀÚÀü¿ëÀÇ »ó¼¼ÇÑ ÇØ¼³, °³³äÀÇ °³¿ä, ¿ë¾îÀÇ Á¤ÀÇ, ¹ö±×ÀÇ È¸ÇÇÃ¥, ¹× ÄÚµå ½Ç·Ê°¡ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù.

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.