cern::gp::explorer::TableHolderImpl Class Reference

Inheritance diagram for cern::gp::explorer::TableHolderImpl:
Inheritance graph
[legend]
Collaboration diagram for cern::gp::explorer::TableHolderImpl:
Collaboration graph
[legend]

List of all members.

Classes

class  SelectiveTableModel
class  TableViewColumnProperty

Public Member Functions

void setTableColumns (Class beanClass) throws IntrospectionException
void setTableColumns (Class beanClass, String[] propNames) throws IntrospectionException
void setTableColumns (Class[] propTypes, String[] propNames)
void setTableColumns (Class[] propTypes, String[] propNames, boolean[] sortable)
void setTableColumns (Object bean) throws IntrospectionException
void setTableColumns (Object bean, String[] propNames) throws IntrospectionException
void setTableColumns (Object bean, String[] propNames, boolean[] sortable) throws IntrospectionException
void setTableColumns (GPNode node, String[] propNames)
void setTableColumns (GPNode node, String[] propNames, boolean[] sortable)

Static Public Member Functions

static Node.Property[] calcNodeProperty (PropertyDescriptor[] propDescriptors)
static PropertyDescriptor[] calcPropertyDescriptorsFor (Class beanClass, String[] propNames) throws IntrospectionException

Package Functions

 TableHolderImpl (TablePropertyHolder tablePropertyHolder)

Private Member Functions

void setTableColumns (PropertyDescriptor[] propDescriptors)

Private Attributes

TablePropertyHolder tablePropertyHolder

Detailed Description

A class that contains common code related to the Tables contained in the ListTableExplorer and TreeTableExplorer. Both ListTableExplorer and TreeTableExplorer contain an instance of this class and delegate to it.

Version:
Revision
1.2
Date
2006/09/25 08:52:36
Author:
Vito Baggiolini

Constructor & Destructor Documentation

cern::gp::explorer::TableHolderImpl::TableHolderImpl ( TablePropertyHolder  tablePropertyHolder  )  [inline, package]

Member Function Documentation

static Node.Property [] cern::gp::explorer::TableHolderImpl::calcNodeProperty ( PropertyDescriptor[]  propDescriptors  )  [inline, static]
Deprecated:
-- not needed anymore, use setTableColumns(Object bean, String[] propNames)

Referenced by setTableColumns().

static PropertyDescriptor [] cern::gp::explorer::TableHolderImpl::calcPropertyDescriptorsFor ( Class  beanClass,
String[]  propNames 
) throws IntrospectionException [inline, static]

a helper method that determines the types of the properties by looking them up in the beanClass

Deprecated:
-- not needed anymore, use setTableColumns(Object bean, String[] propNames)

Referenced by setTableColumns().

void cern::gp::explorer::TableHolderImpl::setTableColumns ( PropertyDescriptor[]  propDescriptors  )  [inline, private]

helper method -- sets the table columns form an array of property descriptors can be made public if needed

Deprecated:
-- not needed anymore, use setTableColumns(Object bean, String[] propNames)

References calcNodeProperty(), cern::gp::explorer::TablePropertyHolder::setProperties(), and tablePropertyHolder.

void cern::gp::explorer::TableHolderImpl::setTableColumns ( GPNode  node,
String[]  propNames,
boolean[]  sortable 
) [inline, virtual]
void cern::gp::explorer::TableHolderImpl::setTableColumns ( GPNode  node,
String[]  propNames 
) [inline]

Sets the columns of the Table. This method determines the type of the method by using the information contained in the GPNode. It also takes into account the additional info specified using the cern.gp.beans.BeanSupport#getPropertyInfo method. Beware: all properties passed in the propNames argument must also be present in the beanClass represented by this node. If you don't have a suitable GPNode, please use the {setTableColumns(Class[], String[])} method.

Parameters:
bean the bean displayed in the table
propNames the properties to be displayed as columns in the table

Implements cern::gp::explorer::TableHolder.

References setTableColumns().

void cern::gp::explorer::TableHolderImpl::setTableColumns ( Object  bean,
String[]  propNames,
boolean[]  sortable 
) throws IntrospectionException [inline, virtual]
void cern::gp::explorer::TableHolderImpl::setTableColumns ( Object  bean,
String[]  propNames 
) throws IntrospectionException [inline]

Sets the columns of the Table. This method determines the type of the method by doing reflection on the Bean. It also takes into account the additional info specified in cern.gp.beans.BeanSupport#getPropertyInfo.

Beware: all properties passed in the propNames argument must also be present in the beanClass. If you already have created a GPNode for this bean, you should use setTableColumns(GPNode, String[]) because this is more efficient.
If you don't have such a bean, please use the {setTableColumns(Class[], String[])} method.

Parameters:
bean the bean displayed in the table
propNames the properties to be displayed as columns in the table
Exceptions:
IntrospectionException if something goes wrong while introspecting the bean

Implements cern::gp::explorer::TableHolder.

References setTableColumns().

void cern::gp::explorer::TableHolderImpl::setTableColumns ( Object  bean  )  throws IntrospectionException [inline]

Sets the columns of the Table. This method determines the type of the properties by doing reflection on the beanClass. It also takes into account info specified in the method cern.gp.beans.BeanSupport#getPropertyInfo All non-hidden properties of the bean will be displayed as columns in the Table

Parameters:
the class from which the table colums are inferred

Implements cern::gp::explorer::TableHolder.

References setTableColumns().

void cern::gp::explorer::TableHolderImpl::setTableColumns ( Class[]  propTypes,
String[]  propNames,
boolean[]  sortable 
) [inline, virtual]
void cern::gp::explorer::TableHolderImpl::setTableColumns ( Class[]  propTypes,
String[]  propNames 
) [inline]

Sets the colums of the Table. The colums are identified by their name and their type. Please make sure that the two arrays passed as arguments correspond. Cautiondo not use this with beans that implement the cern.gp.beans.BeanSupport#getPropertyInfo method to customize settings for properties. For such beans use {{setTableColumns(Object, String[])} instead.

Parameters:
propNames the names of the properties to be displayed
propTypes the types of the properties corresponding to the names

Implements cern::gp::explorer::TableHolder.

References setTableColumns().

void cern::gp::explorer::TableHolderImpl::setTableColumns ( Class  beanClass,
String[]  propNames 
) throws IntrospectionException [inline]
void cern::gp::explorer::TableHolderImpl::setTableColumns ( Class  beanClass  )  throws IntrospectionException [inline]

Member Data Documentation

Referenced by setTableColumns().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2