JComponentPack 1.5.0

com.zfqjava.swing
Interface PropertyGridModel

All Known Implementing Classes:
AbstractPropertyGridModel, BeanPropertyGridModel

public interface PropertyGridModel


Method Summary
 void addListDataListener(ListDataListener l)
          Adds a listener to the list that's notified each time a change to the data model occurs.
 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 removeListDataListener(ListDataListener l)
          Removes a listener from the list that's notified each time a change to the data model occurs.
 void setValue(int index, Object value)
          Sets the property value at the specified index.
 

Method Detail

getCount

int getCount()
Returns the property count.

Returns:
the property count

getKey

Object getKey(int index)
Returns the property key at the specified index.

Parameters:
index - the specified index

getValue

Object getValue(int index)
Returns the property value at the specified index.

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

setValue

void setValue(int index,
              Object value)
Sets the property value at the specified index.

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

getClass

Class getClass(int index)
Returns the property class at the specified index.

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

isEditable

boolean isEditable(int index)
Determines whether the property is editable at the specified index.

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

getCategoryCount

int getCategoryCount()
Returns the category count for this model.

Returns:
the category count

getCategoryName

String getCategoryName(int categoryIndex)
Returns the category name of the specified index.

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

getCategoryIndex

int getCategoryIndex(int propertyIndex)
Returns the category index of the specified property index.

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

addListDataListener

void addListDataListener(ListDataListener l)
Adds a listener to the list that's notified each time a change to the data model occurs.

Parameters:
l - the ListDataListener to be added

removeListDataListener

void removeListDataListener(ListDataListener l)
Removes a listener from the list that's notified each time a change to the data model occurs.

Parameters:
l - the ListDataListener to be removed

JComponentPack 1.5.0

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