info.magnolia.ui.workbench.list
Class ListViewImpl

java.lang.Object
  extended by info.magnolia.ui.workbench.list.ListViewImpl
All Implemented Interfaces:
View, ContentView, ListView, Serializable
Direct Known Subclasses:
SearchViewImpl, TreeViewImpl

public class ListViewImpl
extends Object
implements ListView

Default Vaadin implementation of the list view.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface info.magnolia.ui.workbench.ContentView
ContentView.Listener
 
Constructor Summary
ListViewImpl()
           
ListViewImpl(com.vaadin.ui.Table table)
           
 
Method Summary
 void addColumn(String propertyId, String title)
           
 void addColumn(String propertyId, String title, float expandRatio)
           
 void addColumn(String propertyId, String title, int width)
           
 com.vaadin.ui.Table asVaadinComponent()
          Returns the Vaadin component managed by this view.
protected  void bindHandlers()
           
 void expand(String itemId)
          Expands an item if the view supports it.
protected  ContentView.Listener getListener()
           
 void onShortcutKey(int keyCode, int[] modifierKeys)
           
 void select(List<String> itemIds)
          Selects the items with given IDs in the content view.
 void setColumnFormatter(String propertyId, ColumnFormatter formatter)
           
 void setContainer(com.vaadin.data.Container container)
           
 void setListener(ContentView.Listener listener)
           
 void setMultiselect(boolean multiselect)
          Decides whether the user can select multiple items.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListViewImpl

public ListViewImpl()

ListViewImpl

public ListViewImpl(com.vaadin.ui.Table table)
Method Detail

bindHandlers

protected void bindHandlers()

getListener

protected ContentView.Listener getListener()

setListener

public void setListener(ContentView.Listener listener)
Specified by:
setListener in interface ContentView

setContainer

public void setContainer(com.vaadin.data.Container container)
Specified by:
setContainer in interface ListView

addColumn

public void addColumn(String propertyId,
                      String title)
Specified by:
addColumn in interface ListView

addColumn

public void addColumn(String propertyId,
                      String title,
                      int width)
Specified by:
addColumn in interface ListView

addColumn

public void addColumn(String propertyId,
                      String title,
                      float expandRatio)
Specified by:
addColumn in interface ListView

setColumnFormatter

public void setColumnFormatter(String propertyId,
                               ColumnFormatter formatter)
Specified by:
setColumnFormatter in interface ListView

select

public void select(List<String> itemIds)
Description copied from interface: ContentView
Selects the items with given IDs in the content view.

Specified by:
select in interface ContentView
Parameters:
itemIds - IDs

expand

public void expand(String itemId)
Description copied from interface: ContentView
Expands an item if the view supports it.

Specified by:
expand in interface ContentView
Parameters:
itemId - ID

asVaadinComponent

public com.vaadin.ui.Table asVaadinComponent()
Description copied from interface: View
Returns the Vaadin component managed by this view.

Specified by:
asVaadinComponent in interface View

setMultiselect

public void setMultiselect(boolean multiselect)
Description copied from interface: ContentView
Decides whether the user can select multiple items.

Specified by:
setMultiselect in interface ContentView

onShortcutKey

public void onShortcutKey(int keyCode,
                          int[] modifierKeys)
Specified by:
onShortcutKey in interface ContentView


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