|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fuin.objects4j.RenderFieldInfo
@Immutable public final class RenderFieldInfo
Container for all information that is available to render a field of a class.
| Constructor Summary | |
|---|---|
RenderFieldInfo(Field field,
LabelFieldInfo labelFieldInfo,
TextFieldInfo textFieldInfo,
TableColumnInfo tableColumnInfo)
Constructor with all data. |
|
| Method Summary | ||
|---|---|---|
static RenderFieldInfo |
create(Field field,
Locale locale)
Creates the render information for a given field. |
|
boolean |
equals(Object obj)
|
|
|
find(Class<A> type)
Tries to find an annotation of a given type on this field. |
|
static
|
find(Class<A> type,
Annotation[] annotations,
List<Class<? extends Annotation>> alreadyProcessed)
Tries to find an annotation of a given type within a list of annotations. |
|
Field |
getField()
Returns the field. |
|
LabelFieldInfo |
getLabelFieldInfo()
Returns the label information. |
|
String |
getLabelText()
Returns the label text. |
|
Long |
getMaxLength()
Returns the maximum length of the field. |
|
Long |
getMinLength()
Returns the minimum length of the field. |
|
TableColumnInfo |
getTableColumnInfo()
Returns the table column information. |
|
TextFieldInfo |
getTextFieldInfo()
Returns the text field information. |
|
int |
hashCode()
|
|
boolean |
isPasswordField()
Returns if this is a password field. |
|
boolean |
isRequired()
Returns if this is a reuired field. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Requires(value="field != null")
public RenderFieldInfo(Field field,
LabelFieldInfo labelFieldInfo,
TextFieldInfo textFieldInfo,
TableColumnInfo tableColumnInfo)
field - The field.labelFieldInfo - Label information.textFieldInfo - Text field information.tableColumnInfo - Table column information.| Method Detail |
|---|
@Ensures(value="\result != null") public final Field getField()
public final LabelFieldInfo getLabelFieldInfo()
null.public final TextFieldInfo getTextFieldInfo()
null.public final TableColumnInfo getTableColumnInfo()
null.public final int hashCode()
hashCode in class Objectpublic final boolean equals(Object obj)
equals in class Objectpublic final boolean isPasswordField()
PasswordStr annotation is present true,
else false.public final boolean isRequired()
NotNull annotation is present true,
else false.@Ensures(value="\result != null") public final String getLabelText()
public final Long getMinLength()
null if undefined.public final Long getMaxLength()
null if undefined.public final <A extends Annotation> A find(Class<A> type)
A - Type of the annotation.type - Annotation class.
null.
public static <A extends Annotation> A find(Class<A> type,
Annotation[] annotations,
List<Class<? extends Annotation>> alreadyProcessed)
A - Type of the annotation to find.type - Class of annotation to find.annotations - Array of annotations to search.alreadyProcessed - List of already processed annotations to avoid endless
looping.
null.
@Ensures(value="\result != null")
public static RenderFieldInfo create(Field field,
Locale locale)
field - Field to inspect.locale - Locale to use.
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||