Package org.opennms.web.svclayer.model
Class SimpleWebTable
- java.lang.Object
-
- org.opennms.web.svclayer.model.SimpleWebTable
-
public class SimpleWebTable extends java.lang.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
Nested Classes Modifier and Type Class Description static class
SimpleWebTable.Cell
-
Constructor Summary
Constructors Constructor Description SimpleWebTable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleWebTable.Cell
addCell(java.lang.Object cellContent, java.lang.String cellStyle)
addCellSimpleWebTable.Cell
addCell(java.lang.Object cellContent, java.lang.String cellStyle, java.lang.String link)
addCellSimpleWebTable.Cell
addCell(java.lang.String cellContent)
addCellSimpleWebTable.Cell
addColumn(java.lang.Object headerContent)
addColumnSimpleWebTable.Cell
addColumn(java.lang.Object headerContent, java.lang.String headerStyle)
addColumnjava.util.List<SimpleWebTable.Cell>
getColumnHeaders()
getColumnHeadersorg.springframework.validation.Errors
getErrors()
getErrorsjava.util.List<java.util.List<SimpleWebTable.Cell>>
getRows()
getRowsjava.lang.String
getTitle()
getTitlevoid
newRow()
newRowvoid
setErrors(org.springframework.validation.Errors errors)
setErrorsvoid
setTitle(java.lang.String title)
setTitlejava.lang.String
toString()
toString
-
-
-
Method Detail
-
getColumnHeaders
public java.util.List<SimpleWebTable.Cell> getColumnHeaders()
getColumnHeaders
- Returns:
- a
List
object.
-
getRows
public java.util.List<java.util.List<SimpleWebTable.Cell>> getRows()
getRows
- Returns:
- a
List
object.
-
getTitle
public java.lang.String getTitle()
getTitle
- Returns:
- a
String
object.
-
setTitle
public void setTitle(java.lang.String title)
setTitle
- Parameters:
title
- aString
object.
-
addColumn
public SimpleWebTable.Cell addColumn(java.lang.Object headerContent, java.lang.String headerStyle)
addColumn
- Parameters:
headerContent
- aObject
object.headerStyle
- aString
object.- Returns:
- a
SimpleWebTable.Cell
object.
-
addColumn
public SimpleWebTable.Cell addColumn(java.lang.Object headerContent)
addColumn
- Parameters:
headerContent
- aObject
object.- Returns:
- a
SimpleWebTable.Cell
object.
-
newRow
public void newRow()
newRow
-
addCell
public SimpleWebTable.Cell addCell(java.lang.Object cellContent, java.lang.String cellStyle, java.lang.String link)
addCell
- Parameters:
cellContent
- aObject
object.cellStyle
- aString
object.link
- aString
object.- Returns:
- a
SimpleWebTable.Cell
object.
-
addCell
public SimpleWebTable.Cell addCell(java.lang.Object cellContent, java.lang.String cellStyle)
addCell
- Parameters:
cellContent
- aObject
object.cellStyle
- aString
object.- Returns:
- a
SimpleWebTable.Cell
object.
-
addCell
public SimpleWebTable.Cell addCell(java.lang.String cellContent)
addCell
- Parameters:
cellContent
- aString
object.- Returns:
- a
SimpleWebTable.Cell
object.
-
toString
public java.lang.String toString()
toString
- Overrides:
toString
in classjava.lang.Object
- Returns:
- a
String
object.
-
getErrors
public org.springframework.validation.Errors getErrors()
getErrors
- Returns:
- a
Errors
object.
-
setErrors
public void setErrors(org.springframework.validation.Errors errors)
setErrors
- Parameters:
errors
- aErrors
object.
-
-