JComponentPack 1.5.0

com.zfqjava.swing.model
Class BeanPropertyGridModel

java.lang.Object
  extended by com.zfqjava.swing.AbstractPropertyGridModel
      extended by com.zfqjava.swing.model.BeanPropertyGridModel
All Implemented Interfaces:
PropertyGridModel, Serializable

public class BeanPropertyGridModel
extends AbstractPropertyGridModel

BeanPropertyGridModel provides a bean PropertyGridModel.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.zfqjava.swing.AbstractPropertyGridModel
listenerList
 
Constructor Summary
BeanPropertyGridModel(Object bean)
           
BeanPropertyGridModel(String beanName)
           
 
Method Summary
 Object getBean()
           
 int getCategoryCount()
          Returns the category count for this model.
 int getCategoryIndex(int propertyIndex)
          Returns the category index of the specified property index.
 String getCategoryName(int categoryIndex)
          Returns the category name of the specified index.
 Class getClass(int index)
          Returns the property class at the specified index.
 int getCount()
          Returns the property count.
 Object getKey(int index)
          Returns the property key at the specified index.
 Object getValue(int index)
          Returns the property value at the specified index.
 boolean isEditable(int index)
          Determines whether the property is editable at the specified index.
 void setValue(int index, Object value)
          Sets the property value at the specified index.
 
Methods inherited from class com.zfqjava.swing.AbstractPropertyGridModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanPropertyGridModel

public BeanPropertyGridModel(String beanName)

BeanPropertyGridModel

public BeanPropertyGridModel(Object bean)
Method Detail

getBean

public Object getBean()

getCount

public int getCount()
Description copied from interface: PropertyGridModel
Returns the property count.

Returns:
the property count

getKey

public Object getKey(int index)
Description copied from interface: PropertyGridModel
Returns the property key at the specified index.

Parameters:
index - the specified index

getValue

public Object getValue(int index)
Description copied from interface: PropertyGridModel
Returns the property value at the specified index.

Parameters:
index - the specified index
Returns:
the property value

setValue

public void setValue(int index,
                     Object value)
Description copied from interface: PropertyGridModel
Sets the property value at the specified index.

Parameters:
index - the specified index
value - the property value

getClass

public Class getClass(int index)
Description copied from interface: PropertyGridModel
Returns the property class at the specified index.

Parameters:
index - the specified index
Returns:
the property class

isEditable

public boolean isEditable(int index)
Description copied from interface: PropertyGridModel
Determines whether the property is editable at the specified index.

Parameters:
index - the specified index
Returns:
true if the property is editable.

getCategoryCount

public int getCategoryCount()
Description copied from interface: PropertyGridModel
Returns the category count for this model.

Returns:
the category count

getCategoryName

public String getCategoryName(int categoryIndex)
Description copied from interface: PropertyGridModel
Returns the category name of the specified index.

Parameters:
categoryIndex - the category index
Returns:
the category name

getCategoryIndex

public int getCategoryIndex(int propertyIndex)
Description copied from interface: PropertyGridModel
Returns the category index of the specified property index.

Parameters:
propertyIndex - the specified property index
Returns:
the category index of the specified property index

JComponentPack 1.5.0

Send your Feedback
JComponentPack 1.5.0
Copyright © 2001-2007 Extreme Component, Inc. All rights reserved.