|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.Observable
com.transmote.nest.events.EventDispatcher
com.transmote.nest.NestSprite
com.transmote.nest.ui.NestTextInput
public class NestTextInput
| Field Summary | |
|---|---|
String |
allowedChars
If specified, only the characters in this String can be entered into the textfield. |
String |
defaultText
Text that appears in textfield when no text has yet been entered. |
int |
fillColor_focused
ARGB color of textfield background when focused. |
int |
fillColor_unfocused
ARGB color of textfield background when not focused. |
PFont |
font
PFont used in textfield. |
int |
maxNumChars
Maximum number of characters that can be entered into the textfield. |
NestTextInput |
nextTabGroupInput
The specified NestTextInput will gain focus when TAB is typed into this NestTextInput. |
NestTextInput |
prevTabGroupInput
The specified NestTextInput will gain focus when SHIFT+TAB is typed into this NestTextInput. |
int |
strokeColor_focused
ARGB color of textfield border when focused. |
int |
strokeColor_unfocused
ARGB color of textfield border when not focused. |
int |
strokeWeight_focused
Stroke weight of textfield border when focused. |
int |
strokeWeight_unfocused
Stroke weight of textfield border not focused. |
NestButton |
submitButton
The specified NestButton will be programmatically clicked when ENTER is typed into this NestTextInput. |
int |
textColor_defaultText
ARGB color of default text in textfield. |
int |
textColor_focused
ARGB color of text when textfield is focused. |
int |
textColor_unfocused
ARGB color of text when textfield is not focused. |
| Fields inherited from class com.transmote.nest.NestSprite |
|---|
blendMode, boundsLeft, boundsTop, handleCaptureEvents, height, inFront, inputChildren, inputEnabled, NO_BLEND_MODE, rotationX, rotationY, rotationZ, scaleX, scaleY, scaleZ, visible, width, x, y, z |
| Constructor Summary | |
|---|---|
NestTextInput(float width,
float height,
PFont font,
String defaultText)
|
|
| Method Summary | |
|---|---|
static void |
chainTabInputs(List<NestTextInput> textInputs)
Pass a List of NestTextInputs in order through which they can be tabbed. |
void |
gainFocus()
Programmatically give focus to this NestTextInput instance. |
String |
inputString()
Set the string entered into the textfield. |
void |
inputString(String val)
Get the string entered into the textfield. |
void |
loseFocus()
Programmatically remove focus to this NestTextInput instance. |
String |
toString()
|
| Methods inherited from class com.transmote.nest.NestSprite |
|---|
addChild, addChild, bounds, dispatchEvent, dispose, dispose, getChildAt, getChildIndex, globalToLocal, hitTest, hitTest, isDisposed, localToGlobal, mousePt, mouseX, mouseY, numChildren, pApplet, parent, removeChild, removeChild, renderer, screenPt, screenX, screenY, setBounds, setBounds, setChildIndex, setDraw, setDraw, setRenderer, setRenderer, setUpdate, setUpdate, swapChildren, swapChildren |
| Methods inherited from class com.transmote.nest.events.EventDispatcher |
|---|
addObserver, deleteObserver, dispatchEvent, owner, update |
| Methods inherited from class java.util.Observable |
|---|
countObservers, deleteObservers, hasChanged, notifyObservers, notifyObservers |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int textColor_focused
public int textColor_unfocused
public int textColor_defaultText
public int fillColor_focused
public int fillColor_unfocused
public int strokeColor_focused
public int strokeColor_unfocused
public int strokeWeight_focused
public int strokeWeight_unfocused
public PFont font
public String defaultText
public int maxNumChars
public String allowedChars
public NestTextInput prevTabGroupInput
public NestTextInput nextTabGroupInput
public NestButton submitButton
| Constructor Detail |
|---|
public NestTextInput(float width,
float height,
PFont font,
String defaultText)
| Method Detail |
|---|
public static void chainTabInputs(List<NestTextInput> textInputs)
textInputs - Next/previous tab inputs will be assigned in this order,
also linking the first and last inputs.public String inputString()
public void inputString(String val)
public void gainFocus()
public void loseFocus()
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||