de.lessvoid.nifty.controls.treebox
Class TreeBoxViewConverter
java.lang.Object
de.lessvoid.nifty.controls.treebox.TreeBoxViewConverter
- All Implemented Interfaces:
- ListBox.ListBoxViewConverter<TreeEntryModelClass>
public class TreeBoxViewConverter
- extends Object
- implements ListBox.ListBoxViewConverter<TreeEntryModelClass>
- Author:
- ractoc
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TreeBoxViewConverter
public TreeBoxViewConverter()
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 initem
- 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 renderitem
- the item to render
- Returns:
- the width of the element after the item has been applied to it
Copyright © 2011. All Rights Reserved.