org.opennms.web.svclayer
Class SimpleWebTable

java.lang.Object
  extended by org.opennms.web.svclayer.SimpleWebTable

public class SimpleWebTable
extends Object

The idea of this class is to represent a simple table that has column headers and rows.

Author:
Mathew Brozowski, DJ Gregor

Nested Class Summary
static class SimpleWebTable.Cell
           
 
Constructor Summary
SimpleWebTable()
           
 
Method Summary
 SimpleWebTable.Cell addCell(Object cellContent, String cellStyle)
           
 SimpleWebTable.Cell addCell(Object cellContent, String cellStyle, String link)
           
 SimpleWebTable.Cell addCell(String cellContent)
           
 SimpleWebTable.Cell addColumn(Object headerContent)
           
 SimpleWebTable.Cell addColumn(Object headerContent, String headerStyle)
           
 List<SimpleWebTable.Cell> getColumnHeaders()
           
 org.springframework.validation.Errors getErrors()
           
 List<List<SimpleWebTable.Cell>> getRows()
           
 String getTitle()
           
 void newRow()
           
 void setErrors(org.springframework.validation.Errors errors)
           
 void setTitle(String title)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleWebTable

public SimpleWebTable()
Method Detail

getColumnHeaders

public List<SimpleWebTable.Cell> getColumnHeaders()

getRows

public List<List<SimpleWebTable.Cell>> getRows()

getTitle

public String getTitle()

setTitle

public void setTitle(String title)

addColumn

public SimpleWebTable.Cell addColumn(Object headerContent,
                                     String headerStyle)

addColumn

public SimpleWebTable.Cell addColumn(Object headerContent)

newRow

public void newRow()

addCell

public SimpleWebTable.Cell addCell(Object cellContent,
                                   String cellStyle,
                                   String link)

addCell

public SimpleWebTable.Cell addCell(Object cellContent,
                                   String cellStyle)

addCell

public SimpleWebTable.Cell addCell(String cellContent)

toString

public String toString()
Overrides:
toString in class Object

getErrors

public org.springframework.validation.Errors getErrors()

setErrors

public void setErrors(org.springframework.validation.Errors errors)


Copyright © 2009. All Rights Reserved.