public class List<T> extends Panel implements IScrollable
| Modifier and Type | Class and Description |
|---|---|
static class |
List.ElementState |
Widget.NotifyEvent| Constructor and Description |
|---|
List() |
add, find, find, getLayout, getNumWidgets, getWidget, getWidget, isAccurateMouseOver, isOver, isOverlappingRendering, keyPressed, keyReleased, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, remove, removeAll, setAccurateMouseOver, setLayout, setOverlappingRendering, updateaddAnimator, addFocusListener, addKeyListener, addMouseFocusListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, focusTraversal, forceSize, getBackground, getBackgroundBorder, getBackgroundColor, getBackgroundFocus, getBackgroundOver, getBackgroundPress, getBorderSize, getConstraint, getDisableFade, getHeight, getHeightOnScreen, getInsets, getInsetsBottom, getInsetsHeight, getInsetsLeft, getInsetsRight, getInsetsTop, getInsetsWidth, getLocation, getLocationAnchor, getLocationOnScreen, getLocationRef, getLocationRef2, getLocationRefAnchor, getLocationX, getLocationXOnScreen, getLocationY, getLocationYOnScreen, getMaxHeight, getMaxWidth, getMenuPopup, getMinHeight, getMinHeightWidget, getMinWidth, getMinWidthWidget, getName, getOpacity, getParent, getPopup, getRoot, getStyle, getTooltip, getViewport, getViewportInternal, getWidth, getWidthOnScreen, hasFocus, isAutoPackHeight, isAutoPackWidth, isEnabled, isEnabledHerited, isEventsOnExternalDrag, isExternalDrag, isFocusable, isMouseDown, isMouseOver, isMouseOverOrDown, isVisible, isVisibleAndEnabledHerited, isVisibleHerited, mouseClicked, mouseEntered, mouseExited, refreshFocus, removeAnimator, removeFocusListener, removeKeyListener, removeMouseFocusListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, render, requestFocus, setAutoPack, setAutoPackHeight, setAutoPackWidth, setBackground, setBackgroundBorder, setBackgroundColor, setBackgroundFocus, setBackgroundOver, setBackgroundPress, setBorderSize, setCatchAllEvents, setDisableFade, setEnabled, setEventsOnExternalDrag, setExternalDrag, setFocusable, setFocusOwner, setInsets, setInsets, setLocation, setLocation, setLocationAnchor, setLocationAndAnchorInViewport, setLocationRef, setLocationRef2, setLocationRefAnchor, setMaxSize, setMaxSize, setMenuPopup, setMinSize, setMinSize, setName, setOpacity, setPopup, setSize, setSize, setStyle, setTooltip, setVisible, toString, uiFireActionpublic static <E,T> IElementWidget<List<E>,T> getDefaultElementWidget()
public final boolean addActionListener(ActionListener listener)
public final boolean removeActionListener(ActionListener listener)
public final boolean addChangeListener(ChangeListener listener)
public final boolean removeChangeListener(ChangeListener listener)
public final int getStepForVerticalScrolling()
getStepForVerticalScrolling in interface IScrollablepublic final int getStepForHorizontalScrolling()
getStepForHorizontalScrolling in interface IScrollable@SafeVarargs public final void setElements(T... list)
list - new object listpublic final void setElements(java.lang.Iterable<T> list)
list - new object listpublic final void addElement(T o)
public final int indexOf(T element)
public final T getSelectedElement()
public final T getElement(int index)
public final int getNumElements()
public int getNumElementsPerRow()
public void setNumElementsPerRow(int numElementsPerRow)
public final void setSelectedElement(T element)
public final void setSelectedIndex(int index)
index - index of the object to selectpublic final void setElementEnabled(int index,
boolean enabled)
public final boolean isElementEnabled(int index)
public final void ensureVisible(int index)
public final void ensureVisible(T element)
public final int getSelectedIndex()
public final boolean isValueAdjusting()
public void setElementWidget(IElementWidget<List<T>,T> elementWidget)
public void actionOn(UI ui, InputEvent e, int index)
Bonzai Engine 1.3.4 11/12/2015 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2015 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com