public class JSplitPane extends JComponent implements Accessible
JSplitPaneは、2つ(2つだけ)のComponentを分割するために使用されます。 2つのComponentはルック・アンド・フィールの実装を基準にしてグラフィカルに分割されます。その後、ユーザーは2つのComponentを対話的にサイズ変更できるようになります。 JSplitPaneの使用方法については、「The Java Tutorial」の「How to Use Split Panes」を参照してください。
分割ペイン内の2つのコンポーネントは、JSplitPane.HORIZONTAL_SPLITを使って左右に、JSplitPane.VERTICAL_SPLITを使って上下に並べることができます。 Componentのサイズを変更するには、JSplitPaneの方向に応じてlocationが新しいxまたはyの位置であるsetDividerLocationを呼び出すことをお勧めします。
Componentのサイズを目的のサイズに変更するには、resetToPreferredSizesを呼び出します。
ユーザーがComponentのサイズを変更するときは、Componentsの最小サイズを使用して、Componentに設定できる最大または最小の位置を決めます。 したがって、2つのコンポーネントの最小サイズが分割ペインのサイズより大きい場合、ディバイダはコンポーネントのサイズ変更を許可しません。 JComponentの最小サイズの変更方法については、JComponent.setMinimumSize(java.awt.Dimension)を参照してください。
ユーザーが分割ペインのサイズを変更すると、resizeWeightプロパティに基づき2つのコンポーネントの間に新しいスペースが分配されます。 デフォルトの値0は右または下のコンポーネントがすべてのスペースを取得することを示し、値1は左または上のコンポーネントがすべてのスペースを取得することを示します。
警告: Swingはスレッドに対して安全ではありません。 詳細は、「Swing's Threading Policy」を参照してください。
警告: このクラスの直列化されたオブジェクトは、今後のSwingリリースと互換ではなくなる予定です。 現在の直列化のサポートは、短期間の格納や、同じバージョンのSwingを実行するアプリケーション間のRMIに適しています。 1.4以降、すべてのJavaBeans™用の長期間の格納サポートがjava.beansパッケージに追加されています。 XMLEncoderを参照してください。
| 修飾子と型 | クラス | 説明 |
|---|---|---|
protected class |
JSplitPane.AccessibleJSplitPane |
このクラスは
JSplitPaneクラスのアクセシビリティ・サポートを実装しています。 |
JComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.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軸に沿って分割されることを示します。 |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| コンストラクタ | 説明 |
|---|---|
JSplitPane() |
コンポーネントの2つのボタンを使って、水平方向に子コンポーネントが並ぶように設定された新しい
JSplitPaneを作成します。 |
JSplitPane(int newOrientation) |
指定された方向で構成されたで新しい
JSplitPaneを作成します。 |
JSplitPane(int newOrientation, boolean newContinuousLayout) |
方向と再描画のスタイルを指定して新しい
JSplitPaneを作成します。 |
JSplitPane(int newOrientation, boolean newContinuousLayout, Component newLeftComponent, Component newRightComponent) |
指定された方向、再描画スタイル、指定されたコンポーネントを使用して新しい
JSplitPaneを作成します。 |
JSplitPane(int newOrientation, Component newLeftComponent, Component newRightComponent) |
指定された方向と指定されたコンポーネントを使用して新しい
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() |
ルック・アンド・フィールの実装からディバイダの最大の位置を返します。
|
int |
getMinimumDividerLocation() |
ルック・アンド・フィールの実装からディバイダの最小の位置を返します。
|
int |
getOrientation() |
方向を返します。
|
double |
getResizeWeight() |
余分なスペースの配分方法を決める数を返します。
|
Component |
getRightComponent() |
ディバイダの右(または下)のコンポーネントを返します。
|
Component |
getTopComponent() |
ディバイダの上または左のコンポーネントを返します。
|
SplitPaneUI |
getUI() |
現在のルック・アンド・フィールを提供している
SplitPaneUIを返します。 |
String |
getUIClassID() |
このコンポーネントを描画するL&Fクラスの名前を返します。
|
boolean |
isContinuousLayout() |
continuousLayoutプロパティを取得します。 |
boolean |
isOneTouchExpandable() |
oneTouchExpandableプロパティを取得します。 |
boolean |
isValidateRoot() |
trueを返すと、
JSplitPaneの下位オブジェクトでrevalidateを呼び出して、JSplitPaneとそのすべての下位オブジェクトを検証する要求がキューをキューに入れることができます。 |
protected void |
paintChildren(Graphics g) |
superにメッセージが送られたあとに
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プロパティの値を設定します。ユーザーが操作したときに子コンポーネントが連続的に再描画されて配置されるようにするには、この値をtrueに設定する必要があります。 |
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プロパティの値を設定します。JSplitPaneがディバイダのUIウィジェットを提供し、ディバイダを迅速に展開/収納するには、この値をtrueに設定する必要があります。 |
void |
setOrientation(int orientation) |
方向、またはスプリッタがどのように分割されるかを設定します。
|
void |
setResizeWeight(double value) |
分割ペインが変更されたときの余分なスペースの配分方法を指定します。
|
void |
setRightComponent(Component comp) |
ディバイダの右(または下)のコンポーネントを設定します。
|
void |
setTopComponent(Component comp) |
コンポーネントをディバイダの上または左に設定します。
|
void |
setUI(SplitPaneUI ui) |
このコンポーネントを描画するL&Fオブジェクトを設定します。
|
void |
updateUI() |
L&Fが変更されたことを示す、
UIManagerからの通知です。 |
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, paint, paintBorder, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic static final int VERTICAL_SPLIT
Componentがy軸に沿って分割されることを示します。 たとえば2つのComponentが上下に並ぶように分割されることを示します。 public static final int HORIZONTAL_SPLIT
Componentがx軸に沿って分割されることを示します。 たとえば2つの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を作成します。@ConstructorProperties(value="orientation") public JSplitPane(int newOrientation)
JSplitPaneを作成します。newOrientation - JSplitPane.HORIZONTAL_SPLITまたはJSplitPane.VERTICAL_SPLITIllegalArgumentException - orientationがHORIZONTAL_SPLITまたはVERTICAL_SPLITのどちらでもない場合。public JSplitPane(int newOrientation,
boolean newContinuousLayout)
JSplitPaneを作成します。newOrientation - JSplitPane.HORIZONTAL_SPLITまたはJSplitPane.VERTICAL_SPLITnewContinuousLayout - boolean値。ディバイダの位置の変更に合わせてコンポーネントが連続して再描画されるようにする場合はtrue、ディバイダの位置の変更が終了するまで再描画を待機する場合はfalseIllegalArgumentException - orientationがHORIZONTAL_SPLITまたはVERTICAL_SPLITのいずれでもない場合public JSplitPane(int newOrientation,
Component newLeftComponent,
Component newRightComponent)
JSplitPaneを作成します。newOrientation - JSplitPane.HORIZONTAL_SPLITまたはJSplitPane.VERTICAL_SPLITnewLeftComponent - 水平方向に分割されたペインの左、または垂直方向に分割されたペインの上に表示されるComponentnewRightComponent - 水平方向に分割されたペインの右、または垂直方向に分割されたペインの下に表示されるComponentIllegalArgumentException - orientationがHORIZONTAL_SPLITまたはVERTICAL_SPLITのどちらでもない場合public JSplitPane(int newOrientation,
boolean newContinuousLayout,
Component newLeftComponent,
Component newRightComponent)
JSplitPaneを作成します。newOrientation - JSplitPane.HORIZONTAL_SPLITまたはJSplitPane.VERTICAL_SPLITnewContinuousLayout - boolean値。ディバイダの位置の変更に合わせてコンポーネントが連続して再描画されるようにする場合はtrue、ディバイダの位置の変更が終了するまで再描画を待機する場合はfalsenewLeftComponent - 水平方向に分割されたペインの左、または垂直方向に分割されたペインの上に表示されるComponentnewRightComponent - 水平方向に分割されたペインの右、または垂直方向に分割されたペインの下に表示されるComponentIllegalArgumentException - 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の最新バージョンに置き換えます。 updateUI、クラスJComponentJComponent.updateUI()public String getUIClassID()
getUIClassID、クラスJComponentJComponent.getUIClassID(), UIDefaults.getUI(javax.swing.JComponent)public void setDividerSize(int newSize)
newSize - ディバイダのサイズをピクセル数で指定するint値public int getDividerSize()
public void setLeftComponent(Component comp)
comp - その位置に表示するComponentpublic Component getLeftComponent()
Componentpublic void setTopComponent(Component comp)
comp - その位置に表示するComponentpublic Component getTopComponent()
Componentpublic void setRightComponent(Component comp)
comp - その位置に表示するComponentpublic Component getRightComponent()
Componentpublic void setBottomComponent(Component comp)
comp - その位置に表示するComponentpublic Component getBottomComponent()
Componentpublic void setOneTouchExpandable(boolean newValue)
oneTouchExpandableプロパティの値を設定します。JSplitPaneがディバイダのUIウィジェットを提供し、ディバイダを迅速に展開/収納するには、この値をtrueに設定する必要があります。 このプロパティのデフォルト値はfalseです。 ルック・アンド・フィールによっては、ワンタッチの展開がサポートされていない場合があります。その場合、このプロパティは無視されます。 newValue - 分割ペインが展開/折りたたみウィジェットを提供するように指定する場合はtrueisOneTouchExpandable()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プロパティの値を設定します。ユーザーが操作したときに子コンポーネントが連続的に再描画されて配置されるようにするには、この値をtrueに設定する必要があります。 このプロパティのデフォルト値はルック・アンド・フィールに依存します。 ルック・アンド・フィールによっては、連続したレイアウトがサポートされていない場合があります。その場合、このプロパティは無視されます。 newContinuousLayout - ディバイダの位置が変更されたときにコンポーネントが連続的に再描画される場合はtrueisContinuousLayout()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の場合は -1public int getMaximumDividerLocation()
nullの場合は -1public void remove(Component component)
componentをペインから削除します。 必要に応じて、leftComponentまたはrightComponentインスタンス変数をリセットします。 remove、クラスContainercomponent - 削除するComponentContainer.add(java.awt.Component), Container.invalidate(), Container.validate(), Container.remove(int)public void remove(int index)
Componentを削除します。 必要に応じて、leftComponentおよびrightComponentインスタンス変数を変更してから、スーパー・クラスにメッセージを送ります。 remove、クラスContainerindex - 削除するコンポーネントを指定するint値。1では左または上のコンポーネントが指定され、2では下または右のコンポーネントが指定されるContainer.add(java.awt.Component), Container.invalidate(), Container.validate(), Container.getComponentCount()public void removeAll()
leftComonentおよびrightComponentインスタンス変数をリセットします。 removeAll、クラスContainerContainer.add(java.awt.Component), Container.remove(int), Container.invalidate()public boolean isValidateRoot()
JSplitPaneの下位オブジェクトでrevalidateを呼び出して、JSplitPaneとそのすべての下位オブジェクトを検証する要求がキューをキューに入れることができます。isValidateRoot、クラスJComponentJComponent.revalidate(), Container.isValidateRoot()protected void addImpl(Component comp, Object constraints, int index)
constraintsが左または上あるいは右または下の子コンポーネントを識別し、その識別子を持つコンポーネントが以前に追加されている場合は、それを削除してから、その位置にcompを追加します。 constraintsが既知の識別子でない場合、レイアウト・マネージャはIllegalArgumentExceptionをスローします。
指定できる制約オブジェクト(String)は次のとおりです。
constraintsオブジェクトがnullの場合、利用可能な最初の位置にコンポーネントが追加されます(開いている場合は左または上、そうでない場合は右または下)。addImpl、クラスContainercomp - 追加するコンポーネントconstraints - このコンポーネントのレイアウト制約(位置)を指定するObjectindex - コンテナ・リスト内のインデックスを指定するint値。IllegalArgumentException - constraintsオブジェクトが既存のコンポーネントに一致しない場合Container.addImpl(Component, Object, int)protected void paintChildren(Graphics g)
finishedPaintingChildrenを持つUIにメッセージを送り、ボーダーをペイントするために、サブクラス化されます。paintChildren、クラスJComponentg - ペイント先となるGraphicsコンテキストJComponent.paint(java.awt.Graphics), Container.paint(java.awt.Graphics)protected String paramString()
JSplitPaneの文字列表現を返します。 このメソッドはデバッグ専用であり、返される文字列の内容および形式は実装によって異なります。 返される文字列は空の場合がありますが、nullにはなりません。 paramString、クラスJComponentJSplitPaneを表す文字列表現。public AccessibleContext getAccessibleContext()
getAccessibleContext、インタフェースAccessiblegetAccessibleContext、クラスComponent バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。