public class ComboBox<T> extends Panel
Widget.NotifyEvent| Constructor and Description |
|---|
ComboBox() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addChangeListener(ChangeListener listener) |
float[] |
getColor() |
float[] |
getColorOver() |
float[] |
getColorPress() |
T |
getElement(int index) |
int |
getNumElements() |
int |
getNumVisiblePopupElements() |
T |
getSelectedElement() |
int |
getSelectedIndex() |
boolean |
isContentsFillWidth() |
boolean |
isEditable() |
boolean |
isFitToContents() |
boolean |
isValueAdjusting() |
boolean |
removeChangeListener(ChangeListener listener) |
void |
setColor(Color4 color) |
void |
setColorOver(Color4 colorOver) |
void |
setColorPress(Color4 colorPress) |
void |
setContentsFillWidth(boolean fit) |
void |
setEditable(boolean editable) |
void |
setElements(java.lang.Iterable<T> list) |
void |
setElements(T... list) |
void |
setFitToContents(boolean fitToContents) |
void |
setNumVisiblePopupElements(int numVisiblePopupElements) |
boolean |
setSelectedElement(T element) |
void |
setSelectedIndex(int index) |
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 final boolean addChangeListener(ChangeListener listener)
public final boolean removeChangeListener(ChangeListener listener)
@SafeVarargs public final void setElements(T... list)
list - new object listpublic final void setElements(java.lang.Iterable<T> list)
list - new object listpublic final T getSelectedElement()
public final T getElement(int index)
public final int getNumElements()
public final boolean setSelectedElement(T element)
element - public final void setSelectedIndex(int index)
index - index of the object to selectpublic final int getSelectedIndex()
public final boolean isValueAdjusting()
public final int getNumVisiblePopupElements()
public final void setNumVisiblePopupElements(int numVisiblePopupElements)
numVisiblePopupElements - the maximum number of visible elements in the popup menu listpublic final void setFitToContents(boolean fitToContents)
public final boolean isFitToContents()
public final void setContentsFillWidth(boolean fit)
public final boolean isContentsFillWidth()
public final void setEditable(boolean editable)
public final boolean isEditable()
public final void setColor(Color4 color)
color - the color of the textpublic final float[] getColor()
public final void setColorOver(Color4 colorOver)
colorOver - the color of the text when the mouse is over this Label.public final float[] getColorOver()
public final void setColorPress(Color4 colorPress)
colorPress - the color of the text when the mouse is pressed.public final float[] getColorPress()
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