<!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_17) on Sun Nov 03 15:35:41 CET 2013 -->
<title>TextField (libgdx API)
</title>
<meta name="date" content="2013-11-03">
<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="TextField (libgdx API)";
}
//-->
</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="../../../../../../overview-summary.html">Overview
</a></li>
<li><a href="package-summary.html">Package
</a></li>
<li class="navBarCell1Rev">Class
</li>
<li><a href="class-use/TextField.html">Use
</a></li>
<li><a href="package-tree.html">Tree
</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated
</a></li>
<li><a href="../../../../../../index-all.html">Index
</a></li>
<li><a href="../../../../../../help-doc.html">Help
</a></li>
</ul>
<div class="aboutLanguage"><em>
libgdx API
<style>
body, td, th { font-family:Helvetica, Tahoma, Arial, sans-serif; font-size:10pt }
pre, code, tt { font-size:9pt; font-family:Lucida Console, Courier New, sans-serif }
h1, h2, h3, .FrameTitleFont, .FrameHeadingFont, .TableHeadingColor font { font-size:105%; font-weight:bold }
.TableHeadingColor { background:#EEEEFF; }
a { text-decoration:none }
a:hover { text-decoration:underline }
a:link, a:visited { color:blue }
table { border:0px }
.TableRowColor td:first-child { border-left:1px solid black }
.TableRowColor td { border:0px; border-bottom:1px solid black; border-right:1px solid black }
hr { border:0px; border-bottom:1px solid #333366; }
</style>
</em></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextButton.TextButtonStyle.html" title="class in com.badlogic.gdx.scenes.scene2d.ui"><span class="strong">Prev Class
</span></a></li>
<li><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.DefaultOnscreenKeyboard.html" title="class in com.badlogic.gdx.scenes.scene2d.ui"><span class="strong">Next Class
</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?com/badlogic/gdx/scenes/scene2d/ui/TextField.html" target="_top">Frames
</a></li>
<li><a href="TextField.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><a href="#nested_class_summary">Nested
</a> |
</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">com.badlogic.gdx.scenes.scene2d.ui
</div>
<h2 title="Class TextField" class="title">Class TextField
</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object
</li>
<li>
<ul class="inheritance">
<li><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d">com.badlogic.gdx.scenes.scene2d.Actor
</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html" title="class in com.badlogic.gdx.scenes.scene2d.ui">com.badlogic.gdx.scenes.scene2d.ui.Widget
</a></li>
<li>
<ul class="inheritance">
<li>com.badlogic.gdx.scenes.scene2d.ui.TextField
</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="../../../../../../com/badlogic/gdx/scenes/scene2d/utils/Disableable.html" title="interface in com.badlogic.gdx.scenes.scene2d.utils">Disableable
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/utils/Layout.html" title="interface in com.badlogic.gdx.scenes.scene2d.utils">Layout
</a></dd>
</dl>
<hr>
<br>
<pre>public class
<span class="strong">TextField
</span>
extends
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html" title="class in com.badlogic.gdx.scenes.scene2d.ui">Widget
</a>
implements
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/utils/Disableable.html" title="interface in com.badlogic.gdx.scenes.scene2d.utils">Disableable
</a></pre>
<div class="block">A single-line text input field.
<p>
The preferred height of a text field is the height of the
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.TextFieldStyle.html#font"><code>TextField.TextFieldStyle.font
</code></a> and
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.TextFieldStyle.html#background"><code>TextField.TextFieldStyle.background
</code></a>.
The preferred width of a text field is 150, a relatively arbitrary size.
<p>
The text field will copy the currently selected text when ctrl+c is pressed, and paste any text in the clipboard when ctrl+v is
pressed. Clipboard functionality is provided via the
<a href="../../../../../../com/badlogic/gdx/utils/Clipboard.html" title="interface in com.badlogic.gdx.utils"><code>Clipboard
</code></a> interface. Currently there are two standard
implementations, one for the desktop and one for Android. The Android clipboard is a stub, as copy
& pasting on Android is not
supported yet.
<p>
The text field allows you to specify an <a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.OnscreenKeyboard.html" title="interface in com.badlogic.gdx.scenes.scene2d.ui"><code>TextField.OnscreenKeyboard</code></a> for displaying a softkeyboard and piping all key events
generated by the keyboard to the text field. There are two standard implementations, one for the desktop and one for Android.
The desktop keyboard is a stub, as a softkeyboard is not needed on the desktop. The Android <a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.OnscreenKeyboard.html" title="interface in com.badlogic.gdx.scenes.scene2d.ui"><code>TextField.OnscreenKeyboard</code></a>
implementation will bring up the default IME.</div>
<dl><dt><span class="strong">Author:</span></dt>
<dd>mzechner, Nathan Sweet</dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested_class_summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type
</th>
<th class="colLast" scope="col">Class and Description
</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class
</code></td>
<td class="colLast"><code><strong><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.DefaultOnscreenKeyboard.html" title="class in com.badlogic.gdx.scenes.scene2d.ui">TextField.DefaultOnscreenKeyboard
</a></strong></code>
<div class="block">The default
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.OnscreenKeyboard.html" title="interface in com.badlogic.gdx.scenes.scene2d.ui"><code>TextField.OnscreenKeyboard
</code></a> used by all
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html" title="class in com.badlogic.gdx.scenes.scene2d.ui"><code>TextField
</code></a> instances.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static interface
</code></td>
<td class="colLast"><code><strong><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.OnscreenKeyboard.html" title="interface in com.badlogic.gdx.scenes.scene2d.ui">TextField.OnscreenKeyboard
</a></strong></code>
<div class="block">An interface for onscreen keyboards.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static interface
</code></td>
<td class="colLast"><code><strong><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.TextFieldFilter.html" title="interface in com.badlogic.gdx.scenes.scene2d.ui">TextField.TextFieldFilter
</a></strong></code>
<div class="block">Interface for filtering characters entered into the text field.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static interface
</code></td>
<td class="colLast"><code><strong><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.TextFieldListener.html" title="interface in com.badlogic.gdx.scenes.scene2d.ui">TextField.TextFieldListener
</a></strong></code>
<div class="block">Interface for listening to typed characters.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class
</code></td>
<td class="colLast"><code><strong><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.TextFieldStyle.html" title="class in com.badlogic.gdx.scenes.scene2d.ui">TextField.TextFieldStyle
</a></strong></code>
<div class="block">The style for a text field, see
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html" title="class in com.badlogic.gdx.scenes.scene2d.ui"><code>TextField
</code></a>.
</div>
</td>
</tr>
</table>
</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="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html#TextField(java.lang.String, com.badlogic.gdx.scenes.scene2d.ui.Skin)">TextField
</a></strong>(java.lang.String
text,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html" title="class in com.badlogic.gdx.scenes.scene2d.ui">Skin
</a> skin)
</code> </td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html#TextField(java.lang.String, com.badlogic.gdx.scenes.scene2d.ui.Skin, java.lang.String)">TextField
</a></strong>(java.lang.String
text,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html" title="class in com.badlogic.gdx.scenes.scene2d.ui">Skin
</a> skin,
java.lang.String
styleName)
</code> </td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html#TextField(java.lang.String, com.badlogic.gdx.scenes.scene2d.ui.TextField.TextFieldStyle)">TextField
</a></strong>(java.lang.String
text,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.TextFieldStyle.html" title="class in com.badlogic.gdx.scenes.scene2d.ui">TextField.TextFieldStyle
</a> style)
</code> </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>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html#clearSelection()">clearSelection
</a></strong>()
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html#copy()">copy
</a></strong>()
</code>
<div class="block">Copies the contents of this TextField to the
<a href="../../../../../../com/badlogic/gdx/utils/Clipboard.html" title="interface in com.badlogic.gdx.utils"><code>Clipboard
</code></a> implementation set on this TextField.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html#cut()">cut
</a></strong>()
</code>
<div class="block">Copies the selected contents of this TextField to the
<a href="../../../../../../com/badlogic/gdx/utils/Clipboard.html" title="interface in com.badlogic.gdx.utils"><code>Clipboard
</code></a> implementation set on this TextField, then removes
it.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html#draw(com.badlogic.gdx.graphics.g2d.SpriteBatch, float)">draw
</a></strong>(
<a href="../../../../../../com/badlogic/gdx/graphics/g2d/SpriteBatch.html" title="class in com.badlogic.gdx.graphics.g2d">SpriteBatch
</a> batch,
float
parentAlpha)
</code>
<div class="block">If this method is overridden, the super method or
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html#validate()"><code>Widget.validate()
</code></a> should be called to ensure the widget is laid out.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int
</code></td>
<td class="colLast"><code><strong><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html#getCursorPosition()">getCursorPosition
</a></strong>()
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int
</code></td>
<td class="colLast"><code><strong><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html#getMaxLength()">getMaxLength
</a></strong>()
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.String
</code></td>
<td class="colLast"><code><strong><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html#getMessageText()">getMessageText
</a></strong>()
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.OnscreenKeyboard.html" title="interface in com.badlogic.gdx.scenes.scene2d.ui">TextField.OnscreenKeyboard
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html#getOnscreenKeyboard()">getOnscreenKeyboard
</a></strong>()
</code>
<div class="block">Default is an instance of
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.DefaultOnscreenKeyboard.html" title="class in com.badlogic.gdx.scenes.scene2d.ui"><code>TextField.DefaultOnscreenKeyboard
</code></a>.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>float
</code></td>
<td class="colLast"><code><strong><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html#getPrefHeight()">getPrefHeight
</a></strong>()
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>float
</code></td>
<td class="colLast"><code><strong><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html#getPrefWidth()">getPrefWidth
</a></strong>()
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.TextFieldStyle.html" title="class in com.badlogic.gdx.scenes.scene2d.ui">TextField.TextFieldStyle
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html#getStyle()">getStyle
</a></strong>()
</code>
<div class="block">Returns the text field's style.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.String
</code></td>
<td class="colLast"><code><strong><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html#getText()">getText
</a></strong>()
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.TextFieldFilter.html" title="interface in com.badlogic.gdx.scenes.scene2d.ui">TextField.TextFieldFilter
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html#getTextFieldFilter()">getTextFieldFilter
</a></strong>()
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean
</code></td>
<td class="colLast"><code><strong><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html#isDisabled()">isDisabled
</a></strong>()
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean
</code></td>
<td class="colLast"><code><strong><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html#isPasswordMode()">isPasswordMode
</a></strong>()
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html#next(boolean)">next
</a></strong>(boolean
up)
</code>
<div class="block">Focuses the next TextField.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html#selectAll()">selectAll
</a></strong>()
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html#setBlinkTime(float)">setBlinkTime
</a></strong>(float
blinkTime)
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html#setClipboard(com.badlogic.gdx.utils.Clipboard)">setClipboard
</a></strong>(
<a href="../../../../../../com/badlogic/gdx/utils/Clipboard.html" title="interface in com.badlogic.gdx.utils">Clipboard
</a> clipboard)
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html#setCursorPosition(int)">setCursorPosition
</a></strong>(int
cursorPosition)
</code>
<div class="block">Sets the cursor position and clears any selection.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html#setDisabled(boolean)">setDisabled
</a></strong>(boolean
disabled)
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html#setFocusTraversal(boolean)">setFocusTraversal
</a></strong>(boolean
focusTraversal)
</code>
<div class="block">If true (the default), tab/shift+tab will move to the next text field.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html#setMaxLength(int)">setMaxLength
</a></strong>(int
maxLength)
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html#setMessageText(java.lang.String)">setMessageText
</a></strong>(java.lang.String
messageText)
</code>
<div class="block">Sets the text that will be drawn in the text field if no text has been entered.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html#setOnlyFontChars(boolean)">setOnlyFontChars
</a></strong>(boolean
onlyFontChars)
</code>
<div class="block">When false, text set by
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html#setText(java.lang.String)"><code>setText(String)
</code></a> may contain characters not in the font, a space will be displayed instead.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html#setOnscreenKeyboard(com.badlogic.gdx.scenes.scene2d.ui.TextField.OnscreenKeyboard)">setOnscreenKeyboard
</a></strong>(
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.OnscreenKeyboard.html" title="interface in com.badlogic.gdx.scenes.scene2d.ui">TextField.OnscreenKeyboard
</a> keyboard)
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html#setPasswordCharacter(char)">setPasswordCharacter
</a></strong>(char
passwordCharacter)
</code>
<div class="block">Sets the password character for the text field.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html#setPasswordMode(boolean)">setPasswordMode
</a></strong>(boolean
passwordMode)
</code>
<div class="block">If true, the text in this text field will be shown as bullet characters.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html#setRightAligned(boolean)">setRightAligned
</a></strong>(boolean
rightAligned)
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html#setSelection(int, int)">setSelection
</a></strong>(int
selectionStart,
int
selectionEnd)
</code>
<div class="block">Sets the selected text.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html#setStyle(com.badlogic.gdx.scenes.scene2d.ui.TextField.TextFieldStyle)">setStyle
</a></strong>(
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.TextFieldStyle.html" title="class in com.badlogic.gdx.scenes.scene2d.ui">TextField.TextFieldStyle
</a> style)
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html#setText(java.lang.String)">setText
</a></strong>(java.lang.String
text)
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html#setTextFieldFilter(com.badlogic.gdx.scenes.scene2d.ui.TextField.TextFieldFilter)">setTextFieldFilter
</a></strong>(
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.TextFieldFilter.html" title="interface in com.badlogic.gdx.scenes.scene2d.ui">TextField.TextFieldFilter
</a> filter)
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html#setTextFieldListener(com.badlogic.gdx.scenes.scene2d.ui.TextField.TextFieldListener)">setTextFieldListener
</a></strong>(
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.TextFieldListener.html" title="interface in com.badlogic.gdx.scenes.scene2d.ui">TextField.TextFieldListener
</a> listener)
</code> </td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_com.badlogic.gdx.scenes.scene2d.ui.Widget">
<!-- -->
</a>
<h3>Methods inherited from class
com.badlogic.gdx.scenes.scene2d.ui.
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html" title="class in com.badlogic.gdx.scenes.scene2d.ui">Widget
</a></h3>
<code><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html#getMaxHeight()">getMaxHeight
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html#getMaxWidth()">getMaxWidth
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html#getMinHeight()">getMinHeight
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html#getMinWidth()">getMinWidth
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html#invalidate()">invalidate
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html#invalidateHierarchy()">invalidateHierarchy
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html#layout()">layout
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html#needsLayout()">needsLayout
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html#pack()">pack
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html#setFillParent(boolean)">setFillParent
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html#setLayoutEnabled(boolean)">setLayoutEnabled
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html#sizeChanged()">sizeChanged
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html#validate()">validate
</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_com.badlogic.gdx.scenes.scene2d.Actor">
<!-- -->
</a>
<h3>Methods inherited from class
com.badlogic.gdx.scenes.scene2d.
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html" title="class in com.badlogic.gdx.scenes.scene2d">Actor
</a></h3>
<code><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#act(float)">act
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#addAction(com.badlogic.gdx.scenes.scene2d.Action)">addAction
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#addCaptureListener(com.badlogic.gdx.scenes.scene2d.EventListener)">addCaptureListener
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#addListener(com.badlogic.gdx.scenes.scene2d.EventListener)">addListener
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#clear()">clear
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#clearActions()">clearActions
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#clearListeners()">clearListeners
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#clipBegin()">clipBegin
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#clipBegin(float, float, float, float)">clipBegin
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#clipEnd()">clipEnd
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#fire(com.badlogic.gdx.scenes.scene2d.Event)">fire
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getActions()">getActions
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getCaptureListeners()">getCaptureListeners
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getColor()">getColor
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getHeight()">getHeight
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getListeners()">getListeners
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getName()">getName
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getOriginX()">getOriginX
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getOriginY()">getOriginY
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getParent()">getParent
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getRight()">getRight
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getRotation()">getRotation
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getScaleX()">getScaleX
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getScaleY()">getScaleY
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getStage()">getStage
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getTop()">getTop
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getTouchable()">getTouchable
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getWidth()">getWidth
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getX()">getX
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getY()">getY
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#getZIndex()">getZIndex
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#hasParent()">hasParent
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#hit(float, float, boolean)">hit
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#isAscendantOf(com.badlogic.gdx.scenes.scene2d.Actor)">isAscendantOf
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#isDescendantOf(com.badlogic.gdx.scenes.scene2d.Actor)">isDescendantOf
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#isVisible()">isVisible
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#localToAscendantCoordinates(com.badlogic.gdx.scenes.scene2d.Actor, com.badlogic.gdx.math.Vector2)">localToAscendantCoordinates
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#localToParentCoordinates(com.badlogic.gdx.math.Vector2)">localToParentCoordinates
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#localToStageCoordinates(com.badlogic.gdx.math.Vector2)">localToStageCoordinates
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#notify(com.badlogic.gdx.scenes.scene2d.Event, boolean)">notify
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#parentToLocalCoordinates(com.badlogic.gdx.math.Vector2)">parentToLocalCoordinates
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#remove()">remove
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#removeAction(com.badlogic.gdx.scenes.scene2d.Action)">removeAction
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#removeCaptureListener(com.badlogic.gdx.scenes.scene2d.EventListener)">removeCaptureListener
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#removeListener(com.badlogic.gdx.scenes.scene2d.EventListener)">removeListener
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#rotate(float)">rotate
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#scale(float)">scale
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#scale(float, float)">scale
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#screenToLocalCoordinates(com.badlogic.gdx.math.Vector2)">screenToLocalCoordinates
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setBounds(float, float, float, float)">setBounds
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setColor(com.badlogic.gdx.graphics.Color)">setColor
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setColor(float, float, float, float)">setColor
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setHeight(float)">setHeight
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setName(java.lang.String)">setName
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setOrigin(float, float)">setOrigin
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setOriginX(float)">setOriginX
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setOriginY(float)">setOriginY
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setParent(com.badlogic.gdx.scenes.scene2d.Group)">setParent
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setPosition(float, float)">setPosition
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setRotation(float)">setRotation
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setScale(float)">setScale
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setScale(float, float)">setScale
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setScaleX(float)">setScaleX
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setScaleY(float)">setScaleY
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setSize(float, float)">setSize
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setStage(com.badlogic.gdx.scenes.scene2d.Stage)">setStage
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setTouchable(com.badlogic.gdx.scenes.scene2d.Touchable)">setTouchable
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setVisible(boolean)">setVisible
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setWidth(float)">setWidth
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setX(float)">setX
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setY(float)">setY
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#setZIndex(int)">setZIndex
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#size(float)">size
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#size(float, float)">size
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#stageToLocalCoordinates(com.badlogic.gdx.math.Vector2)">stageToLocalCoordinates
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#toBack()">toBack
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#toFront()">toFront
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#toString()">toString
</a>,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/Actor.html#translate(float, float)">translate
</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>clone, equals, finalize, 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="TextField(java.lang.String, com.badlogic.gdx.scenes.scene2d.ui.Skin)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>TextField
</h4>
<pre>public
TextField(java.lang.String
text,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html" title="class in com.badlogic.gdx.scenes.scene2d.ui">Skin
</a> skin)
</pre>
</li>
</ul>
<a name="TextField(java.lang.String, com.badlogic.gdx.scenes.scene2d.ui.Skin, java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>TextField
</h4>
<pre>public
TextField(java.lang.String
text,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Skin.html" title="class in com.badlogic.gdx.scenes.scene2d.ui">Skin
</a> skin,
java.lang.String
styleName)
</pre>
</li>
</ul>
<a name="TextField(java.lang.String, com.badlogic.gdx.scenes.scene2d.ui.TextField.TextFieldStyle)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>TextField
</h4>
<pre>public
TextField(java.lang.String
text,
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.TextFieldStyle.html" title="class in com.badlogic.gdx.scenes.scene2d.ui">TextField.TextFieldStyle
</a> style)
</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail
</h3>
<a name="setMaxLength(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMaxLength
</h4>
<pre>public
void
setMaxLength(int
maxLength)
</pre>
</li>
</ul>
<a name="getMaxLength()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMaxLength
</h4>
<pre>public
int
getMaxLength()
</pre>
</li>
</ul>
<a name="setOnlyFontChars(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setOnlyFontChars
</h4>
<pre>public
void
setOnlyFontChars(boolean
onlyFontChars)
</pre>
<div class="block">When false, text set by
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html#setText(java.lang.String)"><code>setText(String)
</code></a> may contain characters not in the font, a space will be displayed instead.
When true (the default), characters not in the font are stripped by setText. Characters not in the font are always stripped
when typed or pasted.
</div>
</li>
</ul>
<a name="setStyle(com.badlogic.gdx.scenes.scene2d.ui.TextField.TextFieldStyle)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setStyle
</h4>
<pre>public
void
setStyle(
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.TextFieldStyle.html" title="class in com.badlogic.gdx.scenes.scene2d.ui">TextField.TextFieldStyle
</a> style)
</pre>
</li>
</ul>
<a name="setPasswordCharacter(char)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPasswordCharacter
</h4>
<pre>public
void
setPasswordCharacter(char
passwordCharacter)
</pre>
<div class="block">Sets the password character for the text field. The character must be present in the
<a href="../../../../../../com/badlogic/gdx/graphics/g2d/BitmapFont.html" title="class in com.badlogic.gdx.graphics.g2d"><code>BitmapFont
</code></a></div>
</li>
</ul>
<a name="getStyle()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getStyle
</h4>
<pre>public
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.TextFieldStyle.html" title="class in com.badlogic.gdx.scenes.scene2d.ui">TextField.TextFieldStyle
</a> getStyle()
</pre>
<div class="block">Returns the text field's style. Modifying the returned style may not have an effect until
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.html#setStyle(com.badlogic.gdx.scenes.scene2d.ui.TextField.TextFieldStyle)"><code>setStyle(TextFieldStyle)
</code></a>
is called.
</div>
</li>
</ul>
<a name="draw(com.badlogic.gdx.graphics.g2d.SpriteBatch, float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>draw
</h4>
<pre>public
void
draw(
<a href="../../../../../../com/badlogic/gdx/graphics/g2d/SpriteBatch.html" title="class in com.badlogic.gdx.graphics.g2d">SpriteBatch
</a> batch,
float
parentAlpha)
</pre>
<div class="block"><strong>Description copied from class:
<code><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html#draw(com.badlogic.gdx.graphics.g2d.SpriteBatch, float)">Widget
</a></code></strong></div>
<div class="block">If this method is overridden, the super method or
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html#validate()"><code>Widget.validate()
</code></a> should be called to ensure the widget is laid out.
</div>
<dl>
<dt><strong>Overrides:
</strong></dt>
<dd><code><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html#draw(com.badlogic.gdx.graphics.g2d.SpriteBatch, float)">draw
</a></code> in class
<code><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html" title="class in com.badlogic.gdx.scenes.scene2d.ui">Widget
</a></code></dd>
<dd><code>parentAlpha
</code> - Should be multiplied with the actor's alpha, allowing a parent's alpha to affect all children.
</dd></dl>
</li>
</ul>
<a name="copy()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>copy
</h4>
<pre>public
void
copy()
</pre>
<div class="block">Copies the contents of this TextField to the
<a href="../../../../../../com/badlogic/gdx/utils/Clipboard.html" title="interface in com.badlogic.gdx.utils"><code>Clipboard
</code></a> implementation set on this TextField.
</div>
</li>
</ul>
<a name="cut()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>cut
</h4>
<pre>public
void
cut()
</pre>
<div class="block">Copies the selected contents of this TextField to the
<a href="../../../../../../com/badlogic/gdx/utils/Clipboard.html" title="interface in com.badlogic.gdx.utils"><code>Clipboard
</code></a> implementation set on this TextField, then removes
it.
</div>
</li>
</ul>
<a name="next(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>next
</h4>
<pre>public
void
next(boolean
up)
</pre>
<div class="block">Focuses the next TextField. If none is found, the keyboard is hidden. Does nothing if the text field is not in a stage.
</div>
<dl><dt><span class="strong">Parameters:
</span></dt><dd><code>up
</code> - If true, the TextField with the same or next smallest y coordinate is found, else the next highest.
</dd></dl>
</li>
</ul>
<a name="setTextFieldListener(com.badlogic.gdx.scenes.scene2d.ui.TextField.TextFieldListener)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTextFieldListener
</h4>
<pre>public
void
setTextFieldListener(
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.TextFieldListener.html" title="interface in com.badlogic.gdx.scenes.scene2d.ui">TextField.TextFieldListener
</a> listener)
</pre>
<dl><dt><span class="strong">Parameters:
</span></dt><dd><code>listener
</code> - May be null.
</dd></dl>
</li>
</ul>
<a name="setTextFieldFilter(com.badlogic.gdx.scenes.scene2d.ui.TextField.TextFieldFilter)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTextFieldFilter
</h4>
<pre>public
void
setTextFieldFilter(
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.TextFieldFilter.html" title="interface in com.badlogic.gdx.scenes.scene2d.ui">TextField.TextFieldFilter
</a> filter)
</pre>
<dl><dt><span class="strong">Parameters:
</span></dt><dd><code>filter
</code> - May be null.
</dd></dl>
</li>
</ul>
<a name="setFocusTraversal(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFocusTraversal
</h4>
<pre>public
void
setFocusTraversal(boolean
focusTraversal)
</pre>
<div class="block">If true (the default), tab/shift+tab will move to the next text field.
</div>
</li>
</ul>
<a name="getMessageText()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMessageText
</h4>
<pre>public
java.lang.String
getMessageText()
</pre>
<dl><dt><span class="strong">Returns:
</span></dt><dd>May be null.
</dd></dl>
</li>
</ul>
<a name="setMessageText(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMessageText
</h4>
<pre>public
void
setMessageText(java.lang.String
messageText)
</pre>
<div class="block">Sets the text that will be drawn in the text field if no text has been entered.
</div>
<dl><dt><span class="strong">Parameters:
</span></dt><dd><code>messageText
</code> - may be null.
</dd></dl>
</li>
</ul>
<a name="setText(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setText
</h4>
<pre>public
void
setText(java.lang.String
text)
</pre>
</li>
</ul>
<a name="getText()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getText
</h4>
<pre>public
java.lang.String
getText()
</pre>
<dl><dt><span class="strong">Returns:
</span></dt><dd>Never null, might be an empty string.
</dd></dl>
</li>
</ul>
<a name="setSelection(int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setSelection
</h4>
<pre>public
void
setSelection(int
selectionStart,
int
selectionEnd)
</pre>
<div class="block">Sets the selected text.
</div>
</li>
</ul>
<a name="selectAll()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>selectAll
</h4>
<pre>public
void
selectAll()
</pre>
</li>
</ul>
<a name="clearSelection()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clearSelection
</h4>
<pre>public
void
clearSelection()
</pre>
</li>
</ul>
<a name="setCursorPosition(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setCursorPosition
</h4>
<pre>public
void
setCursorPosition(int
cursorPosition)
</pre>
<div class="block">Sets the cursor position and clears any selection.
</div>
</li>
</ul>
<a name="getCursorPosition()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCursorPosition
</h4>
<pre>public
int
getCursorPosition()
</pre>
</li>
</ul>
<a name="getOnscreenKeyboard()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getOnscreenKeyboard
</h4>
<pre>public
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.OnscreenKeyboard.html" title="interface in com.badlogic.gdx.scenes.scene2d.ui">TextField.OnscreenKeyboard
</a> getOnscreenKeyboard()
</pre>
<div class="block">Default is an instance of
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.DefaultOnscreenKeyboard.html" title="class in com.badlogic.gdx.scenes.scene2d.ui"><code>TextField.DefaultOnscreenKeyboard
</code></a>.
</div>
</li>
</ul>
<a name="setOnscreenKeyboard(com.badlogic.gdx.scenes.scene2d.ui.TextField.OnscreenKeyboard)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setOnscreenKeyboard
</h4>
<pre>public
void
setOnscreenKeyboard(
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.OnscreenKeyboard.html" title="interface in com.badlogic.gdx.scenes.scene2d.ui">TextField.OnscreenKeyboard
</a> keyboard)
</pre>
</li>
</ul>
<a name="setClipboard(com.badlogic.gdx.utils.Clipboard)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setClipboard
</h4>
<pre>public
void
setClipboard(
<a href="../../../../../../com/badlogic/gdx/utils/Clipboard.html" title="interface in com.badlogic.gdx.utils">Clipboard
</a> clipboard)
</pre>
</li>
</ul>
<a name="getPrefWidth()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPrefWidth
</h4>
<pre>public
float
getPrefWidth()
</pre>
<dl>
<dt><strong>Specified by:
</strong></dt>
<dd><code><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/utils/Layout.html#getPrefWidth()">getPrefWidth
</a></code> in interface
<code><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/utils/Layout.html" title="interface in com.badlogic.gdx.scenes.scene2d.utils">Layout
</a></code></dd>
<dt><strong>Overrides:
</strong></dt>
<dd><code><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html#getPrefWidth()">getPrefWidth
</a></code> in class
<code><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html" title="class in com.badlogic.gdx.scenes.scene2d.ui">Widget
</a></code></dd>
</dl>
</li>
</ul>
<a name="getPrefHeight()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPrefHeight
</h4>
<pre>public
float
getPrefHeight()
</pre>
<dl>
<dt><strong>Specified by:
</strong></dt>
<dd><code><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/utils/Layout.html#getPrefHeight()">getPrefHeight
</a></code> in interface
<code><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/utils/Layout.html" title="interface in com.badlogic.gdx.scenes.scene2d.utils">Layout
</a></code></dd>
<dt><strong>Overrides:
</strong></dt>
<dd><code><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html#getPrefHeight()">getPrefHeight
</a></code> in class
<code><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/Widget.html" title="class in com.badlogic.gdx.scenes.scene2d.ui">Widget
</a></code></dd>
</dl>
</li>
</ul>
<a name="setRightAligned(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setRightAligned
</h4>
<pre>public
void
setRightAligned(boolean
rightAligned)
</pre>
</li>
</ul>
<a name="setPasswordMode(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPasswordMode
</h4>
<pre>public
void
setPasswordMode(boolean
passwordMode)
</pre>
<div class="block">If true, the text in this text field will be shown as bullet characters. The font must have character 149 or this will have
no affect.
</div>
</li>
</ul>
<a name="setBlinkTime(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setBlinkTime
</h4>
<pre>public
void
setBlinkTime(float
blinkTime)
</pre>
</li>
</ul>
<a name="setDisabled(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDisabled
</h4>
<pre>public
void
setDisabled(boolean
disabled)
</pre>
<dl>
<dt><strong>Specified by:
</strong></dt>
<dd><code><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/utils/Disableable.html#setDisabled(boolean)">setDisabled
</a></code> in interface
<code><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/utils/Disableable.html" title="interface in com.badlogic.gdx.scenes.scene2d.utils">Disableable
</a></code></dd>
</dl>
</li>
</ul>
<a name="isDisabled()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isDisabled
</h4>
<pre>public
boolean
isDisabled()
</pre>
</li>
</ul>
<a name="isPasswordMode()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isPasswordMode
</h4>
<pre>public
boolean
isPasswordMode()
</pre>
</li>
</ul>
<a name="getTextFieldFilter()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getTextFieldFilter
</h4>
<pre>public
<a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.TextFieldFilter.html" title="interface in com.badlogic.gdx.scenes.scene2d.ui">TextField.TextFieldFilter
</a> getTextFieldFilter()
</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="../../../../../../overview-summary.html">Overview
</a></li>
<li><a href="package-summary.html">Package
</a></li>
<li class="navBarCell1Rev">Class
</li>
<li><a href="class-use/TextField.html">Use
</a></li>
<li><a href="package-tree.html">Tree
</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated
</a></li>
<li><a href="../../../../../../index-all.html">Index
</a></li>
<li><a href="../../../../../../help-doc.html">Help
</a></li>
</ul>
<div class="aboutLanguage"><em>libgdx API
</em></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextButton.TextButtonStyle.html" title="class in com.badlogic.gdx.scenes.scene2d.ui"><span class="strong">Prev Class
</span></a></li>
<li><a href="../../../../../../com/badlogic/gdx/scenes/scene2d/ui/TextField.DefaultOnscreenKeyboard.html" title="class in com.badlogic.gdx.scenes.scene2d.ui"><span class="strong">Next Class
</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?com/badlogic/gdx/scenes/scene2d/ui/TextField.html" target="_top">Frames
</a></li>
<li><a href="TextField.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><a href="#nested_class_summary">Nested
</a> |
</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>
<div style="font-size:9pt"><i>
Copyright
© 2010-2013 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
</i></div>
</small></p>
</body>
</html>