|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.ObjectcontrolP5.ControllerGroup
controlP5.ControlGroup
controlP5.DropdownList
public class DropdownList
| Field Summary |
|---|
| Fields inherited from interface controlP5.ControlP5Constants |
|---|
acceptClassList, ACTION_BROADCAST, ACTION_ENTER, ACTION_LEAVE, ACTION_PRESSED, ACTION_RELEASED, ACTION_RELEASEDOUTSIDE, ACTIVE, ALL, ALT, ARC, ARRAY, BACKSPACE, BASELINE, BITFONT, BOOLEAN, BOTTOM, BOTTOM_OUTSIDE, CAPTIONLABEL, CENTER, COMMANDKEY, CONTROL, controlEventClass, CUSTOM, DECREASE, DEFAULT, DELETE, DONE, DOWN, ELLIPSE, ENTER, ESCAPE, EVENT, eventMethod, FADEIN, FADEOUT, FIELD, FLOAT, HALF_PI, HIDE, HIGHLIGHT, HORIZONTAL, IDLE, IMAGE, INACTIVE, INCREASE, INTEGER, INVALID, KEYCONTROL, LEFT, LEFT_OUTSIDE, LINE, LOAD, MENU, METHOD, MOVE, MULTIPLES, OVER, PI, PRESSED, PRINT, RELEASE, RESET, RIGHT, RIGHT_OUTSIDE, SAVE, SHIFT, SINGLE, SINGLE_COLUMN, SINGLE_ROW, SPRITE, STRING, SWITCH, SWITCH_BACK, SWITCH_FORE, TAB, TOP, TOP_OUTSIDE, TRANSITION_WAIT_FADEIN, TWO_PI, UP, VALUELABEL, VERBOSE, VERTICAL, WAIT |
| Method Summary | |
|---|---|
DropdownList |
actAsPulldownMenu(boolean theValue)
Enables a ListBox to act as a pulldown menu. |
ListBoxItem |
addItem(java.lang.String theName,
int theValue)
Adds an item to the ListBox. |
DropdownList |
addItems(java.util.List theItems)
|
DropdownList |
addItems(java.util.List theItems,
int theOffset)
|
DropdownList |
addItems(java.lang.String[] theItems)
adds a list of items from a string array. |
void |
beginItems()
|
DropdownList |
clear()
Removes all items from a list box |
void |
endItems()
|
ListBoxItem |
getItem(Controller theButton)
returns a ListBoxItem based on its Button reference. |
ListBoxItem |
getItem(int theIndex)
returns a listBoxItem by index in the list of items. |
ListBoxItem |
getItem(java.lang.String theItemName)
TODO faulty returns a listBoxItem by name. |
java.lang.String[][] |
getListBoxItems()
|
float |
getScrollPosition()
|
DropdownList |
hideScrollbar()
|
boolean |
isScrollable()
|
boolean |
isScrollbarEnabled()
|
DropdownList |
removeItem(java.lang.String theItemName)
Removes an item from the ListBox using the unique name of the item given when added to the list. |
DropdownList |
scroll(float theValue)
scroll the scrollList remotely. |
void |
scrolled(int theStep)
|
DropdownList |
setColor(CColor theColor)
|
DropdownList |
setColorActive(int theColor)
|
DropdownList |
setColorBackground(int theColor)
|
DropdownList |
setColorForeground(int theColor)
|
DropdownList |
setColorLabel(int theColor)
|
DropdownList |
setColorValue(int theColor)
|
DropdownList |
setHeight(int theHeight)
|
DropdownList |
setIndex(int theIndex)
|
DropdownList |
setItemHeight(int theHeight)
|
DropdownList |
setListBoxItems(java.lang.String[][] l)
|
DropdownList |
setScrollbarVisible(boolean theValue)
|
DropdownList |
setSize(int theWidth,
int theHeight)
|
DropdownList |
setValue(float theValue)
|
DropdownList |
setWidth(int theWidth)
|
DropdownList |
showScrollbar()
|
DropdownList |
toUpperCase(boolean theFlag)
|
DropdownList |
updateListBoxItems()
|
| Methods inherited from class controlP5.ControlGroup |
|---|
activateEvent, addCloseButton, addListener, controlEvent, getBackgroundHeight, getBarHeight, getInfo, hideBar, isBarVisible, listenerSize, mousePressed, removeCloseButton, removeListener, setBackgroundColor, setBackgroundHeight, setBarHeight, showBar, stringValue, toString, updateInternalEvents |
| Methods inherited from class controlP5.ControllerGroup |
|---|
add, addCanvas, addDrawable, bringToFront, bringToFront, close, disableCollapse, enableCollapse, getAbsolutePosition, getAddress, getArrayValue, getCaptionLabel, getColor, getController, getHeight, getId, getName, getPosition, getProperty, getProperty, getStringValue, getTab, getValue, getValueLabel, getWidth, getWindow, hide, isCollapse, isMouseOver, isMoveable, isOpen, isUpdate, isVisible, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, open, registerProperty, registerProperty, remove, remove, remove, removeCanvas, removeProperty, removeProperty, setAddress, setArrayValue, setGroup, setGroup, setId, setLabel, setMouseOver, setMoveable, setOpen, setPosition, setPosition, setStringValue, setTab, setTab, setTab, setUpdate, setVisible, show, updateAbsolutePosition |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface controlP5.ControllerInterface |
|---|
continuousUpdateEvents, draw, getParent, getPickingColor, init, keyEvent, parent, setAbsolutePosition, setMousePressed, update, updateEvents |
| Method Detail |
|---|
public DropdownList actAsPulldownMenu(boolean theValue)
public ListBoxItem addItem(java.lang.String theName,
int theValue)
theName - StringtheValue - intcontrolP5.ListBox#removeItem(String,int)public DropdownList addItems(java.util.List theItems)
public DropdownList addItems(java.util.List theItems,
int theOffset)
public DropdownList addItems(java.lang.String[] theItems)
theItems - public void beginItems()
public DropdownList clear()
public void endItems()
public ListBoxItem getItem(Controller theButton)
theButton -
public ListBoxItem getItem(int theIndex)
theIndex -
public ListBoxItem getItem(java.lang.String theItemName)
theItemName -
public java.lang.String[][] getListBoxItems()
public float getScrollPosition()
public DropdownList hideScrollbar()
public boolean isScrollable()
public boolean isScrollbarEnabled()
public DropdownList removeItem(java.lang.String theItemName)
theItemName - StringListBox.addItem(String,int)public DropdownList scroll(float theValue)
public void scrolled(int theStep)
public DropdownList setColor(CColor theColor)
setColor in interface ControllerInterfacesetColor in class ControllerGrouppublic DropdownList setColorActive(int theColor)
setColorActive in interface ControllerInterfacesetColorActive in class ControllerGrouppublic DropdownList setColorBackground(int theColor)
setColorBackground in interface ControllerInterfacesetColorBackground in class ControllerGrouppublic DropdownList setColorForeground(int theColor)
setColorForeground in interface ControllerInterfacesetColorForeground in class ControllerGrouppublic DropdownList setColorLabel(int theColor)
setColorLabel in interface ControllerInterfacesetColorLabel in class ControllerGrouppublic DropdownList setColorValue(int theColor)
setColorValue in interface ControllerInterfacesetColorValue in class ControllerGrouppublic DropdownList setHeight(int theHeight)
setHeight in class ControllerGrouppublic DropdownList setIndex(int theIndex)
public DropdownList setItemHeight(int theHeight)
public DropdownList setListBoxItems(java.lang.String[][] l)
public DropdownList setScrollbarVisible(boolean theValue)
public DropdownList setSize(int theWidth,
int theHeight)
public DropdownList setValue(float theValue)
ControllerGroup
setValue in interface ControllerInterfacesetValue in class ControllerGrouppublic DropdownList setWidth(int theWidth)
setWidth in class ControllerGrouppublic DropdownList showScrollbar()
public DropdownList toUpperCase(boolean theFlag)
public DropdownList updateListBoxItems()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||