de.esw.eengine.renderable.wtk
Class Input
java.lang.Object
de.esw.eengine.renderable.AbstractRenderable
de.esw.eengine.renderable.wtk.Component
de.esw.eengine.renderable.wtk.Input
- All Implemented Interfaces:
- IActivatable, IRenderable, ICaret
public class Input
- extends Component
- implements ICaret
- Since:
- 1.0
- Version:
- $Id: Input.java 209 2005-07-23 00:39:50Z markusw $
- Author:
- markusw
|
Constructor Summary |
Input(int x,
int y,
int width,
int height)
|
Input(java.awt.Rectangle extents)
|
| Methods inherited from class de.esw.eengine.renderable.wtk.Component |
contains, getBorder, getBounds, getClientRect, getComponentAt, getLocation, isActive, move, render, setActive, setBorder, setImage, setLocation, toggle |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Input
public Input(int x,
int y,
int width,
int height)
- Parameters:
x - X location of this Componenty - Y location of this Componentwidth - Width of this Componentheight - Height of this Component
Input
public Input(java.awt.Rectangle extents)
- Parameters:
extents - Extents of this Component
getColor
public final java.awt.Color getColor()
- Returns:
- Returns the color.
setColor
public final void setColor(java.awt.Color color)
- Parameters:
color - The color to set.
getFont
public final Font getFont()
- Returns:
- Returns the font.
setFont
public final void setFont(Font font)
- Parameters:
font - The font to set.
getText
public final java.lang.String getText()
- Returns:
- Returns the text.
setText
public final void setText(java.lang.String text)
- Parameters:
text - The text to set.
getMaxLength
public final int getMaxLength()
- Returns:
- Returns the maxLength.
setMaxLength
public final void setMaxLength(int maxLength)
- Sets the maximal character length this input accepts.
Set it to 0 for no limit
- Parameters:
maxLength - The maxLength to set.
getCaretChar
public final char getCaretChar()
- Returns:
- Returns the caretChar.
setCaretChar
public final void setCaretChar(char caretChar)
- Parameters:
caretChar - The caretChar to set.
getEchoChar
public final char getEchoChar()
- Returns:
- Returns the echoChar.
setEchoChar
public final void setEchoChar(char echoChar)
- Parameters:
echoChar - The echoChar to set.
setVisible
public void setVisible(boolean v)
- Shows or hides the caret
- Specified by:
setVisible in interface ICaret
- Parameters:
v - True if the caret should be visible, false otherwise- See Also:
ICaret.setVisible(boolean)