mirror of
https://github.com/sojamo/controlp5
synced 2024-12-23 03:33:49 +01:00
1131 lines
68 KiB
HTML
1131 lines
68 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<!-- NewPage -->
|
|
<html lang="en">
|
|
<head>
|
|
<!-- Generated by javadoc (version 1.7.0_51) on Sun Apr 27 21:39:47 SGT 2014 -->
|
|
<title>DropdownList (Javadocs: controlP5)</title>
|
|
<meta name="date" content="2014-04-27">
|
|
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript"><!--
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
|
parent.document.title="DropdownList (Javadocs: controlP5)";
|
|
}
|
|
//-->
|
|
</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<div class="topNav"><a name="navbar_top">
|
|
<!-- -->
|
|
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../controlP5/package-summary.html">Package</a></li>
|
|
<li class="navBarCell1Rev">Class</li>
|
|
<li><a href="package-tree.html">Tree</a></li>
|
|
<li><a href="../index-all.html">Index</a></li>
|
|
<li><a href="../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li><a href="../controlP5/CP.html" title="class in controlP5"><span class="strong">Prev Class</span></a></li>
|
|
<li><a href="../controlP5/FrameRate.html" title="class in controlP5"><span class="strong">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../index.html?controlP5/DropdownList.html" target="_top">Frames</a></li>
|
|
<li><a href="DropdownList.html" target="_top">No Frames</a></li>
|
|
</ul>
|
|
<ul class="navList" id="allclasses_navbar_top">
|
|
<li><a href="../allclasses-noframe.html">All Classes</a></li>
|
|
</ul>
|
|
<div>
|
|
<script type="text/javascript"><!--
|
|
allClassesLink = document.getElementById("allclasses_navbar_top");
|
|
if(window==top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li>Nested | </li>
|
|
<li>Field | </li>
|
|
<li><a href="#constructor_summary">Constr</a> | </li>
|
|
<li><a href="#method_summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li><a href="#constructor_detail">Constr</a> | </li>
|
|
<li><a href="#method_detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a name="skip-navbar_top">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<div class="header">
|
|
<div class="subTitle">controlP5</div>
|
|
<h2 title="Class DropdownList" class="title">Class DropdownList</h2>
|
|
</div>
|
|
<div class="contentContainer">
|
|
<ul class="inheritance">
|
|
<li>java.lang.Object</li>
|
|
<li>
|
|
<ul class="inheritance">
|
|
<li><a href="../controlP5/ControllerGroup.html" title="class in controlP5">controlP5.ControllerGroup</a><T></li>
|
|
<li>
|
|
<ul class="inheritance">
|
|
<li><a href="../controlP5/ControlGroup.html" title="class in controlP5">controlP5.ControlGroup</a><<a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a>></li>
|
|
<li>
|
|
<ul class="inheritance">
|
|
<li>controlP5.DropdownList</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<div class="description">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<dl>
|
|
<dt>All Implemented Interfaces:</dt>
|
|
<dd><a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><<a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a>>, <a href="../controlP5/ControlListener.html" title="interface in controlP5">ControlListener</a>, <a href="../controlP5/ControlP5Constants.html" title="interface in controlP5">ControlP5Constants</a></dd>
|
|
</dl>
|
|
<hr>
|
|
<br>
|
|
<pre>public class <span class="strong">DropdownList</span>
|
|
extends <a href="../controlP5/ControlGroup.html" title="class in controlP5">ControlGroup</a><<a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a>></pre>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="summary">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- =========== FIELD SUMMARY =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="field_summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Field Summary</h3>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="fields_inherited_from_class_controlP5.ControlP5Constants">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Fields inherited from interface controlP5.<a href="../controlP5/ControlP5Constants.html" title="interface in controlP5">ControlP5Constants</a></h3>
|
|
<code><a href="../controlP5/ControlP5Constants.html#acceptClassList">acceptClassList</a>, <a href="../controlP5/ControlP5Constants.html#ACTION_BROADCAST">ACTION_BROADCAST</a>, <a href="../controlP5/ControlP5Constants.html#ACTION_CLICK">ACTION_CLICK</a>, <a href="../controlP5/ControlP5Constants.html#ACTION_DRAG">ACTION_DRAG</a>, <a href="../controlP5/ControlP5Constants.html#ACTION_ENTER">ACTION_ENTER</a>, <a href="../controlP5/ControlP5Constants.html#ACTION_EXIT">ACTION_EXIT</a>, <a href="../controlP5/ControlP5Constants.html#ACTION_LEAVE">ACTION_LEAVE</a>, <a href="../controlP5/ControlP5Constants.html#ACTION_MOVE">ACTION_MOVE</a>, <a href="../controlP5/ControlP5Constants.html#ACTION_PRESS">ACTION_PRESS</a>, <a href="../controlP5/ControlP5Constants.html#ACTION_PRESSED">ACTION_PRESSED</a>, <a href="../controlP5/ControlP5Constants.html#ACTION_RELEASE">ACTION_RELEASE</a>, <a href="../controlP5/ControlP5Constants.html#ACTION_RELEASED">ACTION_RELEASED</a>, <a href="../controlP5/ControlP5Constants.html#ACTION_RELEASEDOUTSIDE">ACTION_RELEASEDOUTSIDE</a>, <a href="../controlP5/ControlP5Constants.html#ACTION_WHEEL">ACTION_WHEEL</a>, <a href="../controlP5/ControlP5Constants.html#ACTIVE">ACTIVE</a>, <a href="../controlP5/ControlP5Constants.html#ALL">ALL</a>, <a href="../controlP5/ControlP5Constants.html#ALT">ALT</a>, <a href="../controlP5/ControlP5Constants.html#AQUA">AQUA</a>, <a href="../controlP5/ControlP5Constants.html#ARC">ARC</a>, <a href="../controlP5/ControlP5Constants.html#ARRAY">ARRAY</a>, <a href="../controlP5/ControlP5Constants.html#BACKSPACE">BACKSPACE</a>, <a href="../controlP5/ControlP5Constants.html#BASELINE">BASELINE</a>, <a href="../controlP5/ControlP5Constants.html#BITFONT">BITFONT</a>, <a href="../controlP5/ControlP5Constants.html#BLACK">BLACK</a>, <a href="../controlP5/ControlP5Constants.html#BLUE">BLUE</a>, <a href="../controlP5/ControlP5Constants.html#BOOLEAN">BOOLEAN</a>, <a href="../controlP5/ControlP5Constants.html#BOTTOM">BOTTOM</a>, <a href="../controlP5/ControlP5Constants.html#BOTTOM_OUTSIDE">BOTTOM_OUTSIDE</a>, <a href="../controlP5/ControlP5Constants.html#CAPTIONLABEL">CAPTIONLABEL</a>, <a href="../controlP5/ControlP5Constants.html#CENTER">CENTER</a>, <a href="../controlP5/ControlP5Constants.html#CHECKBOX">CHECKBOX</a>, <a href="../controlP5/ControlP5Constants.html#COMMANDKEY">COMMANDKEY</a>, <a href="../controlP5/ControlP5Constants.html#CONTROL">CONTROL</a>, <a href="../controlP5/ControlP5Constants.html#controlEventClass">controlEventClass</a>, <a href="../controlP5/ControlP5Constants.html#CUSTOM">CUSTOM</a>, <a href="../controlP5/ControlP5Constants.html#DECREASE">DECREASE</a>, <a href="../controlP5/ControlP5Constants.html#DEFAULT">DEFAULT</a>, <a href="../controlP5/ControlP5Constants.html#DELETE">DELETE</a>, <a href="../controlP5/ControlP5Constants.html#DONE">DONE</a>, <a href="../controlP5/ControlP5Constants.html#DOWN">DOWN</a>, <a href="../controlP5/ControlP5Constants.html#DROPDOWN">DROPDOWN</a>, <a href="../controlP5/ControlP5Constants.html#ELLIPSE">ELLIPSE</a>, <a href="../controlP5/ControlP5Constants.html#ENTER">ENTER</a>, <a href="../controlP5/ControlP5Constants.html#ESCAPE">ESCAPE</a>, <a href="../controlP5/ControlP5Constants.html#EVENT">EVENT</a>, <a href="../controlP5/ControlP5Constants.html#eventMethod">eventMethod</a>, <a href="../controlP5/ControlP5Constants.html#FADEIN">FADEIN</a>, <a href="../controlP5/ControlP5Constants.html#FADEOUT">FADEOUT</a>, <a href="../controlP5/ControlP5Constants.html#FIELD">FIELD</a>, <a href="../controlP5/ControlP5Constants.html#FLOAT">FLOAT</a>, <a href="../controlP5/ControlP5Constants.html#FUCHSIA">FUCHSIA</a>, <a href="../controlP5/ControlP5Constants.html#GRAY">GRAY</a>, <a href="../controlP5/ControlP5Constants.html#GREEN">GREEN</a>, <a href="../controlP5/ControlP5Constants.html#grixel">grixel</a>, <a href="../controlP5/ControlP5Constants.html#HALF_PI">HALF_PI</a>, <a href="../controlP5/ControlP5Constants.html#HIDE">HIDE</a>, <a href="../controlP5/ControlP5Constants.html#HIGHLIGHT">HIGHLIGHT</a>, <a href="../controlP5/ControlP5Constants.html#HORIZONTAL">HORIZONTAL</a>, <a href="../controlP5/ControlP5Constants.html#IDLE">IDLE</a>, <a href="../controlP5/ControlP5Constants.html#IMAGE">IMAGE</a>, <a href="../controlP5/ControlP5Constants.html#INACTIVE">INACTIVE</a>, <a href="../controlP5/ControlP5Constants.html#INCREASE">INCREASE</a>, <a href="../controlP5/ControlP5Constants.html#INTEGER">INTEGER</a>, <a href="../controlP5/ControlP5Constants.html#INVALID">INVALID</a>, <a href="../controlP5/ControlP5Constants.html#J2D">J2D</a>, <a href="../controlP5/ControlP5Constants.html#KEYCONTROL">KEYCONTROL</a>, <a href="../controlP5/ControlP5Constants.html#LEFT">LEFT</a>, <a href="../controlP5/ControlP5Constants.html#LEFT_OUTSIDE">LEFT_OUTSIDE</a>, <a href="../controlP5/ControlP5Constants.html#LIME">LIME</a>, <a href="../controlP5/ControlP5Constants.html#LINE">LINE</a>, <a href="../controlP5/ControlP5Constants.html#LIST">LIST</a>, <a href="../controlP5/ControlP5Constants.html#LOAD">LOAD</a>, <a href="../controlP5/ControlP5Constants.html#MAROON">MAROON</a>, <a href="../controlP5/ControlP5Constants.html#MENU">MENU</a>, <a href="../controlP5/ControlP5Constants.html#METHOD">METHOD</a>, <a href="../controlP5/ControlP5Constants.html#MOVE">MOVE</a>, <a href="../controlP5/ControlP5Constants.html#MULTI">MULTI</a>, <a href="../controlP5/ControlP5Constants.html#MULTIPLES">MULTIPLES</a>, <a href="../controlP5/ControlP5Constants.html#NAVY">NAVY</a>, <a href="../controlP5/ControlP5Constants.html#OLIVE">OLIVE</a>, <a href="../controlP5/ControlP5Constants.html#ORANGE">ORANGE</a>, <a href="../controlP5/ControlP5Constants.html#OVER">OVER</a>, <a href="../controlP5/ControlP5Constants.html#P2D">P2D</a>, <a href="../controlP5/ControlP5Constants.html#P3D">P3D</a>, <a href="../controlP5/ControlP5Constants.html#PI">PI</a>, <a href="../controlP5/ControlP5Constants.html#PRESSED">PRESSED</a>, <a href="../controlP5/ControlP5Constants.html#PRINT">PRINT</a>, <a href="../controlP5/ControlP5Constants.html#PURPLE">PURPLE</a>, <a href="../controlP5/ControlP5Constants.html#RED">RED</a>, <a href="../controlP5/ControlP5Constants.html#RELEASE">RELEASE</a>, <a href="../controlP5/ControlP5Constants.html#RESET">RESET</a>, <a href="../controlP5/ControlP5Constants.html#RIGHT">RIGHT</a>, <a href="../controlP5/ControlP5Constants.html#RIGHT_OUTSIDE">RIGHT_OUTSIDE</a>, <a href="../controlP5/ControlP5Constants.html#SAVE">SAVE</a>, <a href="../controlP5/ControlP5Constants.html#SHIFT">SHIFT</a>, <a href="../controlP5/ControlP5Constants.html#SILVER">SILVER</a>, <a href="../controlP5/ControlP5Constants.html#SINGLE">SINGLE</a>, <a href="../controlP5/ControlP5Constants.html#SINGLE_COLUMN">SINGLE_COLUMN</a>, <a href="../controlP5/ControlP5Constants.html#SINGLE_ROW">SINGLE_ROW</a>, <a href="../controlP5/ControlP5Constants.html#SPRITE">SPRITE</a>, <a href="../controlP5/ControlP5Constants.html#standard56">standard56</a>, <a href="../controlP5/ControlP5Constants.html#standard58">standard58</a>, <a href="../controlP5/ControlP5Constants.html#STRING">STRING</a>, <a href="../controlP5/ControlP5Constants.html#SWITCH">SWITCH</a>, <a href="../controlP5/ControlP5Constants.html#SWITCH_BACK">SWITCH_BACK</a>, <a href="../controlP5/ControlP5Constants.html#SWITCH_FORE">SWITCH_FORE</a>, <a href="../controlP5/ControlP5Constants.html#synt24">synt24</a>, <a href="../controlP5/ControlP5Constants.html#TAB">TAB</a>, <a href="../controlP5/ControlP5Constants.html#TEAL">TEAL</a>, <a href="../controlP5/ControlP5Constants.html#THEME_A">THEME_A</a>, <a href="../controlP5/ControlP5Constants.html#THEME_CP52014">THEME_CP52014</a>, <a href="../controlP5/ControlP5Constants.html#THEME_CP5BLUE">THEME_CP5BLUE</a>, <a href="../controlP5/ControlP5Constants.html#THEME_RED">THEME_RED</a>, <a href="../controlP5/ControlP5Constants.html#THEME_RETRO">THEME_RETRO</a>, <a href="../controlP5/ControlP5Constants.html#THEME_WHITE">THEME_WHITE</a>, <a href="../controlP5/ControlP5Constants.html#TOP">TOP</a>, <a href="../controlP5/ControlP5Constants.html#TOP_OUTSIDE">TOP_OUTSIDE</a>, <a href="../controlP5/ControlP5Constants.html#TRANSITION_WAIT_FADEIN">TRANSITION_WAIT_FADEIN</a>, <a href="../controlP5/ControlP5Constants.html#TREE">TREE</a>, <a href="../controlP5/ControlP5Constants.html#TWO_PI">TWO_PI</a>, <a href="../controlP5/ControlP5Constants.html#UP">UP</a>, <a href="../controlP5/ControlP5Constants.html#VALUELABEL">VALUELABEL</a>, <a href="../controlP5/ControlP5Constants.html#VERBOSE">VERBOSE</a>, <a href="../controlP5/ControlP5Constants.html#VERTICAL">VERTICAL</a>, <a href="../controlP5/ControlP5Constants.html#WAIT">WAIT</a>, <a href="../controlP5/ControlP5Constants.html#WHITE">WHITE</a>, <a href="../controlP5/ControlP5Constants.html#YELLOW">YELLOW</a></code></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="constructor_summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Constructor Summary</h3>
|
|
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
|
|
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colOne" scope="col">Constructor and Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colOne"><code><strong><a href="../controlP5/DropdownList.html#DropdownList(controlP5.ControlP5, java.lang.String)">DropdownList</a></strong>(<a href="../controlP5/ControlP5.html" title="class in controlP5">ControlP5</a> theControlP5,
|
|
java.lang.String theName)</code>
|
|
<div class="block">Convenience constructor to extend DropdownList.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method_summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Summary</h3>
|
|
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
|
|
<caption><span>Methods</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colLast" scope="col">Method and Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/DropdownList.html#actAsPulldownMenu(boolean)">actAsPulldownMenu</a></strong>(boolean theValue)</code>
|
|
<div class="block">Enables a ListBox to act as a pulldown menu.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ListBoxItem.html" title="class in controlP5">ListBoxItem</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/DropdownList.html#addItem(java.lang.String, int)">addItem</a></strong>(java.lang.String theName,
|
|
int theValue)</code>
|
|
<div class="block">Adds an item to the ListBox.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/DropdownList.html#addItems(java.util.List)">addItems</a></strong>(java.util.List<?> theItems)</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/DropdownList.html#addItems(java.util.List, int)">addItems</a></strong>(java.util.List<?> theItems,
|
|
int theOffset)</code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/DropdownList.html#addItems(java.lang.String[])">addItems</a></strong>(java.lang.String[] theItems)</code>
|
|
<div class="block">adds a list of items from a string array.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/DropdownList.html#beginItems()">beginItems</a></strong>()</code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/DropdownList.html#clear()">clear</a></strong>()</code>
|
|
<div class="block">Removes all items from a list box</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/DropdownList.html#controlEvent(controlP5.ControlEvent)">controlEvent</a></strong>(<a href="../controlP5/ControlEvent.html" title="class in controlP5">ControlEvent</a> theEvent)</code>
|
|
<div class="block">controlEvent is called by controlP5's ControlBroadcaster to inform available listeners about
|
|
value changes.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/DropdownList.html#endItems()">endItems</a></strong>()</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ListBoxItem.html" title="class in controlP5">ListBoxItem</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/DropdownList.html#getItem(controlP5.Controller)">getItem</a></strong>(<a href="../controlP5/Controller.html" title="class in controlP5">Controller</a><?> theButton)</code>
|
|
<div class="block">returns a ListBoxItem based on its Button reference.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ListBoxItem.html" title="class in controlP5">ListBoxItem</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/DropdownList.html#getItem(int)">getItem</a></strong>(int theIndex)</code>
|
|
<div class="block">returns a listBoxItem by index in the list of items.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/ListBoxItem.html" title="class in controlP5">ListBoxItem</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/DropdownList.html#getItem(java.lang.String)">getItem</a></strong>(java.lang.String theItemName)</code>
|
|
<div class="block">TODO faulty returns a listBoxItem by name.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>java.lang.String[][]</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/DropdownList.html#getListBoxItems()">getListBoxItems</a></strong>()</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>float</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/DropdownList.html#getScrollPosition()">getScrollPosition</a></strong>()</code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>java.lang.String</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/DropdownList.html#getStringValue()">getStringValue</a></strong>()</code></td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/DropdownList.html#hideScrollbar()">hideScrollbar</a></strong>()</code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/DropdownList.html#isScrollable()">isScrollable</a></strong>()</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/DropdownList.html#isScrollbarEnabled()">isScrollbarEnabled</a></strong>()</code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/DropdownList.html#keyEvent(processing.event.KeyEvent)">keyEvent</a></strong>(processing.event.KeyEvent theEvent)</code>
|
|
<div class="block">Adding key support.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/DropdownList.html#removeItem(java.lang.String)">removeItem</a></strong>(java.lang.String theItemName)</code>
|
|
<div class="block">Removes an item from the ListBox using the unique name of the item given when added to the
|
|
list.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/DropdownList.html#scroll(float)">scroll</a></strong>(float theValue)</code>
|
|
<div class="block">scroll the scrollList remotely.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>void</code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/DropdownList.html#scrolled(int)">scrolled</a></strong>(int theStep)</code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/DropdownList.html#setColor(controlP5.CColor)">setColor</a></strong>(<a href="../controlP5/CColor.html" title="class in controlP5">CColor</a> theColor)</code></td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/DropdownList.html#setColorActive(int)">setColorActive</a></strong>(int theColor)</code></td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/DropdownList.html#setColorBackground(int)">setColorBackground</a></strong>(int theColor)</code></td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/DropdownList.html#setColorForeground(int)">setColorForeground</a></strong>(int theColor)</code></td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/DropdownList.html#setColorLabel(int)">setColorLabel</a></strong>(int theColor)</code></td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/DropdownList.html#setColorValue(int)">setColorValue</a></strong>(int theColor)</code></td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/DropdownList.html#setHeight(int)">setHeight</a></strong>(int theHeight)</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/DropdownList.html#setIndex(int)">setIndex</a></strong>(int theIndex)</code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/DropdownList.html#setItemHeight(int)">setItemHeight</a></strong>(int theHeight)</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/DropdownList.html#setListBoxItems(java.lang.String[][])">setListBoxItems</a></strong>(java.lang.String[][] l)</code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/DropdownList.html#setScrollbarVisible(boolean)">setScrollbarVisible</a></strong>(boolean theValue)</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/DropdownList.html#setScrollbarWidth(int)">setScrollbarWidth</a></strong>(int theWidth)</code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/DropdownList.html#setSize(int, int)">setSize</a></strong>(int theWidth,
|
|
int theHeight)</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/DropdownList.html#setValue(float)">setValue</a></strong>(float theValue)</code></td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/DropdownList.html#setWidth(int)">setWidth</a></strong>(int theWidth)</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/DropdownList.html#showScrollbar()">showScrollbar</a></strong>()</code> </td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/DropdownList.html#toUpperCase(boolean)">toUpperCase</a></strong>(boolean theFlag)</code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/DropdownList.html#updateInternalEvents(processing.core.PApplet)">updateInternalEvents</a></strong>(processing.core.PApplet theApplet)</code>
|
|
<div class="block">a method for putting input events like e.g.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a></code></td>
|
|
<td class="colLast"><code><strong><a href="../controlP5/DropdownList.html#updateListBoxItems()">updateListBoxItems</a></strong>()</code> </td>
|
|
</tr>
|
|
</table>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="methods_inherited_from_class_controlP5.ControlGroup">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Methods inherited from class controlP5.<a href="../controlP5/ControlGroup.html" title="class in controlP5">ControlGroup</a></h3>
|
|
<code><a href="../controlP5/ControlGroup.html#activateEvent(boolean)">activateEvent</a>, <a href="../controlP5/ControlGroup.html#addListener(controlP5.ControlListener)">addListener</a>, <a href="../controlP5/ControlGroup.html#getBackgroundHeight()">getBackgroundHeight</a>, <a href="../controlP5/ControlGroup.html#getBarHeight()">getBarHeight</a>, <a href="../controlP5/ControlGroup.html#getInfo()">getInfo</a>, <a href="../controlP5/ControlGroup.html#listenerSize()">listenerSize</a>, <a href="../controlP5/ControlGroup.html#mousePressed()">mousePressed</a>, <a href="../controlP5/ControlGroup.html#removeListener(controlP5.ControlListener)">removeListener</a>, <a href="../controlP5/ControlGroup.html#setBackgroundColor(int)">setBackgroundColor</a>, <a href="../controlP5/ControlGroup.html#setBackgroundHeight(int)">setBackgroundHeight</a>, <a href="../controlP5/ControlGroup.html#setBarHeight(int)">setBarHeight</a>, <a href="../controlP5/ControlGroup.html#stringValue()">stringValue</a>, <a href="../controlP5/ControlGroup.html#toString()">toString</a></code></li>
|
|
</ul>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="methods_inherited_from_class_controlP5.ControllerGroup">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Methods inherited from class controlP5.<a href="../controlP5/ControllerGroup.html" title="class in controlP5">ControllerGroup</a></h3>
|
|
<code><a href="../controlP5/ControllerGroup.html#absolutePosition()">absolutePosition</a>, <a href="../controlP5/ControllerGroup.html#add(controlP5.ControllerInterface)">add</a>, <a href="../controlP5/ControllerGroup.html#addCanvas(controlP5.Canvas)">addCanvas</a>, <a href="../controlP5/ControllerGroup.html#addCloseButton()">addCloseButton</a>, <a href="../controlP5/ControllerGroup.html#addDrawable(controlP5.CDrawable)">addDrawable</a>, <a href="../controlP5/ControllerGroup.html#arrayValue()">arrayValue</a>, <a href="../controlP5/ControllerGroup.html#bringToFront()">bringToFront</a>, <a href="../controlP5/ControllerGroup.html#bringToFront(controlP5.ControllerInterface)">bringToFront</a>, <a href="../controlP5/ControllerGroup.html#close()">close</a>, <a href="../controlP5/ControllerGroup.html#color()">color</a>, <a href="../controlP5/ControllerGroup.html#continuousUpdateEvents()">continuousUpdateEvents</a>, <a href="../controlP5/ControllerGroup.html#controller(java.lang.String)">controller</a>, <a href="../controlP5/ControllerGroup.html#disableCollapse()">disableCollapse</a>, <a href="../controlP5/ControllerGroup.html#draw(processing.core.PGraphics)">draw</a>, <a href="../controlP5/ControllerGroup.html#enableCollapse()">enableCollapse</a>, <a href="../controlP5/ControllerGroup.html#getAbsolutePosition()">getAbsolutePosition</a>, <a href="../controlP5/ControllerGroup.html#getAddress()">getAddress</a>, <a href="../controlP5/ControllerGroup.html#getArrayValue()">getArrayValue</a>, <a href="../controlP5/ControllerGroup.html#getArrayValue(int)">getArrayValue</a>, <a href="../controlP5/ControllerGroup.html#getCaptionLabel()">getCaptionLabel</a>, <a href="../controlP5/ControllerGroup.html#getColor()">getColor</a>, <a href="../controlP5/ControllerGroup.html#getController(java.lang.String)">getController</a>, <a href="../controlP5/ControllerGroup.html#getHeight()">getHeight</a>, <a href="../controlP5/ControllerGroup.html#getId()">getId</a>, <a href="../controlP5/ControllerGroup.html#getName()">getName</a>, <a href="../controlP5/ControllerGroup.html#getParent()">getParent</a>, <a href="../controlP5/ControllerGroup.html#getPickingColor()">getPickingColor</a>, <a href="../controlP5/ControllerGroup.html#getPosition()">getPosition</a>, <a href="../controlP5/ControllerGroup.html#getProperty(java.lang.String)">getProperty</a>, <a href="../controlP5/ControllerGroup.html#getProperty(java.lang.String, java.lang.String)">getProperty</a>, <a href="../controlP5/ControllerGroup.html#getTab()">getTab</a>, <a href="../controlP5/ControllerGroup.html#getValue()">getValue</a>, <a href="../controlP5/ControllerGroup.html#getValueLabel()">getValueLabel</a>, <a href="../controlP5/ControllerGroup.html#getWidth()">getWidth</a>, <a href="../controlP5/ControllerGroup.html#getWindow()">getWindow</a>, <a href="../controlP5/ControllerGroup.html#hide()">hide</a>, <a href="../controlP5/ControllerGroup.html#hideArrow()">hideArrow</a>, <a href="../controlP5/ControllerGroup.html#hideBar()">hideBar</a>, <a href="../controlP5/ControllerGroup.html#id()">id</a>, <a href="../controlP5/ControllerGroup.html#init()">init</a>, <a href="../controlP5/ControllerGroup.html#isBarVisible()">isBarVisible</a>, <a href="../controlP5/ControllerGroup.html#isCollapse()">isCollapse</a>, <a href="../controlP5/ControllerGroup.html#isMouseOver()">isMouseOver</a>, <a href="../controlP5/ControllerGroup.html#isMoveable()">isMoveable</a>, <a href="../controlP5/ControllerGroup.html#isOpen()">isOpen</a>, <a href="../controlP5/ControllerGroup.html#isUpdate()">isUpdate</a>, <a href="../controlP5/ControllerGroup.html#isVisible()">isVisible</a>, <a href="../controlP5/ControllerGroup.html#moveTo(controlP5.ControllerGroup)">moveTo</a>, <a href="../controlP5/ControllerGroup.html#moveTo(controlP5.ControllerGroup, controlP5.Tab, controlP5.ControlWindow)">moveTo</a>, <a href="../controlP5/ControllerGroup.html#moveTo(controlP5.ControlWindow)">moveTo</a>, <a href="../controlP5/ControllerGroup.html#moveTo(controlP5.ControlWindow, java.lang.String)">moveTo</a>, <a href="../controlP5/ControllerGroup.html#moveTo(processing.core.PApplet)">moveTo</a>, <a href="../controlP5/ControllerGroup.html#moveTo(java.lang.String)">moveTo</a>, <a href="../controlP5/ControllerGroup.html#moveTo(java.lang.String, controlP5.ControlWindow)">moveTo</a>, <a href="../controlP5/ControllerGroup.html#moveTo(controlP5.Tab)">moveTo</a>, <a href="../controlP5/ControllerGroup.html#moveTo(controlP5.Tab, controlP5.ControlWindow)">moveTo</a>, <a href="../controlP5/ControllerGroup.html#name()">name</a>, <a href="../controlP5/ControllerGroup.html#open()">open</a>, <a href="../controlP5/ControllerGroup.html#parent()">parent</a>, <a href="../controlP5/ControllerGroup.html#position()">position</a>, <a href="../controlP5/ControllerGroup.html#registerProperty(java.lang.String)">registerProperty</a>, <a href="../controlP5/ControllerGroup.html#registerProperty(java.lang.String, java.lang.String)">registerProperty</a>, <a href="../controlP5/ControllerGroup.html#remove()">remove</a>, <a href="../controlP5/ControllerGroup.html#remove(controlP5.CDrawable)">remove</a>, <a href="../controlP5/ControllerGroup.html#remove(controlP5.ControllerInterface)">remove</a>, <a href="../controlP5/ControllerGroup.html#removeCanvas(controlP5.Canvas)">removeCanvas</a>, <a href="../controlP5/ControllerGroup.html#removeCloseButton()">removeCloseButton</a>, <a href="../controlP5/ControllerGroup.html#removeProperty(java.lang.String)">removeProperty</a>, <a href="../controlP5/ControllerGroup.html#removeProperty(java.lang.String, java.lang.String)">removeProperty</a>, <a href="../controlP5/ControllerGroup.html#setAbsolutePosition(processing.core.PVector)">setAbsolutePosition</a>, <a href="../controlP5/ControllerGroup.html#setAddress(java.lang.String)">setAddress</a>, <a href="../controlP5/ControllerGroup.html#setArrayValue(float[])">setArrayValue</a>, <a href="../controlP5/ControllerGroup.html#setArrayValue(int, float)">setArrayValue</a>, <a href="../controlP5/ControllerGroup.html#setCaptionLabel(java.lang.String)">setCaptionLabel</a>, <a href="../controlP5/ControllerGroup.html#setGroup(controlP5.ControllerGroup)">setGroup</a>, <a href="../controlP5/ControllerGroup.html#setGroup(java.lang.String)">setGroup</a>, <a href="../controlP5/ControllerGroup.html#setId(int)">setId</a>, <a href="../controlP5/ControllerGroup.html#setLabel(java.lang.String)">setLabel</a>, <a href="../controlP5/ControllerGroup.html#setMouseOver(boolean)">setMouseOver</a>, <a href="../controlP5/ControllerGroup.html#setMousePressed(boolean)">setMousePressed</a>, <a href="../controlP5/ControllerGroup.html#setMoveable(boolean)">setMoveable</a>, <a href="../controlP5/ControllerGroup.html#setOpen(boolean)">setOpen</a>, <a href="../controlP5/ControllerGroup.html#setPosition(float, float)">setPosition</a>, <a href="../controlP5/ControllerGroup.html#setPosition(processing.core.PVector)">setPosition</a>, <a href="../controlP5/ControllerGroup.html#setStringValue(java.lang.String)">setStringValue</a>, <a href="../controlP5/ControllerGroup.html#setTab(controlP5.ControlWindow, java.lang.String)">setTab</a>, <a href="../controlP5/ControllerGroup.html#setTab(java.lang.String)">setTab</a>, <a href="../controlP5/ControllerGroup.html#setTab(controlP5.Tab)">setTab</a>, <a href="../controlP5/ControllerGroup.html#setTitle(java.lang.String)">setTitle</a>, <a href="../controlP5/ControllerGroup.html#setUpdate(boolean)">setUpdate</a>, <a href="../controlP5/ControllerGroup.html#setVisible(boolean)">setVisible</a>, <a href="../controlP5/ControllerGroup.html#show()">show</a>, <a href="../controlP5/ControllerGroup.html#showArrow()">showArrow</a>, <a href="../controlP5/ControllerGroup.html#showBar()">showBar</a>, <a href="../controlP5/ControllerGroup.html#update()">update</a>, <a href="../controlP5/ControllerGroup.html#updateAbsolutePosition()">updateAbsolutePosition</a>, <a href="../controlP5/ControllerGroup.html#updateEvents()">updateEvents</a>, <a href="../controlP5/ControllerGroup.html#value()">value</a></code></li>
|
|
</ul>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Methods inherited from class java.lang.Object</h3>
|
|
<code>equals, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="details">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="constructor_detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Constructor Detail</h3>
|
|
<a name="DropdownList(controlP5.ControlP5, java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>DropdownList</h4>
|
|
<pre>public DropdownList(<a href="../controlP5/ControlP5.html" title="class in controlP5">ControlP5</a> theControlP5,
|
|
java.lang.String theName)</pre>
|
|
<div class="block">Convenience constructor to extend DropdownList.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theControlP5</code> - </dd><dd><code>theName</code> - </dd><script type="text/javascript">
|
|
<!--
|
|
document.getElementsByTagName('html')[0].className = 'isjs';function toggle(dt) { var display, dd=dt; do{ dd = dd.nextSibling } while(dd.tagName!='DD'); toOpen =!dd.style.display;dd.style.display = toOpen? 'block':''; dt.getElementsByTagName('span')[0].innerHTML = toOpen? '-':'+' ; }
|
|
-->
|
|
</script>
|
|
<div id="test" class="toggleList"><dl><dt onclick="toggle(this);"><span>+</span>Example</dt><dd><code><pre>/**
|
|
* ControlP5 extending Controllers
|
|
*
|
|
* the following example shows how to extend the Controller class to
|
|
* create customizable Controllers. You can either extend the Controller class itself,
|
|
* or any class that extends Controller itself like the Slider, Button, DropdownList, etc.
|
|
*
|
|
* How to:
|
|
*
|
|
* 1) do a super call to the convenience constructor requiring
|
|
* 2 parameter (ControlP5 instance, name)
|
|
*
|
|
* 2) the Controller class has a set of empty methods that allow you to capture
|
|
* inputs from the mouse including
|
|
* onEnter(), onLeave(), onPress(), onRelease(), onClick(), onScroll(int), onDrag()
|
|
* These you can override and include functionality as needed.
|
|
*
|
|
* 3) use method getPointer() to return the local (relative)
|
|
* xy-coordinates of the controller
|
|
*
|
|
* 4) after instantiation custom controllers are treated the same
|
|
* as default controlP5 controllers.
|
|
*
|
|
* by Andreas Schlegel, 2012
|
|
* www.sojamo.de/libraries/controlp5
|
|
*
|
|
*/
|
|
|
|
import controlP5.*;
|
|
|
|
ControlP5 cp5;
|
|
PApplet p;
|
|
|
|
void setup() {
|
|
size(400, 400);
|
|
cp5 = new ControlP5(this);
|
|
|
|
// create 2 groups to show nesting of custom controllers and
|
|
//
|
|
Group g1 = cp5.addGroup("a").setPosition(0,100).setWidth(180);
|
|
Group g2 = cp5.addGroup("b").setPosition(0,10).setWidth(180);
|
|
g2.moveTo(g1);
|
|
|
|
// create 2 custom Controllers from class MyButton
|
|
// MyButton extends Controller and inherits all methods accordingly.
|
|
new MyButton(cp5, "b1").setPosition(0, 0).setSize(180, 200).moveTo(g2);
|
|
new MyButton(cp5, "b2").setPosition(205, 15).setSize(180, 200);
|
|
|
|
}
|
|
|
|
|
|
void draw() {
|
|
background(0);
|
|
}
|
|
|
|
// b1 will be called from Controller b1
|
|
public void b1(float theValue) {
|
|
println("yay button "+theValue);
|
|
}
|
|
|
|
public void controlEvent(ControlEvent theEvent) {
|
|
println("controlEvent : "+theEvent);
|
|
}
|
|
|
|
|
|
// Create a custom Controller, please not that
|
|
// MyButton extends Controller<MyButton>, <MyButton>
|
|
// is an indicator for the super class about the type of
|
|
// custom controller to be created.
|
|
|
|
class MyButton extends Controller<MyButton> {
|
|
|
|
int current = 0xffff0000;
|
|
|
|
float a = 128;
|
|
|
|
float na;
|
|
|
|
int y;
|
|
|
|
// use the convenience constructor of super class Controller
|
|
// MyButton will automatically registered and move to the
|
|
// default controlP5 tab.
|
|
|
|
MyButton(ControlP5 cp5, String theName) {
|
|
super(cp5, theName);
|
|
|
|
// replace the default view with a custom view.
|
|
setView(new ControllerView() {
|
|
public void display(PApplet p, Object b) {
|
|
// draw button background
|
|
na += (a-na) * 0.1;
|
|
p.fill(current,na);
|
|
p.rect(0, 0, getWidth(), getHeight());
|
|
|
|
// draw horizontal line which can be moved on the x-axis
|
|
// using the scroll wheel.
|
|
p.fill(0,255,0);
|
|
p.rect(0,y,width,10);
|
|
|
|
// draw the custom label
|
|
p.fill(128);
|
|
translate(0,getHeight()+14);
|
|
p.text(getName(),0,0);
|
|
p.text(getName(),0,0);
|
|
|
|
}
|
|
}
|
|
);
|
|
}
|
|
|
|
// override various input methods for mouse input control
|
|
void onEnter() {
|
|
cursor(HAND);
|
|
println("enter");
|
|
a = 255;
|
|
}
|
|
|
|
void onScroll(int n) {
|
|
println("scrolling");
|
|
y -= n;
|
|
y = constrain(y,0,getHeight()-10);
|
|
}
|
|
|
|
void onPress() {
|
|
println("press");
|
|
current = 0xffffff00;
|
|
}
|
|
|
|
void onClick() {
|
|
Pointer p1 = getPointer();
|
|
println("clicked at "+p1.x()+", "+p1.y());
|
|
current = 0xffffff00;
|
|
setValue(y);
|
|
}
|
|
|
|
void onRelease() {
|
|
println("release");
|
|
current = 0xffffffff;
|
|
}
|
|
|
|
void onMove() {
|
|
println("moving "+this+" "+_myControlWindow.getMouseOverList());
|
|
}
|
|
|
|
void onDrag() {
|
|
current = 0xff0000ff;
|
|
Pointer p1 = getPointer();
|
|
float dif = dist(p1.px(),p1.py(),p1.x(),p1.y());
|
|
println("dragging at "+p1.x()+", "+p1.y()+" "+dif);
|
|
}
|
|
|
|
void onReleaseOutside() {
|
|
onLeave();
|
|
}
|
|
|
|
void onLeave() {
|
|
println("leave");
|
|
cursor(ARROW);
|
|
a = 128;
|
|
}
|
|
}
|
|
|
|
</pre></code></dd></dl></div></dl>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method_detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Detail</h3>
|
|
<a name="actAsPulldownMenu(boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>actAsPulldownMenu</h4>
|
|
<pre>public <a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a> actAsPulldownMenu(boolean theValue)</pre>
|
|
<div class="block">Enables a ListBox to act as a pulldown menu. Alternatively use class PulldownMenu instead.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="addItem(java.lang.String, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>addItem</h4>
|
|
<pre>public <a href="../controlP5/ListBoxItem.html" title="class in controlP5">ListBoxItem</a> addItem(java.lang.String theName,
|
|
int theValue)</pre>
|
|
<div class="block">Adds an item to the ListBox.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theName</code> - String</dd><dd><code>theValue</code> - int</dd><dt><span class="strong">See Also:</span></dt><dd><code>controlP5.ListBox#removeItem(String,int)</code></dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="addItems(java.util.List)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>addItems</h4>
|
|
<pre>public <a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a> addItems(java.util.List<?> theItems)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="addItems(java.util.List, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>addItems</h4>
|
|
<pre>public <a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a> addItems(java.util.List<?> theItems,
|
|
int theOffset)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="addItems(java.lang.String[])">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>addItems</h4>
|
|
<pre>public <a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a> addItems(java.lang.String[] theItems)</pre>
|
|
<div class="block">adds a list of items from a string array. when iterating through the array, the index of each
|
|
item will be used as value.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theItems</code> - </dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="beginItems()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>beginItems</h4>
|
|
<pre>public void beginItems()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="clear()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>clear</h4>
|
|
<pre>public <a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a> clear()</pre>
|
|
<div class="block">Removes all items from a list box</div>
|
|
</li>
|
|
</ul>
|
|
<a name="controlEvent(controlP5.ControlEvent)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>controlEvent</h4>
|
|
<pre>public void controlEvent(<a href="../controlP5/ControlEvent.html" title="class in controlP5">ControlEvent</a> theEvent)</pre>
|
|
<div class="block"><strong>Description copied from interface: <code><a href="../controlP5/ControlListener.html#controlEvent(controlP5.ControlEvent)">ControlListener</a></code></strong></div>
|
|
<div class="block">controlEvent is called by controlP5's ControlBroadcaster to inform available listeners about
|
|
value changes. Use the CallbackListener to get informed when actions such as pressed,
|
|
release, drag, etc are performed.</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../controlP5/ControlListener.html#controlEvent(controlP5.ControlEvent)">controlEvent</a></code> in interface <code><a href="../controlP5/ControlListener.html" title="interface in controlP5">ControlListener</a></code></dd>
|
|
<dt><strong>Overrides:</strong></dt>
|
|
<dd><code><a href="../controlP5/ControlGroup.html#controlEvent(controlP5.ControlEvent)">controlEvent</a></code> in class <code><a href="../controlP5/ControlGroup.html" title="class in controlP5">ControlGroup</a><<a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a>></code></dd>
|
|
<dt><span class="strong">Parameters:</span></dt><dd><code>theEvent</code> - ControlEvent</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../controlP5/CallbackListener.html" title="interface in controlP5"><code>CallbackListener</code></a>,
|
|
<a href="../controlP5/CallbackEvent.html" title="class in controlP5"><code>CallbackEvent</code></a></dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="endItems()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>endItems</h4>
|
|
<pre>public void endItems()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getItem(controlP5.Controller)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getItem</h4>
|
|
<pre>public <a href="../controlP5/ListBoxItem.html" title="class in controlP5">ListBoxItem</a> getItem(<a href="../controlP5/Controller.html" title="class in controlP5">Controller</a><?> theButton)</pre>
|
|
<div class="block">returns a ListBoxItem based on its Button reference.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theButton</code> - </dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd></dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getItem(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getItem</h4>
|
|
<pre>public <a href="../controlP5/ListBoxItem.html" title="class in controlP5">ListBoxItem</a> getItem(int theIndex)</pre>
|
|
<div class="block">returns a listBoxItem by index in the list of items.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theIndex</code> - </dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd></dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getItem(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getItem</h4>
|
|
<pre>public <a href="../controlP5/ListBoxItem.html" title="class in controlP5">ListBoxItem</a> getItem(java.lang.String theItemName)</pre>
|
|
<div class="block">TODO faulty returns a listBoxItem by name.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theItemName</code> - </dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd></dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="getListBoxItems()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getListBoxItems</h4>
|
|
<pre>public java.lang.String[][] getListBoxItems()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getScrollPosition()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getScrollPosition</h4>
|
|
<pre>public float getScrollPosition()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="getStringValue()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getStringValue</h4>
|
|
<pre>public java.lang.String getStringValue()</pre>
|
|
<div class="block"><strong>Description copied from class: <code><a href="../controlP5/ControllerGroup.html#getStringValue()">ControllerGroup</a></code></strong></div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../controlP5/ControllerInterface.html#getStringValue()">getStringValue</a></code> in interface <code><a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><<a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a>></code></dd>
|
|
<dt><strong>Overrides:</strong></dt>
|
|
<dd><code><a href="../controlP5/ControllerGroup.html#getStringValue()">getStringValue</a></code> in class <code><a href="../controlP5/ControllerGroup.html" title="class in controlP5">ControllerGroup</a><<a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a>></code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="hideScrollbar()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>hideScrollbar</h4>
|
|
<pre>public <a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a> hideScrollbar()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="isScrollable()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isScrollable</h4>
|
|
<pre>public boolean isScrollable()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="isScrollbarEnabled()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>isScrollbarEnabled</h4>
|
|
<pre>public boolean isScrollbarEnabled()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="keyEvent(processing.event.KeyEvent)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>keyEvent</h4>
|
|
<pre>public void keyEvent(processing.event.KeyEvent theEvent)</pre>
|
|
<div class="block">Adding key support. up and down arrows can be used to scroll listbox or dropdownList,up and
|
|
down, use shift+up/down for faster scrolling, use alt+up/down to jump to the top or bottom.</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../controlP5/ControllerInterface.html#keyEvent(processing.event.KeyEvent)">keyEvent</a></code> in interface <code><a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><<a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a>></code></dd>
|
|
<dt><strong>Overrides:</strong></dt>
|
|
<dd><code><a href="../controlP5/ControllerGroup.html#keyEvent(processing.event.KeyEvent)">keyEvent</a></code> in class <code><a href="../controlP5/ControllerGroup.html" title="class in controlP5">ControllerGroup</a><<a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a>></code></dd>
|
|
<dt><span class="strong">Parameters:</span></dt><dd><code>theEvent</code> - KeyEvent</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="removeItem(java.lang.String)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>removeItem</h4>
|
|
<pre>public <a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a> removeItem(java.lang.String theItemName)</pre>
|
|
<div class="block">Removes an item from the ListBox using the unique name of the item given when added to the
|
|
list.</div>
|
|
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>theItemName</code> - String</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../controlP5/ListBox.html#addItem(java.lang.String, int)"><code>ListBox.addItem(String,int)</code></a></dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="scroll(float)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>scroll</h4>
|
|
<pre>public <a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a> scroll(float theValue)</pre>
|
|
<div class="block">scroll the scrollList remotely. values must range between 0 and 1.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="scrolled(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>scrolled</h4>
|
|
<pre>public void scrolled(int theStep)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="setColor(controlP5.CColor)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setColor</h4>
|
|
<pre>public <a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a> setColor(<a href="../controlP5/CColor.html" title="class in controlP5">CColor</a> theColor)</pre>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../controlP5/ControllerInterface.html#setColor(controlP5.CColor)">setColor</a></code> in interface <code><a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><<a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a>></code></dd>
|
|
<dt><strong>Overrides:</strong></dt>
|
|
<dd><code><a href="../controlP5/ControllerGroup.html#setColor(controlP5.CColor)">setColor</a></code> in class <code><a href="../controlP5/ControllerGroup.html" title="class in controlP5">ControllerGroup</a><<a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a>></code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setColorActive(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setColorActive</h4>
|
|
<pre>public <a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a> setColorActive(int theColor)</pre>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../controlP5/ControllerInterface.html#setColorActive(int)">setColorActive</a></code> in interface <code><a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><<a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a>></code></dd>
|
|
<dt><strong>Overrides:</strong></dt>
|
|
<dd><code><a href="../controlP5/ControllerGroup.html#setColorActive(int)">setColorActive</a></code> in class <code><a href="../controlP5/ControllerGroup.html" title="class in controlP5">ControllerGroup</a><<a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a>></code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setColorBackground(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setColorBackground</h4>
|
|
<pre>public <a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a> setColorBackground(int theColor)</pre>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../controlP5/ControllerInterface.html#setColorBackground(int)">setColorBackground</a></code> in interface <code><a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><<a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a>></code></dd>
|
|
<dt><strong>Overrides:</strong></dt>
|
|
<dd><code><a href="../controlP5/ControllerGroup.html#setColorBackground(int)">setColorBackground</a></code> in class <code><a href="../controlP5/ControllerGroup.html" title="class in controlP5">ControllerGroup</a><<a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a>></code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setColorForeground(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setColorForeground</h4>
|
|
<pre>public <a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a> setColorForeground(int theColor)</pre>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../controlP5/ControllerInterface.html#setColorForeground(int)">setColorForeground</a></code> in interface <code><a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><<a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a>></code></dd>
|
|
<dt><strong>Overrides:</strong></dt>
|
|
<dd><code><a href="../controlP5/ControllerGroup.html#setColorForeground(int)">setColorForeground</a></code> in class <code><a href="../controlP5/ControllerGroup.html" title="class in controlP5">ControllerGroup</a><<a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a>></code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setColorLabel(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setColorLabel</h4>
|
|
<pre>public <a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a> setColorLabel(int theColor)</pre>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../controlP5/ControllerInterface.html#setColorLabel(int)">setColorLabel</a></code> in interface <code><a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><<a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a>></code></dd>
|
|
<dt><strong>Overrides:</strong></dt>
|
|
<dd><code><a href="../controlP5/ControllerGroup.html#setColorLabel(int)">setColorLabel</a></code> in class <code><a href="../controlP5/ControllerGroup.html" title="class in controlP5">ControllerGroup</a><<a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a>></code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setColorValue(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setColorValue</h4>
|
|
<pre>public <a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a> setColorValue(int theColor)</pre>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../controlP5/ControllerInterface.html#setColorValue(int)">setColorValue</a></code> in interface <code><a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><<a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a>></code></dd>
|
|
<dt><strong>Overrides:</strong></dt>
|
|
<dd><code><a href="../controlP5/ControllerGroup.html#setColorValue(int)">setColorValue</a></code> in class <code><a href="../controlP5/ControllerGroup.html" title="class in controlP5">ControllerGroup</a><<a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a>></code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setHeight(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setHeight</h4>
|
|
<pre>public <a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a> setHeight(int theHeight)</pre>
|
|
<dl>
|
|
<dt><strong>Overrides:</strong></dt>
|
|
<dd><code><a href="../controlP5/ControllerGroup.html#setHeight(int)">setHeight</a></code> in class <code><a href="../controlP5/ControllerGroup.html" title="class in controlP5">ControllerGroup</a><<a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a>></code></dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>ControllerGroup</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setIndex(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setIndex</h4>
|
|
<pre>public <a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a> setIndex(int theIndex)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="setItemHeight(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setItemHeight</h4>
|
|
<pre>public <a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a> setItemHeight(int theHeight)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="setListBoxItems(java.lang.String[][])">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setListBoxItems</h4>
|
|
<pre>public <a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a> setListBoxItems(java.lang.String[][] l)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="setScrollbarVisible(boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setScrollbarVisible</h4>
|
|
<pre>public <a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a> setScrollbarVisible(boolean theValue)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="setScrollbarWidth(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setScrollbarWidth</h4>
|
|
<pre>public <a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a> setScrollbarWidth(int theWidth)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="setSize(int, int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setSize</h4>
|
|
<pre>public <a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a> setSize(int theWidth,
|
|
int theHeight)</pre>
|
|
<dl>
|
|
<dt><strong>Overrides:</strong></dt>
|
|
<dd><code><a href="../controlP5/ControlGroup.html#setSize(int, int)">setSize</a></code> in class <code><a href="../controlP5/ControlGroup.html" title="class in controlP5">ControlGroup</a><<a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a>></code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setValue(float)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setValue</h4>
|
|
<pre>public <a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a> setValue(float theValue)</pre>
|
|
<div class="block"><strong>Description copied from class: <code><a href="../controlP5/ControllerGroup.html#setValue(float)">ControllerGroup</a></code></strong></div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../controlP5/ControllerInterface.html#setValue(float)">setValue</a></code> in interface <code><a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><<a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a>></code></dd>
|
|
<dt><strong>Overrides:</strong></dt>
|
|
<dd><code><a href="../controlP5/ControllerGroup.html#setValue(float)">setValue</a></code> in class <code><a href="../controlP5/ControllerGroup.html" title="class in controlP5">ControllerGroup</a><<a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a>></code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="setWidth(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setWidth</h4>
|
|
<pre>public <a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a> setWidth(int theWidth)</pre>
|
|
<dl>
|
|
<dt><strong>Overrides:</strong></dt>
|
|
<dd><code><a href="../controlP5/ControllerGroup.html#setWidth(int)">setWidth</a></code> in class <code><a href="../controlP5/ControllerGroup.html" title="class in controlP5">ControllerGroup</a><<a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a>></code></dd>
|
|
<dt><span class="strong">Returns:</span></dt><dd>ControllerGroup</dd></dl>
|
|
</li>
|
|
</ul>
|
|
<a name="showScrollbar()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>showScrollbar</h4>
|
|
<pre>public <a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a> showScrollbar()</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="toUpperCase(boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>toUpperCase</h4>
|
|
<pre>public <a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a> toUpperCase(boolean theFlag)</pre>
|
|
</li>
|
|
</ul>
|
|
<a name="updateInternalEvents(processing.core.PApplet)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>updateInternalEvents</h4>
|
|
<pre>public <a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a> updateInternalEvents(processing.core.PApplet theApplet)</pre>
|
|
<div class="block"><strong>Description copied from interface: <code><a href="../controlP5/ControllerInterface.html#updateInternalEvents(processing.core.PApplet)">ControllerInterface</a></code></strong></div>
|
|
<div class="block">a method for putting input events like e.g. mouse or keyboard events and queries. this has
|
|
been taken out of the draw method for better overwriting capability.</div>
|
|
<dl>
|
|
<dt><strong>Specified by:</strong></dt>
|
|
<dd><code><a href="../controlP5/ControllerInterface.html#updateInternalEvents(processing.core.PApplet)">updateInternalEvents</a></code> in interface <code><a href="../controlP5/ControllerInterface.html" title="interface in controlP5">ControllerInterface</a><<a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a>></code></dd>
|
|
<dt><strong>Overrides:</strong></dt>
|
|
<dd><code><a href="../controlP5/ControlGroup.html#updateInternalEvents(processing.core.PApplet)">updateInternalEvents</a></code> in class <code><a href="../controlP5/ControlGroup.html" title="class in controlP5">ControlGroup</a><<a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a>></code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="updateListBoxItems()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>updateListBoxItems</h4>
|
|
<pre>public <a href="../controlP5/DropdownList.html" title="class in controlP5">DropdownList</a> updateListBoxItems()</pre>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
<div class="bottomNav"><a name="navbar_bottom">
|
|
<!-- -->
|
|
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../controlP5/package-summary.html">Package</a></li>
|
|
<li class="navBarCell1Rev">Class</li>
|
|
<li><a href="package-tree.html">Tree</a></li>
|
|
<li><a href="../index-all.html">Index</a></li>
|
|
<li><a href="../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li><a href="../controlP5/CP.html" title="class in controlP5"><span class="strong">Prev Class</span></a></li>
|
|
<li><a href="../controlP5/FrameRate.html" title="class in controlP5"><span class="strong">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../index.html?controlP5/DropdownList.html" target="_top">Frames</a></li>
|
|
<li><a href="DropdownList.html" target="_top">No Frames</a></li>
|
|
</ul>
|
|
<ul class="navList" id="allclasses_navbar_bottom">
|
|
<li><a href="../allclasses-noframe.html">All Classes</a></li>
|
|
</ul>
|
|
<div>
|
|
<script type="text/javascript"><!--
|
|
allClassesLink = document.getElementById("allclasses_navbar_bottom");
|
|
if(window==top) {
|
|
allClassesLink.style.display = "block";
|
|
}
|
|
else {
|
|
allClassesLink.style.display = "none";
|
|
}
|
|
//-->
|
|
</script>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li>Nested | </li>
|
|
<li>Field | </li>
|
|
<li><a href="#constructor_summary">Constr</a> | </li>
|
|
<li><a href="#method_summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li><a href="#constructor_detail">Constr</a> | </li>
|
|
<li><a href="#method_detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a name="skip-navbar_bottom">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
<p class="legalCopy"><small>processing library controlP5 by Andreas Schlegel. (c) 2006-2014</small></p>
|
|
</body>
|
|
</html>
|