|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.progeeks.util.beans.BeanChangeSupport
org.progeeks.meta.DefaultMetaTable
public class DefaultMetaTable
A default implementation of the MetaTable interface. This meta-table implementation contains an internal list of objects. If these objects are meta-objects then they are access directly. Otherwise, they are wrapped in meta-objects using the meta-kit provided. Optionally a list of property names can be provided or the table will pull the property names from the specified meta-class.
Constructor Summary | |
---|---|
DefaultMetaTable(java.util.List objects,
java.util.List properties,
MetaClass metaClass,
MetaKit kit)
Creates a default meta-table that contains the specified list of objects. |
|
DefaultMetaTable(java.util.List objects,
java.util.List properties,
MetaClass metaClass,
MetaKit kit,
boolean autoWrap)
Creates a default meta-table that contains the specified list of objects. |
Method Summary | |
---|---|
void |
addObject(java.lang.Object obj)
Adds the specified object to the list. |
void |
addPropertyChangeListener(int column,
java.beans.PropertyChangeListener l)
Adds a property change listener that will be notified whenever the specified property changes in any row. |
int |
getColumnCount()
Returns the number of columns in the table. |
int |
getColumnIndex(java.lang.String propertyName)
Returns the column index of the specified property. |
MetaClass |
getMetaClass()
Returns the meta-class associated with this object. |
MetaKit |
getMetaKit()
Returns the meta-kit for this meta-object's implementation layer. |
MetaObject |
getMetaObject(int row)
Returns the specified row as a meta-object. |
java.lang.Object |
getProperty(int row,
int column)
Returns the value of the specified property. |
PropertyInfo |
getPropertyInfo(int column)
Returns the property info for a given column. |
PropertyMutator |
getPropertyMutator(int row,
int column)
Returns a mutator for the specified property. |
int |
getRowCount()
Returns the number of rows in the table. |
int |
getRowIndex(MetaObject obj)
Returns the row index for the specified meta-object. |
boolean |
hasListeners(int column)
Returns true if the specified property name has listeners registered. |
void |
release()
Releases any listeners registered with the internal lists and objects. |
void |
removePropertyChangeListener(int column,
java.beans.PropertyChangeListener l)
Removes the property change listener from a specific property. |
protected void |
setObjects(java.util.List objects,
boolean autoWrap)
|
protected void |
setProperties(java.util.List names)
|
void |
setProperty(int row,
int column,
java.lang.Object value)
Sets the value of the specified property. |
Methods inherited from class org.progeeks.util.beans.BeanChangeSupport |
---|
addPropertyChangeListener, addPropertyChangeListener, clearAllListeners, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, hasListeners, hasListeners, removePropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.progeeks.meta.MetaTable |
---|
addPropertyChangeListener, clearAllListeners, removePropertyChangeListener, removePropertyChangeListener |
Constructor Detail |
---|
public DefaultMetaTable(java.util.List objects, java.util.List properties, MetaClass metaClass, MetaKit kit)
public DefaultMetaTable(java.util.List objects, java.util.List properties, MetaClass metaClass, MetaKit kit, boolean autoWrap)
Method Detail |
---|
public void release()
protected void setObjects(java.util.List objects, boolean autoWrap)
protected void setProperties(java.util.List names)
public void addObject(java.lang.Object obj)
public MetaObject getMetaObject(int row)
getMetaObject
in interface MetaTable
public int getRowIndex(MetaObject obj)
getRowIndex
in interface MetaTable
public PropertyInfo getPropertyInfo(int column)
getPropertyInfo
in interface MetaTable
public int getColumnIndex(java.lang.String propertyName)
getColumnIndex
in interface MetaTable
public int getRowCount()
getRowCount
in interface MetaTable
public int getColumnCount()
getColumnCount
in interface MetaTable
public void setProperty(int row, int column, java.lang.Object value)
setProperty
in interface MetaTable
public java.lang.Object getProperty(int row, int column)
getProperty
in interface MetaTable
public PropertyMutator getPropertyMutator(int row, int column)
getPropertyMutator
in interface MetaTable
public MetaClass getMetaClass()
getMetaClass
in interface MetaTable
public MetaKit getMetaKit()
getMetaKit
in interface MetaTable
public void addPropertyChangeListener(int column, java.beans.PropertyChangeListener l)
addPropertyChangeListener
in interface MetaTable
public boolean hasListeners(int column)
hasListeners
in interface MetaTable
public void removePropertyChangeListener(int column, java.beans.PropertyChangeListener l)
removePropertyChangeListener
in interface MetaTable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |