|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apertereports.util.wrappers.FieldContainer
public class FieldContainer
This is a wrapper container for report fields. It includes a Vaadin component and a bunch of configuration params.
Each of the containers has a certain type ofReportConstants.InputTypes, a name, order in the form and a flag
that decides whether to show a "select all" checkbox or not.
| Constructor Summary | |
|---|---|
FieldContainer()
|
|
FieldContainer(Integer order,
String name,
com.vaadin.ui.Field field)
|
|
| Method Summary | |
|---|---|
void |
addValidator(com.vaadin.data.Validator validator)
Adds a validator to the current field component. |
ReportConstants.InputTypes |
getComponentType()
|
com.vaadin.ui.Component |
getFieldComponent()
|
String |
getName()
|
Integer |
getOrder()
|
Object |
getValue()
Gets a value from current component. |
boolean |
isSelectAll()
|
void |
placeYourselfInForm(com.vaadin.ui.Form form,
com.vaadin.ui.FormLayout layout)
Fills the form with current field component. |
void |
setComponentType(ReportConstants.InputTypes componentType)
|
void |
setFieldComponent(com.vaadin.ui.Component field)
|
void |
setName(String name)
|
void |
setOrder(Integer order)
|
void |
setSelectAll(boolean selectAll)
|
void |
setValue(Object value)
Sets the value of the current field component. |
void |
validate()
Invokes the validation of the current field component. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FieldContainer()
public FieldContainer(Integer order,
String name,
com.vaadin.ui.Field field)
| Method Detail |
|---|
public void addValidator(com.vaadin.data.Validator validator)
validator - A Vaadin validatorpublic ReportConstants.InputTypes getComponentType()
public com.vaadin.ui.Component getFieldComponent()
public String getName()
public Integer getOrder()
public Object getValue()
public boolean isSelectAll()
public void placeYourselfInForm(com.vaadin.ui.Form form,
com.vaadin.ui.FormLayout layout)
form - The form to place the field inlayout - The layout that displays the fieldpublic void setComponentType(ReportConstants.InputTypes componentType)
public void setFieldComponent(com.vaadin.ui.Component field)
public void setName(String name)
public void setOrder(Integer order)
public void setSelectAll(boolean selectAll)
public void setValue(Object value)
value - The value to setpublic void validate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||