JavaTM Platform
Standard Ed. 6

javax.swing.text
클래스 StyledEditorKit.ForegroundAction

java.lang.Object 
  상위를 확장 javax.swing.AbstractAction 
      상위를 확장 javax.swing.text.TextAction 
          상위를 확장 javax.swing.text.StyledEditorKit.StyledTextAction 
              상위를 확장 javax.swing.text.StyledEditorKit.ForegroundAction
모든 구현된 인터페이스:
ActionListener , Serializable , Cloneable , EventListener , Action
포함되어 있는 클래스:
StyledEditorKit


public static class StyledEditorKit.ForegroundAction
extends StyledEditorKit.StyledTextAction

foreground 칼라를 설정하는 액션입니다. 이것에 의해, 타겟 JEditorPane 의 현재 선택되고 있는 범위에 있어서의 StyleConstants.Foreground 속성이 설정됩니다. 이 처리는, 타겟 JEditorPane 에 관련지을 수 있었던 서식 첨부 문서상에서 StyledDocument.setCharacterAttributes 를 호출하는 것으로 실행됩니다.

타겟의 텍스트 컴퍼넌트가 ActionEvent 의 소스로서 지정되어 또 커멘드 캐릭터 라인이 존재하는 경우, 그 커멘드 캐릭터 라인은 foreground 칼라로서 해석됩니다. 커멘드 캐릭터 라인은 불려 간 Color.decode 에 의해 해석되기 (위해)때문에,Color.decode 메소드의 적정한 입력치가 아니면 안됩니다.

경고: 이 클래스의 직렬화 된 객체는, 향후의 Swing 릴리스와 호환은 아니게 될 예정입니다. 현재의 직렬화의 지원는, 단기간의 운용이나, 같은 버젼의 Swing 를 실행하는 어플리케이션간의 RMI 에 적절하고 있습니다. JDK Version 1.4 이후, 모든 JavaBeans 의 장기간의 운용 지원는,java.beans 패키지에 추가되고 있습니다. 자세한 것은,XMLEncoder 를 참조해 주세요.


필드의 개요
 
클래스 javax.swing. AbstractAction 로부터 상속된 필드
changeSupport , enabled
 
인터페이스 javax.swing. Action 로부터 상속된 필드
ACCELERATOR_KEY , ACTION_COMMAND_KEY , DEFAULT , DISPLAYED_MNEMONIC_INDEX_KEY , LARGE_ICON_KEY , LONG_DESCRIPTION , MNEMONIC_KEY , NAME , SELECTED_KEY , SHORT_DESCRIPTION , SMALL_ICON
 
생성자 의 개요
StyledEditorKit.ForegroundAction (String  nm, Color  fg)
          새로운 ForegroundAction 를 작성합니다.
 
메소드의 개요
 void actionPerformed (ActionEvent  e)
          foreground 칼라를 설정합니다.
 
클래스 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
 

생성자 의 상세

StyledEditorKit.ForegroundAction

public StyledEditorKit.ForegroundAction(String  nm,
                                        Color  fg)
새로운 ForegroundAction 를 작성합니다.

파라미터:
nm - 액션명
fg - foreground 칼라
메소드의 상세

actionPerformed

public void actionPerformed(ActionEvent  e)
foreground 칼라를 설정합니다.

파라미터:
e - 액션 이벤트

JavaTM Platform
Standard Ed. 6

버그의 보고와 기능의 요청
한층 더 자세한 API 레퍼런스 및 개발자 문서에 대해서는,Java SE 개발자용 문서를 참조해 주세요. 개발자전용의 상세한 해설, 개념의 개요, 용어의 정의, 버그의 회피책, 및 코드 실례가 포함되어 있습니다.

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.