|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectcontrolP5.ControllerGroup
controlP5.ControlGroup
controlP5.ListBox
public class ListBox
Method Summary | |
---|---|
void |
addItem(java.lang.String theName,
int theValue)
add an item to the scrollList. |
void |
addToXMLElement(ControlP5XMLElement theElement)
|
void |
controlEvent(ControlEvent theEvent)
ControlListener is an interface that can be implemented by a custom class. |
void |
hideScrollbar()
|
boolean |
isScrollbarVisible()
|
void |
removeItem(java.lang.String theItemName)
remove an item from the scroll list. |
void |
scroll(float theValue)
scroll the scrollList remotely. |
void |
setHeight(int theHeight)
|
void |
setItemHeight(int theHeight)
|
void |
setWidth(int theWidth)
|
void |
showScrollbar()
|
Methods inherited from class controlP5.ControlGroup |
---|
activateEvent, addCloseButton, arrayValue, getBackgroundHeight, hideBar, isBarVisible, mousePressed, removeCloseButton, setBackgroundColor, setBackgroundHeight, setBarHeight, showBar, stringValue, value |
Methods inherited from class controlP5.ControllerGroup |
---|
absolutePosition, add, addCanvas, addDrawable, captionLabel, close, color, continuousUpdateEvents, controller, draw, getAsXML, getColor, getTab, getWindow, hide, id, init, isMoveable, isOpen, isUpdate, isVisible, isXMLsavable, keyEvent, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, moveTo, name, open, position, remove, remove, remove, removeCanvas, setColorActive, setColorBackground, setColorForeground, setColorLabel, setColorValue, setGroup, setGroup, setId, setLabel, setMousePressed, setMoveable, setOpen, setPosition, setTab, setTab, setTab, setUpdate, setVisible, show, update, updateAbsolutePosition, updateEvents, updateInternalEvents, valueLabel |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void hideScrollbar()
public void showScrollbar()
public boolean isScrollbarVisible()
public void scroll(float theValue)
theValue
- public void setItemHeight(int theHeight)
public void setHeight(int theHeight)
public void setWidth(int theWidth)
public void addItem(java.lang.String theName, int theValue)
theName
- StringtheValue
- intpublic void removeItem(java.lang.String theItemName)
theItemName
- Stringpublic void controlEvent(ControlEvent theEvent)
ControlListener
controlEvent
in interface ControlListener
controlEvent
in class ControlGroup
theEvent
- ControlEventpublic void addToXMLElement(ControlP5XMLElement theElement)
addToXMLElement
in interface ControllerInterface
addToXMLElement
in class ControlGroup
theElement
- ControlP5XMLElement
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |