|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 모든 클래스 | ||||||||||
개요: 상자 | 필드 | constructor | 메소드 | 상세: 필드 | constructor | 메소드 |
java.lang.Object | +--javax.swing.plaf.ComponentUI | +--javax.swing.plaf.RootPaneUI | +--javax.swing.plaf.basic.BasicRootPaneUI
RootPaneUI 의 기본적인 구현입니다. RootPaneUI 에는 전 JRootPane 인스턴스로 공유하는 구현이 1 개 있습니다.
생성자의 개요 | |
BasicRootPaneUI ()
|
메소드의 개요 | |
static ComponentUI |
createUI (JComponent c)
지정된 컴퍼넌트의 UI delegate의 인스턴스를 돌려줍니다. |
protected void |
installComponents (JRootPane root)
|
protected void |
installDefaults (JRootPane c)
|
protected void |
installKeyboardActions (JRootPane root)
|
protected void |
installListeners (JRootPane root)
|
void |
installUI (JComponent c)
Look & Feel 에 적절한, 지정된 컴퍼넌트를 구성합니다. |
void |
propertyChange (PropertyChangeEvent e)
루트 구획의 프로퍼티가 변경이 되었을 때에 불려 갑니다. |
protected void |
uninstallComponents (JRootPane root)
|
protected void |
uninstallDefaults (JRootPane root)
|
protected void |
uninstallKeyboardActions (JRootPane root)
|
protected void |
uninstallListeners (JRootPane root)
|
void |
uninstallUI (JComponent c)
installUI 시에, 지정된 컴퍼넌트로 실행한 구성을 취소합니다. |
클래스 javax.swing.plaf. ComponentUI 에서 상속받은 메소드 |
contains , getAccessibleChild , getAccessibleChildrenCount , getMaximumSize , getMinimumSize , getPreferredSize , paint , update |
클래스 java.lang. Object 에서 상속받은 메소드 |
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
생성자의 상세 |
public BasicRootPaneUI()
메소드의 상세 |
public static ComponentUI createUI(JComponent c)
ComponentUI
의 기술: createUI
메소드를 제공해, 그 UI delegate의 서브 클래스의 인스턴스를 돌려줄 필요가 있습니다. UI delegate의 서브 클래스가 상태 없음의 경우, 복수의 컴퍼넌트에 공유되는 인스턴스를 돌려줍니다. UI delegate이 상태 있는 경우, 컴퍼넌트 마다 새로운 인스턴스를 돌려줄 필요가 있습니다. 이 메소드는 호출해선 안 되기 때문에, 그 디폴트 구현은 에러를 슬로우 합니다.
public void installUI(JComponent c)
ComponentUI
의 기술: ComponentUI
인스턴스가, 지정된 컴퍼넌트의 UI delegate으로서 인스톨 되고 있을 때 불려 갑니다. 이 메소드는 이하를 포함한 Look & Feel 용의 컴퍼넌트를 완전하게 구성할 필요가 있습니다.
LayoutManager
를 인스톨 한다
PropertyChangeListener
를 컴퍼넌트에 작성 또는 인스톨 한다
ComponentUI
내의 installUI
c
- UI delegate이 인스톨 되고 있는 컴퍼넌트ComponentUI.uninstallUI(javax.swing.JComponent)
,
JComponent.setUI(javax.swing.plaf.ComponentUI)
,
JComponent.updateUI()
public void uninstallUI(JComponent c)
ComponentUI
의 기술: installUI
시에, 지정된 컴퍼넌트로 실행한 구성을 취소합니다. 이 메소드는 지정된 컴퍼넌트의 UI delegate으로서의 UIComponent
인스턴스가 삭제되고 있을 때 불려 갑니다. 이 메소드는 installUI
에 의해 실행된 구성을 바탕으로 되돌릴 필요가 있습니다. 이 경우,JComponent
인스턴스를 깨끗한 상태 (여분의 청취자나, Look & Feel 고유의 프로퍼티 오브젝트가 남지 않게)로 하도록(듯이) 충분히 주의해 주세요. 순서에는 다음의 것이 있습니다.
ComponentUI
내의 uninstallUI
c
- 이 UI delegate이 삭제되는 컴퍼넌트. 이 인수는 자주 무시되지만, UI 오브젝트가 상태없이 복수의 컴퍼넌트에 공유되는 경우에 사용되는 일이 있는ComponentUI.installUI(javax.swing.JComponent)
,
JComponent.updateUI()
protected void installDefaults(JRootPane c)
protected void installComponents(JRootPane root)
protected void installListeners(JRootPane root)
protected void installKeyboardActions(JRootPane root)
protected void uninstallDefaults(JRootPane root)
protected void uninstallComponents(JRootPane root)
protected void uninstallListeners(JRootPane root)
protected void uninstallKeyboardActions(JRootPane root)
public void propertyChange(PropertyChangeEvent e)
defaultButton
가 변경이 된 것을 이벤트가 가리키는 경우는 키보드 액션을 인스톨 다시 합니다.
PropertyChangeListener
내의 propertyChange
e
- 이벤트 소스 및 변경한 프로퍼티를 기술하는 PropertyChangeEvent 오브젝트
|
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.