|
||||||||||
| 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(java.lang.reflect.Field field,
java.lang.String text,
java.lang.String shortText,
int pos,
FontSize width,
java.lang.String getter)
Constructor with all data. |
|
| Method Summary | |
|---|---|
int |
compareTo(TableColumnInfo theOther)
|
static java.util.List<TableColumnInfo> |
create(java.lang.Class<?> clasz,
java.util.Locale locale)
Return a list of table column informations for the given class. |
static TableColumnInfo |
create(java.lang.reflect.Field field,
java.util.Locale locale)
Return the table column information for a given field. |
boolean |
equals(java.lang.Object obj)
|
java.lang.reflect.Field |
getField()
Returns the field. |
java.lang.String |
getGetter()
The name of the getter for the table column field. |
int |
getPos()
The position of the column. |
java.lang.String |
getShortText()
Returns the abbreviation of the text. |
java.lang.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(java.lang.reflect.Field field,
java.lang.String text,
java.lang.String shortText,
int pos,
FontSize width,
java.lang.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 java.lang.reflect.Field getField()
public final java.lang.String getText()
public final java.lang.String getShortText()
public final FontSize getWidth()
public final int getPos()
@Ensures(value="\result != null") public final java.lang.String getGetter()
public final int compareTo(TableColumnInfo theOther)
compareTo in interface java.lang.Comparable<TableColumnInfo>public final int hashCode()
hashCode in class java.lang.Objectpublic final boolean equals(java.lang.Object obj)
equals in class java.lang.Object
@Requires(value="(clasz != null) && (locale!=null)")
public static java.util.List<TableColumnInfo> create(java.lang.Class<?> clasz,
java.util.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(java.lang.reflect.Field field,
java.util.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 | |||||||||