|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fuin.objects4j.TableColumnInfo
@Immutable public final class TableColumnInfo
Table column information for a field of a class.
| Constructor Summary | |
|---|---|
TableColumnInfo(Field field,
String text,
String shortText,
int pos,
FontSize width,
String getter)
Constructor with all data. |
|
| Method Summary | |
|---|---|
int |
compareTo(TableColumnInfo theOther)
|
static List<TableColumnInfo> |
create(Class<?> clasz,
Locale locale)
Return a list of table column informations for the given class. |
static TableColumnInfo |
create(Field field,
Locale locale)
Return the table column information for a given field. |
boolean |
equals(Object obj)
|
Field |
getField()
Returns the field. |
String |
getGetter()
The name of the getter for the table column field. |
int |
getPos()
The position of the column. |
String |
getShortText()
Returns the abbreviation of the text. |
String |
getText()
Returns the text of the label. |
FontSize |
getWidth()
Returns the column width. |
int |
hashCode()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Requires(value="(field != null) && (width != null) && (getter!=null)")
public TableColumnInfo(Field field,
String text,
String shortText,
int pos,
FontSize width,
String getter)
field - The field.text - Text.shortText - Abbreviation of the text.pos - Position of the column (starting with zero).width - Witdh of the column.getter - Name of the getter for the field.| Method Detail |
|---|
@Ensures(value="\result != null") public final Field getField()
public final String getText()
public final String getShortText()
public final FontSize getWidth()
public final int getPos()
@Ensures(value="\result != null") public final String getGetter()
public final int compareTo(TableColumnInfo theOther)
compareTo in interface Comparable<TableColumnInfo>public final int hashCode()
hashCode in class Objectpublic final boolean equals(Object obj)
equals in class Object
@Requires(value="(clasz != null) && (locale!=null)")
public static List<TableColumnInfo> create(Class<?> clasz,
Locale locale)
clasz - Class to check for @TableColumn and
@Label annotations.locale - Locale to use.
@Requires(value="(field != null) && (locale!=null)")
public static TableColumnInfo create(Field field,
Locale locale)
field - Field to check for @TableColumn and
@Label annotations.locale - Locale to use.
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||