de.lessvoid.nifty.controls.treebox
Class TreeBoxViewConverter

java.lang.Object
  extended by de.lessvoid.nifty.controls.treebox.TreeBoxViewConverter
All Implemented Interfaces:
ListBox.ListBoxViewConverter<TreeEntryModelClass>

public class TreeBoxViewConverter
extends Object
implements ListBox.ListBoxViewConverter<TreeEntryModelClass>

Author:
ractoc

Constructor Summary
TreeBoxViewConverter()
           
 
Method Summary
 void display(Element listBoxItem, TreeEntryModelClass item)
          Display the given item in the given element.
 int getWidth(Element element, TreeEntryModelClass item)
          Return the width in pixel of the given item rendered for the given element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeBoxViewConverter

public TreeBoxViewConverter()
Method Detail

display

public void display(Element listBoxItem,
                    TreeEntryModelClass item)
Description copied from interface: ListBox.ListBoxViewConverter
Display the given item in the given element.

Specified by:
display in interface ListBox.ListBoxViewConverter<TreeEntryModelClass>
Parameters:
listBoxItem - the element to display the item in
item - the item to display

getWidth

public int getWidth(Element element,
                    TreeEntryModelClass item)
Description copied from interface: ListBox.ListBoxViewConverter
Return the width in pixel of the given item rendered for the given element.

Specified by:
getWidth in interface ListBox.ListBoxViewConverter<TreeEntryModelClass>
Parameters:
element - the element to render
item - the item to render
Returns:
the width of the element after the item has been applied to it


Copyright © 2011. All Rights Reserved.