public class ResultSetColumn extends Object implements Comparable<ResultSetColumn>
Constructor and Description |
---|
ResultSetColumn(String colName)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ResultSetColumn o) |
boolean |
equals(Object obj) |
static ResultSetColumn |
fromColumnType(com.saperion.ngc.iform.xml.ColumnType type,
com.saperion.ngc.iform.xml.FontType font)
Creates a
ResultSetColumn based on a ColumnType . |
String |
getAlignment() |
com.saperion.ngc.iform.xml.ColumnType |
getCol(com.saperion.ngc.iform.xml.FontType font) |
String |
getDisplayName()
Returns the display name.
|
int |
getId() |
String |
getName() |
SortDirection |
getSortDirection() |
String |
getWidth() |
int |
getWidthAsInt() |
int |
hashCode() |
void |
setAlignment(String align) |
void |
setDisplayName(String dispName) |
void |
setId(int colId) |
void |
setName(String colName) |
void |
setSortDirection(String sortDir) |
void |
setWidth(int colWidth) |
public ResultSetColumn(String colName)
colName
- name of the column as specified in the ddc.public void setId(int colId)
colId
- the id to setpublic void setDisplayName(String dispName)
dispName
- the displayName to setpublic void setName(String colName)
colName
- the name to setpublic void setAlignment(String align)
align
- the alignment to setpublic void setWidth(int colWidth)
colWidth
- the width to setpublic void setSortDirection(String sortDir)
sortDir
- the sortDirection to setpublic int getId()
public String getDisplayName()
public String getName()
public String getAlignment()
public String getWidth()
public int getWidthAsInt()
public SortDirection getSortDirection()
public int compareTo(ResultSetColumn o)
compareTo
in interface Comparable<ResultSetColumn>
public com.saperion.ngc.iform.xml.ColumnType getCol(com.saperion.ngc.iform.xml.FontType font)
font
- Fontpublic static ResultSetColumn fromColumnType(com.saperion.ngc.iform.xml.ColumnType type, com.saperion.ngc.iform.xml.FontType font)
ResultSetColumn
based on a ColumnType
.type
- type to use to configure the new ResultSetColumnfont
- FontType used to calculate width of column. If null, no width will be set.Copyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.