Package com.saperion.ngc.resultset
Class ResultSetColumn
- java.lang.Object
- 
- com.saperion.ngc.resultset.ResultSetColumn
 
- 
- All Implemented Interfaces:
- java.lang.Comparable<ResultSetColumn>
 
 public class ResultSetColumn extends java.lang.Object implements java.lang.Comparable<ResultSetColumn> This class represents the columns of the result set including all relevant attributes (ID, sorting,...).- Author:
- mak
 
- 
- 
Constructor SummaryConstructors Constructor Description ResultSetColumn(java.lang.String colName)Constructor.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ResultSetColumn o)booleanequals(java.lang.Object obj)static ResultSetColumnfromColumnType(com.saperion.ngc.iform.xml.ColumnType type, com.saperion.ngc.iform.xml.FontType font)Creates aResultSetColumnbased on aColumnType.java.lang.StringgetAlignment()com.saperion.ngc.iform.xml.ColumnTypegetCol(com.saperion.ngc.iform.xml.FontType font)java.lang.StringgetDisplayName()Returns the display name.intgetId()java.lang.StringgetName()SortDirectiongetSortDirection()java.lang.StringgetWidth()intgetWidthAsInt()inthashCode()voidsetAlignment(java.lang.String align)voidsetDisplayName(java.lang.String dispName)voidsetId(int colId)voidsetName(java.lang.String colName)voidsetSortDirection(java.lang.String sortDir)voidsetWidth(int colWidth)
 
- 
- 
- 
Method Detail- 
setIdpublic void setId(int colId) - Parameters:
- colId- the id to set
 
 - 
setDisplayNamepublic void setDisplayName(java.lang.String dispName) - Parameters:
- dispName- the displayName to set
 
 - 
setNamepublic void setName(java.lang.String colName) - Parameters:
- colName- the name to set
 
 - 
setAlignmentpublic void setAlignment(java.lang.String align) - Parameters:
- align- the alignment to set
 
 - 
setWidthpublic void setWidth(int colWidth) - Parameters:
- colWidth- the width to set
 
 - 
setSortDirectionpublic void setSortDirection(java.lang.String sortDir) - Parameters:
- sortDir- the sortDirection to set
 
 - 
getIdpublic int getId() - Returns:
- the id
 
 - 
getDisplayNamepublic java.lang.String getDisplayName() Returns the display name.- Returns:
- the displayName
 
 - 
getNamepublic java.lang.String getName() - Returns:
- the name
 
 - 
getAlignmentpublic java.lang.String getAlignment() - Returns:
- the alignment
 
 - 
getWidthpublic java.lang.String getWidth() - Returns:
- the width
 
 - 
getWidthAsIntpublic int getWidthAsInt() - Returns:
- the width as int
 
 - 
getSortDirectionpublic SortDirection getSortDirection() - Returns:
- the sortDirection
 
 - 
compareTopublic int compareTo(ResultSetColumn o) - Specified by:
- compareToin interface- java.lang.Comparable<ResultSetColumn>
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
getColpublic com.saperion.ngc.iform.xml.ColumnType getCol(com.saperion.ngc.iform.xml.FontType font) - Parameters:
- font- Font
- Returns:
- Column type object
 
 - 
fromColumnTypepublic static ResultSetColumn fromColumnType(com.saperion.ngc.iform.xml.ColumnType type, com.saperion.ngc.iform.xml.FontType font) Creates aResultSetColumnbased on aColumnType.- Parameters:
- type- type to use to configure the new ResultSetColumn
- font- FontType used to calculate width of column. If null, no width will be set.
- Returns:
- new ResultSetColumn with settings from type
 
 
- 
 
-