|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apertereports.util.ComponentFactory
public abstract class ComponentFactory
Factory class providing components in frequently used form.
| Nested Class Summary | |
|---|---|
static class |
ComponentFactory.AperteIcons
|
| Field Summary | |
|---|---|
static String |
ICON_PATH
|
| Constructor Summary | |
|---|---|
ComponentFactory()
|
|
| Method Summary | |
|---|---|
static com.vaadin.ui.Button |
createButton(String captionCode,
String style,
com.vaadin.ui.ComponentContainer parent)
Creates button with caption code (for localization) and adds it to parent. |
static com.vaadin.ui.Button |
createButton(String captionCode,
String style,
com.vaadin.ui.ComponentContainer container,
com.vaadin.ui.Button.ClickListener listener)
Creates button with caption code (for localization), registers listener and adds it to parent. |
static com.vaadin.ui.Label |
createCalendarLabel(com.vaadin.data.Item item,
String propertyName,
String style,
com.vaadin.ui.ComponentContainer parent)
|
static com.vaadin.ui.CheckBox |
createCheckBox(String captionCode,
com.vaadin.data.Item item,
String propertyId,
com.vaadin.ui.ComponentContainer parent)
Creates check box bound to item's boolean property. |
static com.vaadin.ui.Label |
createDateLabel(com.vaadin.data.Item item,
String propertyName,
String style,
com.vaadin.ui.ComponentContainer parent)
Creates label bound to date property. |
static com.vaadin.ui.ComboBox |
createFormatCombo(ReportConstants.ReportType selectedValue,
String captionKey)
|
static com.vaadin.ui.HorizontalLayout |
createHLayout(com.vaadin.ui.ComponentContainer parent)
Creates horizontal layout with spacing. |
static com.vaadin.ui.HorizontalLayout |
createHLayoutFull(com.vaadin.ui.ComponentContainer parent)
Creates horizontal layout with width set to 100%. |
static com.vaadin.ui.Embedded |
createIcon(com.vaadin.data.Item item,
String proprtyId,
com.vaadin.ui.ComponentContainer parent)
|
static com.vaadin.ui.Label |
createLabel(com.vaadin.data.Item item,
String propertyId,
String style,
com.vaadin.ui.ComponentContainer parent)
Creates label bound to property, |
static com.vaadin.ui.ComboBox |
createReportTemplateCombo(ReportTemplate selectedValue,
String captionKey)
|
static com.vaadin.ui.TextField |
createSearchBox(com.vaadin.event.FieldEvents.TextChangeListener listener,
com.vaadin.ui.ComponentContainer parent)
Creates search box in LAZY text change mode. |
static com.vaadin.ui.Label |
createSimpleLabel(String valueKey,
String style,
com.vaadin.ui.ComponentContainer parent)
Label displaying not bound value. |
static com.vaadin.ui.TextArea |
createTextArea(com.vaadin.data.Item item,
String propertyId,
String promptKey,
com.vaadin.ui.ComponentContainer parent)
Creates text area bound to item. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ICON_PATH
| Constructor Detail |
|---|
public ComponentFactory()
| Method Detail |
|---|
public static com.vaadin.ui.Label createLabel(com.vaadin.data.Item item,
String propertyId,
String style,
com.vaadin.ui.ComponentContainer parent)
item - bound objectpropertyId - object's propertystyle - style name to applyparent - container of the component
public static com.vaadin.ui.Label createSimpleLabel(String valueKey,
String style,
com.vaadin.ui.ComponentContainer parent)
valueKey - text to displaystyle - style name to applyparent - container of the component
public static com.vaadin.ui.Button createButton(String captionCode,
String style,
com.vaadin.ui.ComponentContainer parent)
captionCode - localization code of button's captionstyle - style name to applycontainer - container of the component
public static com.vaadin.ui.Button createButton(String captionCode,
String style,
com.vaadin.ui.ComponentContainer container,
com.vaadin.ui.Button.ClickListener listener)
captionCode - localization code of button's captionstyle - style name to applycontainer - container of the componentlistener - listener to register on click
public static com.vaadin.ui.Label createDateLabel(com.vaadin.data.Item item,
String propertyName,
String style,
com.vaadin.ui.ComponentContainer parent)
beanItem - bound objectpropertyName - date property namestyle - style name to applyparent - container of the component
public static com.vaadin.ui.Label createCalendarLabel(com.vaadin.data.Item item,
String propertyName,
String style,
com.vaadin.ui.ComponentContainer parent)
public static com.vaadin.ui.CheckBox createCheckBox(String captionCode,
com.vaadin.data.Item item,
String propertyId,
com.vaadin.ui.ComponentContainer parent)
captionCode - caption's localization codeitem - bound objectpropertyId - object's property nameparent - container of the component
public static com.vaadin.ui.TextArea createTextArea(com.vaadin.data.Item item,
String propertyId,
String promptKey,
com.vaadin.ui.ComponentContainer parent)
item - bound objectpropertyId - object's property namepromptKey - input prompt's localization codeparent - container of the component
public static com.vaadin.ui.HorizontalLayout createHLayoutFull(com.vaadin.ui.ComponentContainer parent)
parent - container of the component
public static com.vaadin.ui.HorizontalLayout createHLayout(com.vaadin.ui.ComponentContainer parent)
parent -
public static com.vaadin.ui.TextField createSearchBox(com.vaadin.event.FieldEvents.TextChangeListener listener,
com.vaadin.ui.ComponentContainer parent)
listener - text change event handlercontainer - container of the component
public static com.vaadin.ui.ComboBox createFormatCombo(ReportConstants.ReportType selectedValue,
String captionKey)
public static com.vaadin.ui.ComboBox createReportTemplateCombo(ReportTemplate selectedValue,
String captionKey)
public static com.vaadin.ui.Embedded createIcon(com.vaadin.data.Item item,
String proprtyId,
com.vaadin.ui.ComponentContainer parent)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||