org.xith3d.ui.hud.base
Interface AbstractTextList<T extends TextWidget>

All Superinterfaces:
AbstractList<T>
All Known Implementing Classes:
ComboBox, TextList

public interface AbstractTextList<T extends TextWidget>
extends AbstractList<T>

This a simple AbstractList extension, that adds methods for adding items as String.


Method Summary
 Label addItem(int index, java.lang.String text)
          Creates a Label and adds it to the List (at the given position).
 Label addItem(int index, java.lang.String text, org.openmali.vecmath2.Colorf color)
          Creates a Label and adds it to the List (at the given position).
 Label addItem(int index, java.lang.String text, java.awt.Font font, org.openmali.vecmath2.Colorf color)
          Creates a Label and adds it to the List (at the given position).
 Label addItem(java.lang.String text)
          Creates a Label and adds it to the List (at the end).
 Label addItem(java.lang.String text, org.openmali.vecmath2.Colorf color)
          Creates a Label and adds it to the List (at the given position).
 Label addItem(java.lang.String text, java.awt.Font font, org.openmali.vecmath2.Colorf color)
          Creates a Label and adds it to the List (at the given position).
 Label createItem(java.lang.String text)
          Creates a Label and adds it to the List (at the end).
 Label createItem(java.lang.String text, org.openmali.vecmath2.Colorf color)
          Creates a Label and adds it to the List (at the given position).
 Label createItem(java.lang.String text, java.awt.Font font, org.openmali.vecmath2.Colorf color)
          Creates a Label from the parameters.
 
Methods inherited from interface org.xith3d.ui.hud.base.AbstractList
addItem, addItem, addItemSetsSelectedItem, addSelectionListener, clear, getHeightByItems, getItem, getItem, getItems, getItemsCount, getMaxHeight, getSelectedIndex, getSelectedItem, isScrollBarForced, isScrollBarVisible, removeItem, removeItem, removeSelectionListener, selectNextItem, selectPreviousItem, setAddItemSetsSelectedItem, setHeightByItems, setMaxHeight, setScrollBarForced, setScrollBarVisible, setSelectedItem, setSelectedItem
 

Method Detail

createItem

Label createItem(java.lang.String text,
                 java.awt.Font font,
                 org.openmali.vecmath2.Colorf color)
Creates a Label from the parameters.

Parameters:
text - the text content for the new Item
font -
color -
Returns:
the created Label

createItem

Label createItem(java.lang.String text,
                 org.openmali.vecmath2.Colorf color)
Creates a Label and adds it to the List (at the given position).

Parameters:
text - the text content for the new Item
color -
Returns:
the created Label

createItem

Label createItem(java.lang.String text)
Creates a Label and adds it to the List (at the end).

Parameters:
text - the text content for the new Item
Returns:
the created Label

addItem

Label addItem(int index,
              java.lang.String text,
              java.awt.Font font,
              org.openmali.vecmath2.Colorf color)
Creates a Label and adds it to the List (at the given position).

Parameters:
index - the position to add the Item at
text - the text content for the new Item
font -
color -
Returns:
the created Label

addItem

Label addItem(java.lang.String text,
              java.awt.Font font,
              org.openmali.vecmath2.Colorf color)
Creates a Label and adds it to the List (at the given position).

Parameters:
text - the text content for the new Item
font -
color -
Returns:
the created Label

addItem

Label addItem(int index,
              java.lang.String text,
              org.openmali.vecmath2.Colorf color)
Creates a Label and adds it to the List (at the given position).

Parameters:
index - the position to add the Item at
text - the text content for the new Item
color -
Returns:
the created Label

addItem

Label addItem(java.lang.String text,
              org.openmali.vecmath2.Colorf color)
Creates a Label and adds it to the List (at the given position).

Parameters:
text - the text content for the new Item
color -
Returns:
the created Label

addItem

Label addItem(int index,
              java.lang.String text)
Creates a Label and adds it to the List (at the given position).

Parameters:
index - the position to add the Item at
text - the text content for the new Item
Returns:
the created Label

addItem

Label addItem(java.lang.String text)
Creates a Label and adds it to the List (at the end).

Parameters:
text - the text content for the new Item
Returns:
the created Label