|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JSeparator
メニュー項目を論理的グループに分割する区切り線となるメニューセパレータの実装です。直接 JSeparator
を使用しなくても、JMenu
または JPopupMenu
の addSeparator
メソッドを使用してセパレータを作成したり追加できます。
例および詳細については、「The Java Tutorial」の「How to Use Menus」を参照してください。
警告: このクラスの直列化されたオブジェクトは、今後の Swing リリースと互換ではなくなる予定です。現在の直列化のサポートは、短期間の運用や、同じバージョンの Swing を実行するアプリケーション間の RMI に適しています。今後の Swing リリースでは、長期間の持続性をサポートする予定です。
内部クラスの概要 | |
protected class |
JSeparator.AccessibleJSeparator
このクラスは JSeparator クラス用のユーザ補助機能のサポートを実装しています。 |
クラス javax.swing.JComponent から継承した内部クラス |
JComponent.AccessibleJComponent |
クラス java.awt.Container から継承した内部クラス |
Container.AccessibleAWTContainer |
クラス java.awt.Component から継承した内部クラス |
Component.AccessibleAWTComponent |
クラス 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 |
インタフェース javax.swing.SwingConstants から継承したフィールド |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NORTH, NORTH_EAST, NORTH_WEST, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
インタフェース java.awt.image.ImageObserver から継承したフィールド |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
コンストラクタの概要 | |
JSeparator()
水平セパレータを新しく作成します。 |
|
JSeparator(int orientation)
水平または垂直方向を指定してセパレータを新しく作成します。 |
メソッドの概要 | |
AccessibleContext |
getAccessibleContext()
この JSeparator に関連した AccessibleContext を返します。 |
int |
getOrientation()
このセパレータの方向を返します。 |
SeparatorUI |
getUI()
このコンポーネントを描画する L&F オブジェクトを返します。 |
String |
getUIClassID()
このコンポーネントを描画する L&F クラスの名前を返します。 |
boolean |
isFocusTraversable()
このコンポーネントがフォーカスを受け取れるかどうかを示します。 |
protected String |
paramString()
この JSeparator の文字列表現を返します。 |
void |
setOrientation(int orientation)
セパレータの方向を設定します。 |
void |
setUI(SeparatorUI ui)
このコンポーネントを描画する L&F オブジェクトを設定します。 |
void |
updateUI()
L&F が変更されたことを示す UIFactory からの通知です。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
コンストラクタの詳細 |
public JSeparator()
public JSeparator(int orientation)
orientation
- SwingConstants.HORIZONTAL
または SwingConstants.VERTICAL
を指定する int 値IllegalArgumentException
- orientation
が SwingConstants.HORIZONTAL
または SwingConstants.VERTICAL
のいずれでもない場合メソッドの詳細 |
public SeparatorUI getUI()
public void setUI(SeparatorUI ui)
ui
- SeparatorUI L&F オブジェクトUIDefaults.getUI(javax.swing.JComponent)
public void updateUI()
UIFactory
からの通知です。UI を UIFactory
の最新バージョンに置き換えるために呼び出されます。JComponent
内の updateUI
JComponent.updateUI()
public String getUIClassID()
JComponent
内の getUIClassID
JComponent.getUIClassID()
,
UIDefaults.getUI(javax.swing.JComponent)
public int getOrientation()
SwingConstants
で定義されている定数 (VERTICAL
または HORIZONTAL
)SwingConstants
,
setOrientation(int)
public void setOrientation(int orientation)
orientation
- SwingConstants.HORIZONTAL
または SwingConstants.VERTICAL
IllegalArgumentException
- orientation
が SwingConstants.HORIZONTAL
または SwingConstants.VERTICAL
のいずれでもない場合SwingConstants
,
getOrientation()
protected String paramString()
JSeparator
の文字列表現を返します。このメソッドはデバッグ専用であり、返される文字列の内容および形式は実装によって異なります。返される文字列は空の場合がありますが、null
にはなりません。JComponent
内の paramString
JSeparator
の文字列表現public boolean isFocusTraversable()
JSeparator
はフォーカスを受け取れません。JComponent
内の isFocusTraversable
public AccessibleContext getAccessibleContext()
Accessible
内の getAccessibleContext
JComponent
内の getAccessibleContext
|
JavaTM 2 Platform Std. Ed. v1.3 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
Java、Java 2D、JDBC は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.