|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apertereports.ui.UiFactory
public abstract class UiFactory
Class provides useful methods for creating UI components
| Nested Class Summary | |
|---|---|
static class |
UiFactory.FAction
Defines available actions performed on created components |
| Constructor Summary | |
|---|---|
UiFactory()
|
|
| Method Summary | |
|---|---|
static com.vaadin.ui.Button |
createButton(String captionId,
com.vaadin.ui.ComponentContainer parent)
Creates button |
static com.vaadin.ui.Button |
createButton(String captionId,
com.vaadin.ui.ComponentContainer parent,
com.vaadin.ui.Button.ClickListener listener)
Creates button |
static com.vaadin.ui.Button |
createButton(String captionId,
com.vaadin.ui.ComponentContainer parent,
com.vaadin.ui.Button.ClickListener listener,
UiFactory.FAction... actions)
Creates button |
static com.vaadin.ui.Button |
createButton(String captionId,
com.vaadin.ui.ComponentContainer parent,
String style)
Create button |
static com.vaadin.ui.Button |
createButton(String captionId,
com.vaadin.ui.ComponentContainer parent,
String style,
com.vaadin.ui.Button.ClickListener listener)
Creates button |
static com.vaadin.ui.Button |
createButton(String captionId,
com.vaadin.ui.ComponentContainer parent,
String style,
com.vaadin.ui.Button.ClickListener listener,
UiFactory.FAction... actions)
Creates button |
static com.vaadin.ui.CheckBox |
createCheckBox(String captionId,
com.vaadin.ui.ComponentContainer parent)
Creates check box |
static com.vaadin.ui.CheckBox |
createCheckBox(String captionId,
com.vaadin.data.Item item,
String propertyId,
com.vaadin.ui.ComponentContainer parent)
Creates check box |
static com.vaadin.ui.HorizontalLayout |
createHLayout(com.vaadin.ui.ComponentContainer parent)
Creates horizontal layout |
static com.vaadin.ui.HorizontalLayout |
createHLayout(com.vaadin.ui.ComponentContainer parent,
UiFactory.FAction... actions)
Creates horizontal layout |
static com.vaadin.ui.Label |
createLabel(com.vaadin.data.Item item,
String propertyId,
com.vaadin.ui.ComponentContainer parent)
Creates label bound to property |
static com.vaadin.ui.Label |
createLabel(com.vaadin.data.Item item,
String propertyId,
com.vaadin.ui.ComponentContainer parent,
String style)
Creates label bound to property |
static com.vaadin.ui.Label |
createLabel(com.vaadin.data.Item item,
String propertyId,
com.vaadin.ui.ComponentContainer parent,
String style,
UiFactory.FAction... actions)
Creates label bound to property |
static com.vaadin.ui.Label |
createLabel(com.vaadin.data.Item item,
String propertyId,
com.vaadin.ui.ComponentContainer parent,
UiFactory.FAction... actions)
Creates label bound to property |
static com.vaadin.ui.Label |
createLabel(String captionId,
com.vaadin.ui.ComponentContainer parent)
Creates label |
static com.vaadin.ui.Label |
createLabel(String captionId,
com.vaadin.ui.ComponentContainer parent,
String style)
Creates label |
static com.vaadin.ui.Label |
createLabel(String captionId,
com.vaadin.ui.ComponentContainer parent,
String style,
UiFactory.FAction... actions)
Creates label |
static com.vaadin.ui.Panel |
createPanel(String captionId)
Creates panel |
static com.vaadin.ui.TextField |
createSearchBox(String promptId,
com.vaadin.ui.ComponentContainer parent,
com.vaadin.event.FieldEvents.TextChangeListener listener)
Creates text field with listener |
static com.vaadin.ui.Label |
createSpacer(com.vaadin.ui.ComponentContainer parent)
Creates simple label without caption and add it to the parent container |
static com.vaadin.ui.Label |
createSpacer(com.vaadin.ui.ComponentContainer parent,
String width,
String height)
Creates simple label without caption and add it to the parent container |
static com.vaadin.ui.Label |
createSpacer(com.vaadin.ui.ComponentContainer parent,
String width,
String height,
UiFactory.FAction... actions)
Creates simple label without caption and add it to the parent container |
static com.vaadin.ui.Label |
createSpacer(com.vaadin.ui.ComponentContainer parent,
UiFactory.FAction... actions)
Creates simple label without caption and add it to the parent container |
static com.vaadin.ui.TextField |
createTextField(com.vaadin.data.Item item,
String propertyId,
com.vaadin.ui.ComponentContainer parent)
Creates text field bound to property |
static com.vaadin.ui.TextField |
createTextField(com.vaadin.data.Item item,
String propertyId,
com.vaadin.ui.ComponentContainer parent,
String promptId)
Creates text field bound to property |
static com.vaadin.ui.TextField |
createTextField(com.vaadin.data.Item item,
String propertyId,
com.vaadin.ui.ComponentContainer parent,
String promptId,
UiFactory.FAction... actions)
Creates text field bound to property |
static com.vaadin.ui.VerticalLayout |
createVLayout(com.vaadin.ui.ComponentContainer parent)
Creates vertical layout |
static com.vaadin.ui.VerticalLayout |
createVLayout(com.vaadin.ui.ComponentContainer parent,
UiFactory.FAction... actions)
Creates vertical layout |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UiFactory()
| Method Detail |
|---|
public static com.vaadin.ui.Label createLabel(com.vaadin.data.Item item,
String propertyId,
com.vaadin.ui.ComponentContainer parent)
item - Bound objectpropertyId - Property idparent - Parent container to which the label is added, can be null
public static com.vaadin.ui.Label createLabel(com.vaadin.data.Item item,
String propertyId,
com.vaadin.ui.ComponentContainer parent,
UiFactory.FAction... actions)
item - Bound objectpropertyId - Property idparent - Parent container to which the label is added, can be nullactions - List of actions performed on created component
public static com.vaadin.ui.Label createLabel(com.vaadin.data.Item item,
String propertyId,
com.vaadin.ui.ComponentContainer parent,
String style)
item - Bound objectpropertyId - Property idparent - Parent container to which the label is added, can be nullstyle - Style name
public static com.vaadin.ui.Label createLabel(com.vaadin.data.Item item,
String propertyId,
com.vaadin.ui.ComponentContainer parent,
String style,
UiFactory.FAction... actions)
item - Bound objectpropertyId - Property idparent - Parent container to which the label is added, can be nullstyle - Style nameactions - List of actions performed on created component
public static com.vaadin.ui.Label createLabel(String captionId,
com.vaadin.ui.ComponentContainer parent)
captionId - Id of the caption taken from the localized resources or
captionparent - Parent container to which the label is added, can be null
public static com.vaadin.ui.Label createLabel(String captionId,
com.vaadin.ui.ComponentContainer parent,
String style)
captionId - Id of the caption taken from the localized resources or
captionstyle - Style nameparent - Parent container to which the label is added, can be null
public static com.vaadin.ui.Label createLabel(String captionId,
com.vaadin.ui.ComponentContainer parent,
String style,
UiFactory.FAction... actions)
captionId - Id of the caption taken from the localized resources or
captionstyle - Style nameparent - Parent container to which the label is added, can be nullactions - List of actions performed on created component label
public static com.vaadin.ui.Button createButton(String captionId,
com.vaadin.ui.ComponentContainer parent)
captionId - Id of the caption taken from the localized resources or
captionparent - Parent container to which the button is added, can be null
public static com.vaadin.ui.Button createButton(String captionId,
com.vaadin.ui.ComponentContainer parent,
String style)
captionId - Id of the caption taken from the localized resources or
captionparent - Parent container to which the button is added, can be nullstyle - Style name
public static com.vaadin.ui.Button createButton(String captionId,
com.vaadin.ui.ComponentContainer parent,
com.vaadin.ui.Button.ClickListener listener)
captionId - Id of the caption taken from the localized resources or
captionparent - Parent container to which the button is added, can be nulllistener - Event listener
public static com.vaadin.ui.Button createButton(String captionId,
com.vaadin.ui.ComponentContainer parent,
com.vaadin.ui.Button.ClickListener listener,
UiFactory.FAction... actions)
captionId - Id of the caption taken from the localized resources or
captionparent - Parent container to which the button is added, can be nulllistener - Event listeneractions - List of actions performed on created component
public static com.vaadin.ui.Button createButton(String captionId,
com.vaadin.ui.ComponentContainer parent,
String style,
com.vaadin.ui.Button.ClickListener listener)
captionId - Id of the caption taken from the localized resources or
captionstyle - Style nameparent - Parent container to which the button is added, can be nulllistener - Event listener
public static com.vaadin.ui.Button createButton(String captionId,
com.vaadin.ui.ComponentContainer parent,
String style,
com.vaadin.ui.Button.ClickListener listener,
UiFactory.FAction... actions)
captionId - Id of the caption taken from the localized resources or
captionstyle - Style nameparent - Parent container to which the button is added, can be nulllistener - Event listeneractions - List of actions performed on created component
public static com.vaadin.ui.CheckBox createCheckBox(String captionId,
com.vaadin.data.Item item,
String propertyId,
com.vaadin.ui.ComponentContainer parent)
captionId - Id of the caption taken from the localized resources or
captionitem - Bound ObjectpropertyId - Property idparent - Parent container to which the component is added, can be
null
public static com.vaadin.ui.CheckBox createCheckBox(String captionId,
com.vaadin.ui.ComponentContainer parent)
captionId - Id of the caption taken from the localized resources or
captionparent - Parent container to which the component is added, can be
null
public static com.vaadin.ui.TextField createTextField(com.vaadin.data.Item item,
String propertyId,
com.vaadin.ui.ComponentContainer parent)
item - Bound objectpropertyId - Property idparent - Parent container to which the component is added, can be
null
public static com.vaadin.ui.TextField createTextField(com.vaadin.data.Item item,
String propertyId,
com.vaadin.ui.ComponentContainer parent,
String promptId)
item - Bound objectpropertyId - Property idpromptId - Id of the prompt taken from the localized resources or
promptparent - Parent container to which the component is added, can be
null
public static com.vaadin.ui.TextField createTextField(com.vaadin.data.Item item,
String propertyId,
com.vaadin.ui.ComponentContainer parent,
String promptId,
UiFactory.FAction... actions)
item - Bound objectpropertyId - Property idpromptId - Id of the prompt taken from the localized resources or
promptparent - Parent container to which the component is added, can be
nullactions - List of actions performed on created component
public static com.vaadin.ui.TextField createSearchBox(String promptId,
com.vaadin.ui.ComponentContainer parent,
com.vaadin.event.FieldEvents.TextChangeListener listener)
promptId - Id of the prompt taken from the localized resources or
promptparent - Parent container to which the component is added, can be
nulllistener - Event listener
public static com.vaadin.ui.HorizontalLayout createHLayout(com.vaadin.ui.ComponentContainer parent)
parent - Parent container to which the layout is added, can be null
public static com.vaadin.ui.HorizontalLayout createHLayout(com.vaadin.ui.ComponentContainer parent,
UiFactory.FAction... actions)
parent - Parent container to which the layout is added, can be nullactions - List of actions performed on created component
public static com.vaadin.ui.VerticalLayout createVLayout(com.vaadin.ui.ComponentContainer parent)
parent - Parent container to which the layout is added, can be null
public static com.vaadin.ui.VerticalLayout createVLayout(com.vaadin.ui.ComponentContainer parent,
UiFactory.FAction... actions)
parent - Parent container to which the layout is added, can be nullactions - List of actions performed on created component
public static com.vaadin.ui.Panel createPanel(String captionId)
captionId - Id of the caption taken from the localized resources or
caption
public static com.vaadin.ui.Label createSpacer(com.vaadin.ui.ComponentContainer parent)
parent - Parent container to which the spacer is added, can be null
public static com.vaadin.ui.Label createSpacer(com.vaadin.ui.ComponentContainer parent,
UiFactory.FAction... actions)
parent - Parent container to which the spacer is added, can be nullactions - List of actions performed on created component
public static com.vaadin.ui.Label createSpacer(com.vaadin.ui.ComponentContainer parent,
String width,
String height)
parent - Parent container to which the spacer is added, can be nullwidth - Width of the component, can be nullheight - Height of the component, can be null
public static com.vaadin.ui.Label createSpacer(com.vaadin.ui.ComponentContainer parent,
String width,
String height,
UiFactory.FAction... actions)
parent - Parent container to which the spacer is added, can be nullwidth - Width of the component, can be nullheight - Height of the component, can be nullactions - List of actions performed on created component
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||