|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjava.beans.SimpleBeanInfo
public class SimpleBeanInfo
ユーザーが BeanInfo クラスを提供しやすくなるようにするサポートクラスです。
無操作 (noop) 情報の提供をデフォルトに設定します。また、選択したトピックについてのより明示的な情報を提供するために、選択的にオーバーライドされることがあります。イントロスペクタは "noop" 値を検出すると、低レベルのイントロスペクションおよび設計パターンを適用して、ターゲット Bean を自動的に解析します。
| フィールドの概要 |
|---|
| インタフェース java.beans.BeanInfo から継承されたフィールド |
|---|
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32 |
| コンストラクタの概要 | |
|---|---|
SimpleBeanInfo()
|
|
| メソッドの概要 | |
|---|---|
BeanInfo[] |
getAdditionalBeanInfo()
関連する BeanInfo オブジェクトがほかにないことを要求します。 |
BeanDescriptor |
getBeanDescriptor()
Bean のクラスおよびカスタマイザに関する情報を拒否します。 |
int |
getDefaultEventIndex()
デフォルトのイベントに関する情報を拒否します。 |
int |
getDefaultPropertyIndex()
デフォルトのプロパティーに関する情報を拒否します。 |
EventSetDescriptor[] |
getEventSetDescriptors()
イベントセットに関する情報を拒否します。 |
Image |
getIcon(int iconKind)
利用可能なアイコンがないことを要求します。 |
MethodDescriptor[] |
getMethodDescriptors()
メソッドに関する情報を拒否します。 |
PropertyDescriptor[] |
getPropertyDescriptors()
プロパティーに関する情報を拒否します。 |
Image |
loadImage(String resourceName)
アイコンイメージをロードするためのユーティリティーメソッドです。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public SimpleBeanInfo()
| メソッドの詳細 |
|---|
public BeanDescriptor getBeanDescriptor()
BeanInfo 内の getBeanDescriptorpublic PropertyDescriptor[] getPropertyDescriptors()
BeanInfo 内の getPropertyDescriptorsプロパティーがインデックス化されている場合には、結果の配列内のその項目は PropertyDescriptor の IndexedPropertyDescriptor サブクラスに属する。getPropertyDescriptors のクライアントは、「instanceof」を使用して、取得した PropertyDescriptor が IndexedPropertyDescriptor かどうかを判定できる
public int getDefaultPropertyIndex()
BeanInfo 内の getDefaultPropertyIndexデフォルトプロパティーがない場合は -1
public EventSetDescriptor[] getEventSetDescriptors()
BeanInfo 内の getEventSetDescriptorspublic int getDefaultEventIndex()
BeanInfo 内の getDefaultEventIndexデフォルトのイベントがない場合は -1
public MethodDescriptor[] getMethodDescriptors()
BeanInfo 内の getMethodDescriptorspublic BeanInfo[] getAdditionalBeanInfo()
BeanInfo 内の getAdditionalBeanInfopublic Image getIcon(int iconKind)
BeanInfo 内の getIconiconKind - 要求されたアイコンの種類。定数 ICON_COLOR_16x16、ICON_COLOR_32x32、ICON_MONO_16x16、または ICON_MONO_32x32 のどれか
public Image loadImage(String resourceName)
resourceName - 現在のクラスのクラスファイルが格納されたディレクトリへの相対パス名。たとえば "wombat.gif"
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。