de.esw.eengine.renderable.wtk
Class Input

java.lang.Object
  extended by de.esw.eengine.renderable.AbstractRenderable
      extended by de.esw.eengine.renderable.wtk.Component
          extended by 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)
           
 
Method Summary
 char getCaretChar()
           
 java.awt.Color getColor()
           
 char getEchoChar()
           
 Font getFont()
           
 int getMaxLength()
           
 java.lang.String getText()
           
 void setCaretChar(char caretChar)
           
 void setColor(java.awt.Color color)
           
 void setEchoChar(char echoChar)
           
 void setFont(Font font)
           
 void setMaxLength(int maxLength)
          Sets the maximal character length this input accepts.
 void setText(java.lang.String text)
           
 void setVisible(boolean v)
          Shows or hides the caret
 
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 de.esw.eengine.renderable.AbstractRenderable
blend, getAlpha, getName, setAlpha, setName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Input

public Input(int x,
             int y,
             int width,
             int height)
Parameters:
x - X location of this Component
y - Y location of this Component
width - Width of this Component
height - Height of this Component

Input

public Input(java.awt.Rectangle extents)
Parameters:
extents - Extents of this Component
Method Detail

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)