|
Kagetaka | |||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjava.awt.Component
net.hizlab.kagetaka.awt.tate.Component
net.hizlab.kagetaka.awt.tate.Choice
縦表示のコンボボックスです。
入れ子クラスの概要 |
クラス java.awt.Component から継承した入れ子クラス |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
フィールドの概要 |
クラス net.hizlab.kagetaka.awt.tate.Component から継承したフィールド |
DISABLE, KEY_DOWN, MOUSE_DOWN, MOUSE_OVER, NORMAL |
クラス 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 |
コンストラクタの概要 | |
Choice(Option option,
ImageCreator ic)
新しいインスタンスを作成します。 |
メソッドの概要 | |
void |
add(String item)
この Choice に項目を追加します。 |
void |
addItem(String item)
この Choice に項目を追加します。 |
String |
getItem(int index)
Choice 内の指定された添字の文字列を返します。 |
int |
getItemCount()
この Choice の項目数を返します。 |
Dimension |
getPreferredSize()
推奨サイズを返します。 |
int |
getSelectedIndex()
現在選択されている項目の添字を返します。 |
String |
getSelectedItem()
現在選択されている項目の文字列を返します。 |
void |
insert(String item,
int index)
この Choice の指定された位置に項目を追加します。 |
protected String |
paramString()
このコンボボックスのパラメータ文字列を返します。 |
protected void |
refresh(Graphics g,
Dimension size,
int state,
boolean focus)
現在のステータスにあった状態に再描画 |
void |
remove(int index)
この Choice から指定した項目を削除します。 |
void |
remove(String item)
この Choice から指定した項目を削除します。 |
void |
removeAll()
この Choice からすべての項目を削除します。 |
void |
select(int index)
指定された位置の項目を選択します。 |
void |
select(String item)
指定された項目を選択します。 |
クラス net.hizlab.kagetaka.awt.tate.Component から継承したメソッド |
getBorder, getName, getText, getViewState, isFocusTraversable, paint, repaintForce, setBorder, setEnabled, setName, setPreferredSize, setViewState, update |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
コンストラクタの詳細 |
public Choice(Option option, ImageCreator ic)
option
- オプションic
- イメージクリエータメソッドの詳細 |
public void add(String item)
item
- 追加される項目public void addItem(String item)
item
- 追加される項目public String getItem(int index)
index
- 項目の添字
public int getItemCount()
public Dimension getPreferredSize()
Component
内の getPreferredSize
public int getSelectedIndex()
public String getSelectedItem()
public void insert(String item, int index)
item
- 追加される項目index
- 追加する位置protected String paramString()
Component
内の paramString
protected void refresh(Graphics g, Dimension size, int state, boolean focus)
Component
内の refresh
g
- グラフィックスsize
- 描画域の大きさstate
- 新しい状態focus
- フォーカスを持っているかpublic void remove(int index)
index
- 項目の添字public void remove(String item)
item
- 項目の文字列public void removeAll()
public void select(int index)
index
- 選択項目の位置
IllegalArgumentException
- 選択項目の位置が無効の場合public void select(String item)
item
- 選択する項目
|
Kagetaka | |||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
Copyright (c) 2002-2003 The Kagetaka Project 'December 6, 2003'