org.apertereports.ui
Class UiFactoryExt

java.lang.Object
  extended by org.apertereports.ui.UiFactoryExt

public abstract class UiFactoryExt
extends Object

Class provides additional useful methods for creating UI components

Author:
Zbigniew Malinowski, Tomasz Serafin, BlueSoft sp. z o. o.
See Also:
UiFactory

Constructor Summary
UiFactoryExt()
           
 
Method Summary
static com.vaadin.ui.Label createCalendarLabel(com.vaadin.data.Item item, String propertyId, com.vaadin.ui.ComponentContainer parent)
          Creates calendar label bound to time property.
static com.vaadin.ui.Label createCalendarLabel(com.vaadin.data.Item item, String propertyId, String style, com.vaadin.ui.ComponentContainer parent, UiFactory.FAction... actions)
          Creates calendar label bound to time property.
static com.vaadin.ui.Label createDateLabel(com.vaadin.data.Item item, String propertyId, String style, com.vaadin.ui.ComponentContainer parent)
          Creates date label bound to date property.
static com.vaadin.ui.Label createDateLabel(com.vaadin.data.Item item, String propertyId, String style, com.vaadin.ui.ComponentContainer parent, UiFactory.FAction... actions)
          Creates date label bound to date property.
static com.vaadin.ui.ComboBox createLocaleCombo(String captionId, Locale locale)
          Creates combo box for locale selection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UiFactoryExt

public UiFactoryExt()
Method Detail

createDateLabel

public static com.vaadin.ui.Label createDateLabel(com.vaadin.data.Item item,
                                                  String propertyId,
                                                  String style,
                                                  com.vaadin.ui.ComponentContainer parent)
Creates date label bound to date property.

Parameters:
item - Bound object
propertyId - Property id
style - Style name
parent - Parent container to which the label is added, can be null
Returns:
Label

createDateLabel

public static com.vaadin.ui.Label createDateLabel(com.vaadin.data.Item item,
                                                  String propertyId,
                                                  String style,
                                                  com.vaadin.ui.ComponentContainer parent,
                                                  UiFactory.FAction... actions)
Creates date label bound to date property.

Parameters:
item - Bound object
propertyId - Property id
style - Style name
parent - Parent container to which the label is added, can be null
actions - List of actions performed on created component
Returns:
Label

createCalendarLabel

public static com.vaadin.ui.Label createCalendarLabel(com.vaadin.data.Item item,
                                                      String propertyId,
                                                      com.vaadin.ui.ComponentContainer parent)
Creates calendar label bound to time property.

Parameters:
item - Bound object
propertyId - Property id
parent - Parent container to which the label is added, can be null
Returns:
Label

createCalendarLabel

public static com.vaadin.ui.Label createCalendarLabel(com.vaadin.data.Item item,
                                                      String propertyId,
                                                      String style,
                                                      com.vaadin.ui.ComponentContainer parent,
                                                      UiFactory.FAction... actions)
Creates calendar label bound to time property.

Parameters:
item - Bound object
propertyId - Property id
style - Style name
parent - Parent container to which the label is added, can be null
actions - List of actions performed on created component
Returns:
Label

createLocaleCombo

public static com.vaadin.ui.ComboBox createLocaleCombo(String captionId,
                                                       Locale locale)
Creates combo box for locale selection

Parameters:
captionId - Id of the caption taken from the localized resources or caption
locale - Current locale
Returns:
Combo


Copyright © 2011-2013. All Rights Reserved.