Class MetaViewElement
- java.lang.Object
-
- net.anotheria.asg.generator.view.meta.MetaViewElement
-
- Direct Known Subclasses:
MetaCustomFunctionElement,MetaEmptyElement,MetaFieldElement,MetaFunctionElement,MetaListElement
public class MetaViewElement extends java.lang.ObjectRepresents an element of the view.- Version:
- $Id: $Id
- Author:
- another
-
-
Constructor Summary
Constructors Constructor Description MetaViewElement(java.lang.String aName)Creates a new meta view element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetCaption()Getter for the fieldcaption.MetaDecoratorgetDecorator()Getter for the fielddecorator.java.lang.StringgetDescription()Getter for the fielddescription.java.lang.StringgetName()Getter for the fieldname.SortingTypegetSortingType()Getter for the fieldsortingType.java.util.List<MetaValidator>getValidators()Getter for the fieldvalidators.inthashCode()booleanisAutocompleteOff()isAutocompleteOff.booleanisComparable()isComparable.booleanisDatetime()isDatetime.booleanisJSValidated()isJSValidated.booleanisReadonly()isReadonly.booleanisRich()isRich.booleanisShowLink()booleanisValidated()isValidated.voidsetAutocompleteOff(boolean b)Sets if the element allows autocompletion or not.voidsetCaption(java.lang.String caption)Setter for the fieldcaption.voidsetComparable(boolean b)Sets if document ios comparable.voidsetDatetime(boolean datetime)Setter for the fielddatetime.voidsetDecorator(MetaDecorator decorator)Sets decorator for the element.voidsetDescription(java.lang.String description)Setter for the fielddescription.voidsetName(java.lang.String string)Sets name of the element.voidsetReadonly(boolean b)Sets if the element is readonly or not.voidsetRich(boolean rich)Setter for the fieldrich.voidsetShowLink(boolean showLink)voidsetSortingType(SortingType sortingType)Setter for the fieldsortingType.voidsetValidators(java.util.List<MetaValidator> validator)Setter for the fieldvalidators.java.lang.StringtoString()
-
-
-
Method Detail
-
isReadonly
public boolean isReadonly()
isReadonly.
- Returns:
- True if the element is readonly
-
setReadonly
public void setReadonly(boolean b)
Sets if the element is readonly or not.- Parameters:
b- flag to set
-
isAutocompleteOff
public boolean isAutocompleteOff()
isAutocompleteOff.
- Returns:
- True if autocomplete for this element is off.
-
setAutocompleteOff
public void setAutocompleteOff(boolean b)
Sets if the element allows autocompletion or not.- Parameters:
b- flag to set
-
getName
public java.lang.String getName()
Getter for the field
name.- Returns:
- name of the element
-
setName
public void setName(java.lang.String string)
Sets name of the element.- Parameters:
string- name ot set
-
isComparable
public boolean isComparable()
isComparable.
- Returns:
- true if the element is comparable, otherwise - false
-
setComparable
public void setComparable(boolean b)
Sets if document ios comparable.- Parameters:
b- flag to set
-
getDecorator
public MetaDecorator getDecorator()
Getter for the field
decorator.- Returns:
- decorator for the element
-
setDecorator
public void setDecorator(MetaDecorator decorator)
Sets decorator for the element.- Parameters:
decorator- decorator to set
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
isRich
public boolean isRich()
isRich.
- Returns:
- a boolean.
-
setRich
public void setRich(boolean rich)
Setter for the field
rich.- Parameters:
rich- a boolean.
-
isDatetime
public boolean isDatetime()
isDatetime.
- Returns:
- a boolean.
-
setDatetime
public void setDatetime(boolean datetime)
Setter for the field
datetime.- Parameters:
datetime- a boolean.
-
isShowLink
public boolean isShowLink()
-
setShowLink
public void setShowLink(boolean showLink)
-
setCaption
public void setCaption(java.lang.String caption)
Setter for the field
caption.- Parameters:
caption- aStringobject.
-
getCaption
public java.lang.String getCaption()
Getter for the field
caption.- Returns:
- a
Stringobject.
-
setDescription
public void setDescription(java.lang.String description)
Setter for the field
description.- Parameters:
description- aStringobject.
-
getDescription
public java.lang.String getDescription()
Getter for the field
description.- Returns:
- a
Stringobject.
-
setValidators
public void setValidators(java.util.List<MetaValidator> validator)
Setter for the field
validators.- Parameters:
validator- aListobject.
-
getValidators
public java.util.List<MetaValidator> getValidators()
Getter for the field
validators.- Returns:
- a
Listobject.
-
isValidated
public boolean isValidated()
isValidated.
- Returns:
- a boolean.
-
isJSValidated
public boolean isJSValidated()
isJSValidated.
- Returns:
- a boolean.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getSortingType
public SortingType getSortingType()
Getter for the field
sortingType.- Returns:
- a
SortingTypeobject.
-
setSortingType
public void setSortingType(SortingType sortingType)
Setter for the field
sortingType.- Parameters:
sortingType- aSortingTypeobject.
-
-