|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요 : 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JSplitPane
public class JSplitPane
JSplitPane
는 2 개의 Component
를 분할하는데 사용합니다 (2 개(살)인 만큼 분할). 2 개의 Component
는 Look & Feel 의 구현을 기준으로 해 그래피컬하게 분할됩니다. 그 후로는, 2 개의 Component
는 사용자가 대화적으로 사이즈 변경할 수 있게 됩니다. JSplitPane
의 정보에 대해서는, 「The Java Tutorial」의「How to Use Split Panes」를 참조해 주세요.
2 개의 Component
는,JSplitPane.HORIZONTAL_SPLIT
를 사용해 좌우에,JSplitPane.VERTICAL_SPLIT
를 사용해 상하에 정렬할 수 있습니다. Component
의 사이즈를 변경하려면 ,JSplitPane
의 방향으로 응해 location
가 새로운 x 또는 y 의 위치인 setDividerLocation
를 호출하는 것을 추천합니다.
Component
의 사이즈를 목적의 사이즈로 변경하려면 ,resetToPreferredSizes
를 호출합니다.
사용자가 Component
의 사이즈를 변경할 때는,Component
의 최소 사이즈를 사용해,Component
로 설정할 수 있는 최대 또는 최소의 위치를 결정합니다. 따라서, 2 개의 컴퍼넌트의 최소 사이즈가 분할 구획의 사이즈보다 큰 경우, 디바이더는 컴퍼넌트의 사이즈 변경을 허가하지 않습니다. JComponent
의 최소 사이즈의 변경 방법에 대해서는,JComponent.setMinimumSize(java.awt.Dimension)
를 참조해 주세요.
사용자가 분할 구획의 사이즈를 변경하면(자),resizeWeight
프로퍼티에 근거해 2 개의 컴퍼넌트의 사이에 새로운 스페이스가 분배됩니다. 디폴트의 값 0 은 오른쪽 또는 아래의 컴퍼넌트가 모든 스페이스를 취득하는 것을 나타내, 값 1 은 왼쪽 또는 위의 컴퍼넌트가 모든 스페이스를 취득하는 것을 나타냅니다.
경고: Swing 는 thread에 대해서 안전하지는 않습니다. 자세한 것은,「Swing's Threading Policy」를 참조해 주세요.
경고: 이 클래스의 직렬화 된 객체는, 향후의 Swing 릴리스와 호환은 아니게 될 예정입니다. 현재의 직렬화의 지원는, 단기간의 운용이나, 같은 버젼의 Swing 를 실행하는 어플리케이션간의 RMI 에 적절하고 있습니다. JDK Version 1.4 이후, 모든 JavaBeans™ 의 장기간의 운용 지원는,java.beans
패키지에 추가되고 있습니다. 자세한 것은,XMLEncoder
를 참조해 주세요.
setDividerLocation(double)
,
resetToPreferredSizes()
상자의 클래스의 개요 | |
---|---|
protected class |
JSplitPane.AccessibleJSplitPane
이 클래스는 JSplitPane 클래스용의 접근성? 지원를 구현하고 있습니다. |
클래스 javax.swing. JComponent 로부터 상속된 상자의 클래스/인터페이스 |
---|
JComponent.AccessibleJComponent |
클래스 java.awt. Container 로부터 상속된 상자의 클래스/인터페이스 |
---|
Container.AccessibleAWTContainer |
클래스 java.awt. Component 로부터 상속된 상자의 클래스/인터페이스 |
---|
Component.AccessibleAWTComponent , Component.BaselineResizeBehavior , Component.BltBufferStrategy , Component.FlipBufferStrategy |
필드의 개요 | |
---|---|
static String |
BOTTOM
Component 를 이제(벌써) 한편의 Component 아래에 추가할 경우에 사용합니다. |
static String |
CONTINUOUS_LAYOUT_PROPERTY
continuousLayout 의 바운드 프로퍼티명입니다. |
protected boolean |
continuousLayout
사이즈 변경때, 뷰가 계속해 재표시될지 어떨지를 나타냅니다. |
static String |
DIVIDER
디바이더를 나타내는 Component 를 추가할 경우에 사용합니다. |
static String |
DIVIDER_LOCATION_PROPERTY
dividerLocation 의 바운드 프로퍼티입니다. |
static String |
DIVIDER_SIZE_PROPERTY
경계의 바운드 프로퍼티명입니다. |
protected int |
dividerSize
디바이더의 사이즈입니다. |
static int |
HORIZONTAL_SPLIT
수평 분할은, Component 가 x 축으로 따라 분할되는 것을 나타냅니다. |
static String |
LAST_DIVIDER_LOCATION_PROPERTY
lastLocation 의 바운드 프로퍼티입니다. |
protected int |
lastDividerLocation
스프릿트인의 이전의 위치입니다. |
static String |
LEFT
Component 를 이제(벌써) 한편의 Component 의 왼쪽으로 추가할 경우에 사용합니다. |
protected Component |
leftComponent
왼쪽 또는 위의 컴퍼넌트입니다. |
static String |
ONE_TOUCH_EXPANDABLE_PROPERTY
oneTouchExpandable 의 바운드 프로퍼티입니다. |
protected boolean |
oneTouchExpandable
스프릿트인을 재빠르게 전개하는/수납하기 위해서 제공되는 작은 위짓트입니다. |
protected int |
orientation
뷰를 분할하는 방법입니다. |
static String |
ORIENTATION_PROPERTY
방향 (수평 또는 수직)의 바운드 프로퍼티명입니다. |
static String |
RESIZE_WEIGHT_PROPERTY
웨이트의 바운드 프로퍼티입니다. |
static String |
RIGHT
Component 를 이제(벌써) 한편의 Component 의 오른쪽으로 추가할 경우에 사용합니다. |
protected Component |
rightComponent
오른쪽 또는 아래의 컴퍼넌트입니다. |
static String |
TOP
Component 를 이제(벌써) 한편의 Component 위에 추가할 경우에 사용합니다. |
static int |
VERTICAL_SPLIT
수직 분할은, Component 가 y 축으로 따라 분할되는 것을 나타냅니다. |
클래스 javax.swing. JComponent 로부터 상속된 필드 |
---|
accessibleContext , listenerList , TOOL_TIP_TEXT_KEY , ui , UNDEFINED_CONDITION , WHEN_ANCESTOR_OF_FOCUSED_COMPONENT , WHEN_FOCUSED , WHEN_IN_FOCUSED_WINDOW |
클래스 java.awt. Component 로부터 상속된 필드 |
---|
BOTTOM_ALIGNMENT , CENTER_ALIGNMENT , LEFT_ALIGNMENT , RIGHT_ALIGNMENT , TOP_ALIGNMENT |
인터페이스 java.awt.image. ImageObserver 로부터 상속된 필드 |
---|
ABORT , ALLBITS , ERROR , FRAMEBITS , HEIGHT , PROPERTIES , SOMEBITS , WIDTH |
생성자 의 개요 | |
---|---|
JSplitPane ()
컴퍼넌트의 2 개의 버튼을 사용해, 연속한 레이아웃은 아니고, 수평 방향으로 아이 컴퍼넌트가 줄서도록(듯이) 설정된 새로운 JSplitPane 를 작성합니다. |
|
JSplitPane (int newOrientation)
지정된 방향으로, 연속한 레이아웃은 아니고 설정된, 새로운 JSplitPane 를 작성합니다. |
|
JSplitPane (int newOrientation,
boolean newContinuousLayout)
방향과 재draw의 스타일을 지정해 새로운 JSplitPane 를 작성합니다. |
|
JSplitPane (int newOrientation,
boolean newContinuousLayout,
Component newLeftComponent,
Component newRightComponent)
방향, 재draw 스타일, 컴퍼넌트를 지정해 새로운 JSplitPane 를 작성합니다. |
|
JSplitPane (int newOrientation,
Component newLeftComponent,
Component newRightComponent)
방향과 연속한 재draw를 실시하지 않는 컴퍼넌트를 지정해 새로운 JSplitPane 를 작성합니다. |
메소드의 개요 | |
---|---|
protected void |
addImpl (Component comp,
Object constraints,
int index)
이 분할 구획으로 지정한 컴퍼넌트를 추가합니다. |
AccessibleContext |
getAccessibleContext ()
이 JSplitPane 에 관련한 AccessibleContext 를 돌려줍니다. |
Component |
getBottomComponent ()
디바이더아래 또는 오른쪽의 컴퍼넌트를 돌려줍니다. |
int |
getDividerLocation ()
setDividerLocation 에게 건네진 최종치를 돌려줍니다. |
int |
getDividerSize ()
디바이더의 사이즈를 돌려줍니다. |
int |
getLastDividerLocation ()
디바이더가 놓여져 있던 이전의 위치를 돌려줍니다. |
Component |
getLeftComponent ()
디바이더의 왼쪽 (위)에 있는 컴퍼넌트를 돌려줍니다. |
int |
getMaximumDividerLocation ()
Look & Feel 의 구현으로부터 디바이더의 최대의 위치를 돌려줍니다. |
int |
getMinimumDividerLocation ()
Look & Feel 의 구현으로부터 디바이더의 최소의 위치를 돌려줍니다. |
int |
getOrientation ()
방향을 돌려줍니다. |
double |
getResizeWeight ()
여분의 스페이스의 배분 방법을 결정하는 수를 돌려줍니다. |
Component |
getRightComponent ()
디바이더의 오른쪽 (또는 아래)의 컴퍼넌트를 돌려줍니다. |
Component |
getTopComponent ()
디바이더 위 또는 왼쪽의 컴퍼넌트를 돌려줍니다. |
SplitPaneUI |
getUI ()
현재의 Look & Feel 를 제공하고 있는 SplitPaneUI 를 돌려줍니다. |
String |
getUIClassID ()
이 컴퍼넌트를 draw 하는 L&F 클래스의 이름을 돌려줍니다. |
boolean |
isContinuousLayout ()
continuousLayout 의 프로퍼티을 가져옵니다. |
boolean |
isOneTouchExpandable ()
oneTouchExpandable 프로퍼티을 돌려줍니다. |
boolean |
isValidateRoot ()
true 를 돌려주면(자), JSplitPane 의 하위 객체로 revalidate 를 불려 가,JSplitPane 와 그 모든 하위 객체를 검증하는 요구가 큐에 넣어집니다. |
protected void |
paintChildren (Graphics g)
경계의 페인트와 함께, 슈퍼 클래스에 메세지가 보내진 후에, finishedPaintingChildren 를 가지는 UI 에 메세지를 보내기 위해서(때문에) 서브 클래스화 됩니다. |
protected String |
paramString ()
이 JSplitPane 의 캐릭터 라인 표현을 돌려줍니다. |
void |
remove (Component component)
아이 컴퍼넌트 component 를 구획으로부터 삭제합니다. |
void |
remove (int index)
지정된 인덱스의 Component 를 삭제합니다. |
void |
removeAll ()
분할 구획으로부터 모든 아이 컴퍼넌트를 삭제합니다. |
void |
resetToPreferredSizes ()
아이 컴퍼넌트의 적절한 사이즈에 근거해 JSplitPane 레이아웃을 배치합니다. |
void |
setBottomComponent (Component comp)
컴퍼넌트를 디바이더아래 또는 오른쪽으로 설정합니다. |
void |
setContinuousLayout (boolean newContinuousLayout)
continuousLayout 프로퍼티의 값을 설정합니다. |
void |
setDividerLocation (double proportionalLocation)
JSplitPane 의 사이즈의 퍼센티지로 디바이더의 위치를 설정합니다. |
void |
setDividerLocation (int location)
디바이더의 위치를 설정합니다. |
void |
setDividerSize (int newSize)
디바이더의 사이즈를 설정합니다. |
void |
setLastDividerLocation (int newLastLocation)
이전에 디바이더가 놓여져 있던 위치를 newLastLocation 으로 설정합니다. |
void |
setLeftComponent (Component comp)
컴퍼넌트를 디바이더의 왼쪽 (위)으로 설정합니다. |
void |
setOneTouchExpandable (boolean newValue)
oneTouchExpandable 프로퍼티의 값을 설정합니다. |
void |
setOrientation (int orientation)
방향, 또는 스플리터가 어떻게 분할되는지를 설정합니다. |
void |
setResizeWeight (double value)
분할 구획이 변경되었을 때의 여분의 스페이스의 배분 방법을 지정합니다. |
void |
setRightComponent (Component comp)
디바이더의 오른쪽 (또는 아래)의 컴퍼넌트를 설정합니다. |
void |
setTopComponent (Component comp)
컴퍼넌트를 디바이더 위 또는 왼쪽으로 설정합니다. |
void |
setUI (SplitPaneUI ui)
이 컴퍼넌트를 draw 하는 L&F 객체를 설정합니다. |
void |
updateUI ()
L&F 가 변경되었다고 하는 UIManager 로부터의 통지입니다. |
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
필드의 상세 |
---|
public static final int VERTICAL_SPLIT
Component
가 y 축으로 따라 분할되는 것을 나타냅니다. 예를 들어 2 개의 Component
가 상하에 줄서도록(듯이) 분할되는 것을 나타냅니다.
public static final int HORIZONTAL_SPLIT
Component
가 x 축으로 따라 분할되는 것을 나타냅니다. 예를 들어 2 개의 Component
가 좌우에 줄서도록(듯이) 분할되는 것을 나타냅니다.
public static final String LEFT
Component
를 이제(벌써) 한편의 Component
의 왼쪽으로 추가할 경우에 사용합니다.
public static final String RIGHT
Component
를 이제(벌써) 한편의 Component
의 오른쪽으로 추가할 경우에 사용합니다.
public static final String TOP
Component
를 이제(벌써) 한편의 Component
위에 추가할 경우에 사용합니다.
public static final String BOTTOM
Component
를 이제(벌써) 한편의 Component
아래에 추가할 경우에 사용합니다.
public static final String DIVIDER
Component
를 추가할 경우에 사용합니다.
public static final String ORIENTATION_PROPERTY
public static final String CONTINUOUS_LAYOUT_PROPERTY
public static final String DIVIDER_SIZE_PROPERTY
public static final String ONE_TOUCH_EXPANDABLE_PROPERTY
public static final String LAST_DIVIDER_LOCATION_PROPERTY
public static final String DIVIDER_LOCATION_PROPERTY
public static final String RESIZE_WEIGHT_PROPERTY
protected int orientation
protected boolean continuousLayout
protected Component leftComponent
protected Component rightComponent
protected int dividerSize
protected boolean oneTouchExpandable
protected int lastDividerLocation
생성자 의 상세 |
---|
public JSplitPane()
JSplitPane
를 작성합니다.
public JSplitPane(int newOrientation)
JSplitPane
를 작성합니다.
newOrientation
- JSplitPane.HORIZONTAL_SPLIT
또는 JSplitPane.VERTICAL_SPLIT
IllegalArgumentException
- orientation
가 HORIZONTAL_SPLIT 또는 VERTICAL_SPLIT 의 어느 쪽인지 나오지 않는 경우public JSplitPane(int newOrientation, boolean newContinuousLayout)
JSplitPane
를 작성합니다.
newOrientation
- JSplitPane.HORIZONTAL_SPLIT
또는 JSplitPane.VERTICAL_SPLIT
newContinuousLayout
- boolean 치. 디바이더의 위치의 변경에 맞추어 컴퍼넌트가 연속해 재draw 되도록(듯이) 하는 경우는 true,
디바이더의 위치의 변경이 종료할 때까지 재draw를 대기하는 경우는
false
IllegalArgumentException
- orientation
가 HORIZONTAL_SPLIT 또는 VERTICAL_SPLIT 의 어느 쪽인지 나오지 않는 경우public JSplitPane(int newOrientation, Component newLeftComponent, Component newRightComponent)
JSplitPane
를 작성합니다.
newOrientation
- JSplitPane.HORIZONTAL_SPLIT
또는 JSplitPane.VERTICAL_SPLIT
newLeftComponent
- 수평 방향으로 분할된 구획의 왼쪽, 또는 수직 방향으로 분할된 구획 후에 표시되는 Component
newRightComponent
- 수평 방향으로 분할된 구획의 오른쪽, 또는 수직 방향으로 분할된 구획아래에 표시되는 Component
IllegalArgumentException
- orientation
가 HORIZONTAL_SPLIT 또는 VERTICAL_SPLIT 의 어느 쪽인지 나오지 않는 경우public JSplitPane(int newOrientation, boolean newContinuousLayout, Component newLeftComponent, Component newRightComponent)
JSplitPane
를 작성합니다.
newOrientation
- JSplitPane.HORIZONTAL_SPLIT
또는 JSplitPane.VERTICAL_SPLIT
newContinuousLayout
- boolean 치. 디바이더의 위치의 변경에 맞추어 컴퍼넌트가 연속해 재draw 되도록(듯이) 하는 경우는 true,
디바이더의 위치의 변경이 종료할 때까지 재draw를 대기하는 경우는
falsenewLeftComponent
- 수평 방향으로 분할된 구획의 왼쪽, 또는 수직 방향으로 분할된 구획 후에 표시되는 Component
newRightComponent
- 수평 방향으로 분할된 구획의 오른쪽, 또는 수직 방향으로 분할된 구획아래에 표시되는 Component
IllegalArgumentException
- orientation
가 HORIZONTAL_SPLIT 또는 VERTICAL_SPLIT 의 어느 쪽인지 나오지 않는 경우메소드의 상세 |
---|
public void setUI(SplitPaneUI ui)
ui
- SplitPaneUI
L&F 객체UIDefaults.getUI(javax.swing.JComponent)
public SplitPaneUI getUI()
SplitPaneUI
를 돌려줍니다.
SplitPaneUI
객체public void updateUI()
UIManager
로부터의 통지입니다. 현재의 UI 객체를 UIManager
의 최신 버젼에 옮겨놓습니다.
JComponent
내의 updateUI
JComponent.updateUI()
public String getUIClassID()
JComponent
내의 getUIClassID
JComponent.getUIClassID()
,
UIDefaults.getUI(javax.swing.JComponent)
public void setDividerSize(int newSize)
newSize
- 디바이더의 사이즈를 픽셀수로 지정하는 int 치public int getDividerSize()
public void setLeftComponent(Component comp)
comp
- 그 위치에 표시하는 Component
public Component getLeftComponent()
Component
public void setTopComponent(Component comp)
comp
- 그 위치에 표시하는 Component
public Component getTopComponent()
Component
public void setRightComponent(Component comp)
comp
- 그 위치에 표시하는 Component
public Component getRightComponent()
Component
public void setBottomComponent(Component comp)
comp
- 그 위치에 표시하는 Component
public Component getBottomComponent()
Component
public void setOneTouchExpandable(boolean newValue)
oneTouchExpandable
프로퍼티의 값을 설정합니다. 이 값은,JSplitPane
가 디바이더의 UI 위젯를 제공해, 디바이더를 신속히 전개/수납하기 위해서,true
로 설정할 필요가 있습니다. 이 프로퍼티의 디폴트의 값은 false
입니다. 일부의 Look & Feel 가 원터치의 전개를 지원하지 않는 경우가 있습니다. 그 경우, 이 프로퍼티은 무시됩니다.
newValue
- 분할 구획이 전개/꺾어 접어 위젯를 제공하도록(듯이) 지정하는 경우는 true
isOneTouchExpandable()
public boolean isOneTouchExpandable()
oneTouchExpandable
프로퍼티을 돌려줍니다.
oneTouchExpandable
프로퍼티의 값setOneTouchExpandable(boolean)
public void setLastDividerLocation(int newLastLocation)
newLastLocation
으로 설정합니다.
newLastLocation
- 디바이더의 이전의 위치를,
구획의 좌 (또는 상)단으로부터 디바이더의 좌 (또는 상)단까지의
픽셀수로 지정하는 정수치public int getLastDividerLocation()
public void setOrientation(int orientation)
orientation
- 방향을 지정하는 정수치
IllegalArgumentException
- 방향이
HORIZONTAL_SPLIT 도 VERTICAL_SPLIT 도 아닌 경우public int getOrientation()
setOrientation(int)
public void setContinuousLayout(boolean newContinuousLayout)
continuousLayout
프로퍼티의 값을 설정합니다. 이 값은 사용자가 조작했을 때에 아이 컴퍼넌트가 연속적으로 재draw 되어 배치되도록(듯이) true
로 설정할 필요가 있습니다. 이 프로퍼티의 디폴트의 값은 false
입니다. 일부의 Look & Feel 는 연속한 레이아웃을 지원하고 있습니다. 그 경우, 이 프로퍼티은 무시됩니다.
newContinuousLayout
- 디바이더의 위치가 변경되었을 때에 컴퍼넌트가 연속적으로 재draw 되는 경우는 true
isContinuousLayout()
public boolean isContinuousLayout()
continuousLayout
의 프로퍼티을 가져옵니다.
continuousLayout
의 프로퍼티의 값setContinuousLayout(boolean)
public void setResizeWeight(double value)
value
- 상기대로
IllegalArgumentException
- value
가 0 보다 작은지, 1 보다 큰 경우public double getResizeWeight()
public void resetToPreferredSizes()
JSplitPane
레이아웃을 배치합니다. 일반적으로은, 이것에 의해 디바이더의 위치가 바뀝니다.
public void setDividerLocation(double proportionalLocation)
JSplitPane
의 사이즈의 퍼센티지로 디바이더의 위치를 설정합니다.
이 메소드는 setDividerLocation(int)
에 근거해 구현됩니다. 이 메소드는 현재의 사이즈에 근거해 분할 구획의 사이즈를 즉시 변경합니다. 분할 구획이 스크린상에서 올바르게 실현되지 않는 경우, 새로운 디바이더의 위치는 현재의 사이즈 * proportionalLocation 가 0 이 되어, 이 메소드의 효과는 없습니다.
proportionalLocation
- 0 (위 또는 왼쪽)에서 1.0 (아래 또는 오른쪽)까지의 퍼센티지를 지정하는 배정밀도 부동 소수점치
IllegalArgumentException
- 지정된 위치가 0 보다 작은지, 1.0 보다 큰 경우public void setDividerLocation(int location)
setLastDividerLocation
에 의해 변경됩니다.
location
- UI 고유의 값 (일반적으로은 픽셀수)을 지정하는 int 치public int getDividerLocation()
setDividerLocation
에게 건네진 최종치를 돌려줍니다. 이 메소드로 반환된 값은,setDividerLocation
에게 건네진 값이 현재의 사이즈보다 큰 경우는, 실제의 디바이더의 위치와 다른 경우가 있습니다.
public int getMinimumDividerLocation()
null
의 경우는 -1
(전문으로 함께 했습니다)
public int getMaximumDividerLocation()
null
의 경우는 -1
(전문으로 함께 했습니다)
public void remove(Component component)
component
를 구획으로부터 삭제합니다. 필요에 따라서,leftComponent
또는 rightComponent
인스턴스 변수를 리셋 합니다.
Container
내의 remove
component
- 삭제하는 Component
Container.add(java.awt.Component)
,
Container.validate()
,
Container.remove(int)
public void remove(int index)
Component
를 삭제합니다. 필요에 따라서,leftComponent
및 rightComponent
인스턴스 변수를 변경하고 나서, 슈퍼 클래스에 메세지를 보냅니다.
Container
내의 remove
index
- 삭제하는 컴퍼넌트를 지정하는 int 치. 1 에서는 왼쪽 또는 위의 컴퍼넌트가 지정되어 2 에서는 아래 또는 오른쪽의 컴퍼넌트가 지정되는Container.add(java.awt.Component)
,
Container.validate()
,
Container.getComponentCount()
public void removeAll()
leftComonent
및 rightComponent
인스턴스 변수를 리셋 합니다.
Container
내의 removeAll
Container.add(java.awt.Component)
,
Container.remove(int)
public boolean isValidateRoot()
JSplitPane
의 하위 객체로 revalidate
를 불려 가,JSplitPane
와 그 모든 하위 객체를 검증하는 요구가 큐에 넣어집니다.
JComponent
내의 isValidateRoot
JComponent.revalidate()
protected void addImpl(Component comp, Object constraints, int index)
constraints
가 왼쪽 또는 위 혹은 오른쪽 또는 아래의 아이 컴퍼넌트를 식별해, 그 식별자를 가지는 컴퍼넌트가 이전에 추가되고 있는 경우는, 그것을 삭제하고 나서, 그 위치에 comp
를 추가합니다. constraints
가 기존의 식별자가 아닌 경우, 레이아웃 매니저는 IllegalArgumentException
를 throw 합니다. 지정할 수 있는 제약 객체 (String)는 다음과 같습니다.
constraints
객체가 null
의 경우, 이용 가능한 최초의 위치에 컴퍼넌트가 추가됩니다 (열려 있는 경우는 왼쪽 또는 위, 그렇지 않은 경우는 오른쪽 또는 아래).
Container
내의 addImpl
comp
- 추가하는 컴퍼넌트constraints
- 이 컴퍼넌트의 레이아웃 제약 (위치)을 지정하는 Object
index
- 컨테이너 리스트내의 인덱스를 지정하는 int 치
IllegalArgumentException
- constraints
객체가 기존의 컴퍼넌트에 일치하지 않는 경우Container.addImpl(Component, Object, int)
protected void paintChildren(Graphics g)
finishedPaintingChildren
를 가지는 UI 에 메세지를 보내기 위해서(때문에) 서브 클래스화 됩니다.
JComponent
내의 paintChildren
g
- 페인트 하는 Graphics
문맥JComponent.paint(java.awt.Graphics)
,
Container.paint(java.awt.Graphics)
protected String paramString()
JSplitPane
의 캐릭터 라인 표현을 돌려줍니다. 이 메소드는 디버그 전용이며, 반환되는 캐릭터 라인의 내용 및 형식은 구현에 따라서 다릅니다. 반환되는 캐릭터 라인은 빈 상태(empty)의 경우가 있습니다만,null
로는 되지 않습니다.
JComponent
내의 paramString
JSplitPane
의 캐릭터 라인 표현public AccessibleContext getAccessibleContext()
Accessible
내의 getAccessibleContext
JComponent
내의 getAccessibleContext
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요 : 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.