info.magnolia.ui.admincentral.shellapp.pulse.item
Class PulseBeanItem<B>

java.lang.Object
  extended by com.vaadin.data.util.PropertysetItem
      extended by com.vaadin.data.util.BeanItem<B>
          extended by info.magnolia.ui.admincentral.shellapp.pulse.item.PulseBeanItem<B>
Type Parameters:
B - the bean wrapped in BeanItem.
All Implemented Interfaces:
com.vaadin.data.Item, com.vaadin.data.Item.PropertySetChangeNotifier, Serializable, Cloneable
Direct Known Subclasses:
TaskItem

public class PulseBeanItem<B>
extends com.vaadin.data.util.BeanItem<B>

Abstract BeanItem used for beans in pulse. Allows passing a Map of nested beans to the constructor.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.vaadin.data.Item
com.vaadin.data.Item.Editor, com.vaadin.data.Item.PropertySetChangeListener, com.vaadin.data.Item.PropertySetChangeNotifier, com.vaadin.data.Item.Viewer
 
Constructor Summary
PulseBeanItem(B bean)
           
PulseBeanItem(B bean, String... propertyIds)
           
PulseBeanItem(B bean, String[] propertyIds, Map<String,List<String>> nestedPropertyIds)
           
 
Method Summary
 void addNestedProperty(String nestedPropertyId)
          Adds a nested property to the item.
 
Methods inherited from class com.vaadin.data.util.BeanItem
expandProperty, getBean
 
Methods inherited from class com.vaadin.data.util.PropertysetItem
addItemProperty, addListener, addPropertySetChangeListener, clone, equals, getItemProperty, getItemPropertyIds, getListeners, hashCode, removeItemProperty, removeListener, removePropertySetChangeListener, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PulseBeanItem

public PulseBeanItem(B bean)

PulseBeanItem

public PulseBeanItem(B bean,
                     String... propertyIds)

PulseBeanItem

public PulseBeanItem(B bean,
                     String[] propertyIds,
                     Map<String,List<String>> nestedPropertyIds)
Method Detail

addNestedProperty

public void addNestedProperty(String nestedPropertyId)
Adds a nested property to the item.

Overrides:
addNestedProperty in class com.vaadin.data.util.BeanItem<B>
Parameters:
nestedPropertyId - property id to add. This property must not exist in the item already and must of of form "field1.field2" where field2 is a field in the object referenced to by field1


Copyright © 2014 Magnolia International Ltd.. All Rights Reserved.