|
Kagetaka | |||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjava.awt.Component
net.hizlab.kagetaka.awt.Tree
ツリー型のリストです。
入れ子クラスの概要 |
クラス java.awt.Component から継承した入れ子クラス |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
フィールドの概要 | |
static int |
DISABLE
無効な状態 |
static int |
ITEM_FOLDER_CLOSE
閉じた状態のフォルダアイテム |
static int |
ITEM_FOLDER_NONE
子のない状態のフォルダアイテム |
static int |
ITEM_FOLDER_OPEN
開いた状態のフォルダアイテム |
static int |
ITEM_INVALID
存在しないアイテム |
static int |
ITEM_NORMAL
普通のアイテム |
static int |
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 |
コンストラクタの概要 | |
Tree(int rows,
int columns)
指定された数の表示行を持つツリーを構築します。 |
メソッドの概要 | |
void |
addItemListener(ItemListener l)
アイテムリスナを登録します。 |
void |
addMouseListener(MouseListener l)
マウスリスナを登録します。 |
void |
addMouseMotionListener(MouseMotionListener l)
マウスモーションリスナを登録します。 |
void |
addNotify()
コンポーネントがコンテナに追加されたことを通知します。 |
boolean |
closeTreeItem(int index)
指定された位置のアイテムを閉じます。 |
Border |
getBorder()
設定されているボーダーを返します。 |
int |
getColumns()
表示する幅を返します。 |
String |
getName()
コンポーネントの名前を返します。 |
Dimension |
getPreferredSize()
推奨サイズを返します。 |
int |
getRows()
表示する行数を返します。 |
int |
getSelectedIndex()
選択されているインデックスを返します。 |
Object[] |
getSelectedObjects()
選択されたアイテムを返します。 |
TreeItem |
getSelectedTreeItem()
選択されたアイテムを返します。 |
TreeItem |
getTreeItem(int index)
指定した位置のアイテムを返します。 |
int |
getTreeItemLevel(int index)
指定した位置のアイテムのレベルを返します。 |
int |
getTreeItemState(int index)
指定した位置のアイテムの状態を返します。 |
int |
getViewItemCount()
表示されているアイテムの数を返します。 |
void |
invalidate()
コンポーネントを無効にします。 |
boolean |
isFocusTraversable()
フォーカスを受け取ることが出来るかを返します。 |
boolean |
isIndexSelected(int index)
指定されたインデックスにあるアイテムが選択されているかを返します。 |
boolean |
openTreeItem(int index)
指定された位置のアイテムを開きます。 |
void |
paint(Graphics g)
イメージを実際に描画します。 |
protected String |
paramString()
このステータスバーのパラメータ文字列を返します。 |
protected void |
processEvent(AWTEvent e)
このコンポーネントで発生するコンポーネントイベントを処理します。 |
protected void |
processItemEvent(ItemEvent e)
このコンポーネントで発生するアクションイベントを、 登録されているすべての ItemListener に送ることにより、
アクションイベントを処理します。 |
void |
refresh()
ツリー情報を再読込して、再表示します。 |
void |
removeAll()
ツリーからすべてのアイテムを取り除きます。 |
void |
removeItemListener(ItemListener l)
アイテムリスナを解除します。 |
void |
removeMouseListener(MouseListener l)
マウスリスナを削除します。 |
void |
removeMouseMotionListener(MouseMotionListener l)
マウスモーションリスナを削除します。 |
void |
removeNotify()
コンポーネントがコンテナから削除されたことを通知します。 |
void |
selecteIndex(int index)
指定したインデックスのアイテムを選択状態にします。 |
void |
selectTreeItem(int[] indices)
指定した階層のアイテムを選択状態にします。 |
void |
setBackground(Color c)
背景色を設定します。 |
void |
setBorder(Border border)
ボーダーを設定します。 |
void |
setColumns(int columns)
表示する幅を指定します。 |
void |
setFont(Font font)
フォントを設定します。 |
void |
setName(String name)
コンポーネントの名前を設定します。 |
void |
setRootTreeItem(TreeItem root)
ルートアイテムを設定します。 |
void |
setRows(int rows)
表示する行数を指定します。 |
void |
update(Graphics g)
画面をアップデートします。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
フィールドの詳細 |
public static final int DISABLE
public static final int ITEM_FOLDER_CLOSE
public static final int ITEM_FOLDER_NONE
public static final int ITEM_FOLDER_OPEN
public static final int ITEM_INVALID
public static final int ITEM_NORMAL
public static final int NORMAL
コンストラクタの詳細 |
public Tree(int rows, int columns)
rows
- 表示するアイテムの数columns
- ツリーの表示幅メソッドの詳細 |
public void addItemListener(ItemListener l)
ItemSelectable
内の addItemListener
l
- 登録するアイテムリスナpublic void addMouseListener(MouseListener l)
l
- 登録するマウスリスナpublic void addMouseMotionListener(MouseMotionListener l)
l
- 登録するマウスモーションリスナpublic void addNotify()
public boolean closeTreeItem(int index)
index
- インデックス
true
、
それ以外の場合は false
public Border getBorder()
public int getColumns()
public String getName()
public Dimension getPreferredSize()
public int getRows()
public int getSelectedIndex()
-1
public Object[] getSelectedObjects()
ItemSelectable
内の getSelectedObjects
null
public TreeItem getSelectedTreeItem()
public TreeItem getTreeItem(int index)
index
- 取得するアイテムの画面上のインデックス
null
public int getTreeItemLevel(int index)
index
- 取得するアイテムの画面上のインデックス
1
、
アイテムが存在しない場合は -1
public int getTreeItemState(int index)
index
- 取得するアイテムの画面上のインデックス
public int getViewItemCount()
public void invalidate()
public boolean isFocusTraversable()
true
を返します。public boolean isIndexSelected(int index)
index
- 選択項目の位置
true
、
それ以外の場合は false
public boolean openTreeItem(int index)
index
- インデックス
true
、
それ以外の場合は false
public void paint(Graphics g)
g
- グラフィックスprotected String paramString()
protected void processEvent(AWTEvent e)
e
- イベントprotected void processItemEvent(ItemEvent e)
ItemListener
に送ることにより、
アクションイベントを処理します。
e
- イベントpublic void refresh()
public void removeAll()
public void removeItemListener(ItemListener l)
ItemSelectable
内の removeItemListener
l
- 解除するアイテムリスナpublic void removeMouseListener(MouseListener l)
l
- 削除するマウスリスナpublic void removeMouseMotionListener(MouseMotionListener l)
l
- 削除するマウスモーションリスナpublic void removeNotify()
public void selecteIndex(int index)
index
- 選択項目の位置public void selectTreeItem(int[] indices)
indices
- インデックスpublic void setBackground(Color c)
c
- 背景色public void setBorder(Border border)
border
- ボーダーpublic void setColumns(int columns)
columns
- 表示する幅public void setFont(Font font)
font
- フォントpublic void setName(String name)
name
- 名前public void setRootTreeItem(TreeItem root)
root
- ルートアイテムpublic void setRows(int rows)
rows
- 表示する行数public void update(Graphics g)
g
- グラフィックス
|
Kagetaka | |||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
Copyright (c) 2002-2004 The Kagetaka Project 'November 20, 2004'