public class List<T> extends Component
Modifier and Type | Class and Description |
---|---|
static class |
List.AbstractItemManager<L> |
static class |
List.DefaultItemManager<L> |
static interface |
List.ItemManager<L>
Handles item display and stuff
See AbstractItemManager and DefaultItemManager
|
Component.Alignment
Modifier and Type | Field and Description |
---|---|
protected boolean |
activated |
protected int |
highIndex |
protected List.ItemManager<T> |
im |
protected java.util.List<T> |
list |
protected int |
selIndex |
Constructor and Description |
---|
List(java.lang.String id,
float x,
float y,
float width,
float height,
List.ItemManager<T> im) |
Modifier and Type | Method and Description |
---|---|
java.util.List<T> |
getList() |
T |
getSelectedItem() |
boolean |
isActivated(Input in)
Should return true the tick when the component is activated by the user (ie when a button is clicked).
|
protected void |
renderI(Graphics g,
Input in,
float x,
float y,
float width,
float height) |
protected void |
renderOverlayI(Graphics g,
Input in,
float x,
float y,
float width,
float height) |
List<T> |
setData(T[] data) |
protected void |
tickI(Input in,
AudioEngine ae,
float delta,
float x,
float y,
float width,
float height) |
protected java.util.List<T> list
protected List.ItemManager<T> im
protected int highIndex
protected int selIndex
protected boolean activated
public List(java.lang.String id, float x, float y, float width, float height, List.ItemManager<T> im)
protected void renderOverlayI(Graphics g, Input in, float x, float y, float width, float height)
renderOverlayI
in class Component
public java.util.List<T> getList()
protected void tickI(Input in, AudioEngine ae, float delta, float x, float y, float width, float height)
public boolean isActivated(Input in)
Component
isActivated
in class Component
public T getSelectedItem()