org.extremecomponents.table.model
Class TableModelUtils

java.lang.Object
  extended byorg.extremecomponents.table.model.TableModelUtils

public class TableModelUtils
extends java.lang.Object

Helpful utilities for the Model

Author:
Jeff Johnston

Method Summary
static java.util.List beanProperties(java.lang.Object bean)
          Get a list of bean property names
static boolean canGroup(TableModel model)
           
static java.util.List getHeader(TableModel model, java.lang.String method)
           
static TableSection getTableSection(TableModel model, int totalRows)
          Find out where we should start and end to get the relevant section of the table.
static java.lang.String parseCell(java.lang.String value)
          TODO: This needs to move.
static java.util.List splitIntoTableSectionRows(TableModel model, java.util.List rows, TableSection tableSection)
          Grab the relevant section of the table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getHeader

public static java.util.List getHeader(TableModel model,
                                       java.lang.String method)

splitIntoTableSectionRows

public static java.util.List splitIntoTableSectionRows(TableModel model,
                                                       java.util.List rows,
                                                       TableSection tableSection)
Grab the relevant section of the table.


getTableSection

public static TableSection getTableSection(TableModel model,
                                           int totalRows)
Find out where we should start and end to get the relevant section of the table.


beanProperties

public static java.util.List beanProperties(java.lang.Object bean)
                                     throws java.lang.Exception
Get a list of bean property names

Throws:
java.lang.Exception

canGroup

public static boolean canGroup(TableModel model)

parseCell

public static java.lang.String parseCell(java.lang.String value)
TODO: This needs to move. Whichever View needs to worry about parsing should handle the parsing.



Copyright © 2004 sourceforge. All Rights Reserved.