|
||||||||||
| 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(java.lang.reflect.Field field,
LabelFieldInfo labelFieldInfo,
TextFieldInfo textFieldInfo,
TableColumnInfo tableColumnInfo)
Constructor with all data. |
|
| Method Summary | ||
|---|---|---|
static RenderFieldInfo |
create(java.lang.reflect.Field field,
java.util.Locale locale)
Creates the render information for a given field. |
|
boolean |
equals(java.lang.Object obj)
|
|
|
find(java.lang.Class<A> type)
Tries to find an annotation of a given type on this field. |
|
static
|
find(java.lang.Class<A> type,
java.lang.annotation.Annotation[] annotations,
java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> alreadyProcessed)
Tries to find an annotation of a given type within a list of annotations. |
|
java.lang.reflect.Field |
getField()
Returns the field. |
|
LabelFieldInfo |
getLabelFieldInfo()
Returns the label information. |
|
java.lang.String |
getLabelText()
Returns the label text. |
|
java.lang.Long |
getMaxLength()
Returns the maximum length of the field. |
|
java.lang.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(java.lang.reflect.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 java.lang.reflect.Field getField()
public final LabelFieldInfo getLabelFieldInfo()
null.public final TextFieldInfo getTextFieldInfo()
null.public final TableColumnInfo getTableColumnInfo()
null.public final int hashCode()
hashCode in class java.lang.Objectpublic final boolean equals(java.lang.Object obj)
equals in class java.lang.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 java.lang.String getLabelText()
public final java.lang.Long getMinLength()
null if undefined.public final java.lang.Long getMaxLength()
null if undefined.public final <A extends java.lang.annotation.Annotation> A find(java.lang.Class<A> type)
A - Type of the annotation.type - Annotation class.
null.
public static <A extends java.lang.annotation.Annotation> A find(java.lang.Class<A> type,
java.lang.annotation.Annotation[] annotations,
java.util.List<java.lang.Class<? extends java.lang.annotation.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(java.lang.reflect.Field field,
java.util.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 | |||||||||