|
Apime v1.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.java4ever.apime.ui.IComponent
com.java4ever.apime.ui.ITextComponent
com.java4ever.apime.ui.ITextField
Campo de texto.
| Field Summary |
| Fields inherited from class com.java4ever.apime.ui.IComponent |
CURSOR_ENABLED_ALWAYS, CURSOR_ENABLED_NEVER, CURSOR_ENABLED_SWITCH, skin |
| Constructor Summary | |
ITextField(java.lang.String text)
Crea el campo de texto. |
|
ITextField(java.lang.String text,
int maxlength)
Crea el campo de texto. |
|
ITextField(java.lang.String text,
int maxlength,
boolean password)
Crea el campo de texto. |
|
| Method Summary | |
int |
getCaretBlink()
Devuelve al velocidad de parpadeo del cursor. |
int |
getCaretColor()
Devuelve el color del cursor. |
int |
getCaretPosition()
Devuelve la posición del cursor. |
char |
getCharAtCaret()
Devuelve el caracter que está en el cursor. |
int |
getSkinId()
Devuelve el Id del componente dentro del skin. |
protected boolean |
isCaretVisible()
Devuelve si el cursor está visible o no. |
protected void |
paintCaret(javax.microedition.lcdui.Graphics g,
int x,
int y,
char character)
Pinta el cursor (Sobreescribir para cambiar el skin). |
void |
paintComponent(javax.microedition.lcdui.Graphics g)
Pinta el componente. |
protected void |
processFocusEvent(int type)
Procesa un evento de foco. |
protected void |
processKeyEvent(int type,
int code,
int action,
char character)
Procesa un evento de teclado. |
void |
processSkinProperties()
Procesa las propiedades del skin para el componente. |
void |
setCaretBlink(int blink)
Velocidad de parpadeo del cursor. |
void |
setCaretColor(int color)
Color del cursor. |
void |
setCaretPosition(int position)
Posición del cursor. |
void |
setText(java.lang.String text)
Cambia el texto colocando el cursor al inicio. |
protected void |
setText(java.lang.String text,
boolean reset_caret)
Cambia el texto. |
| Methods inherited from class com.java4ever.apime.ui.ITextComponent |
getAlignment, getHorizontalAlignment, getText, getTextListener, getVerticalAlignment, processTextEvent, setAlignment, setHorizontalAlignment, setTextListener, setVerticalAlignment |
| Methods inherited from class com.java4ever.apime.ui.IComponent |
contains, getActionListener, getBackground, getBorder, getBounds, getComponentListener, getCursor, getCursorEnabled, getFocusListener, getFont, getForeground, getHeight, getKeyListener, getLocation, getLocationOnScreen, getMouseListener, getParent, getRoot, getScrollPane, getSize, getToolTip, getWidth, getX, getY, isEnabled, isFocusOwner, isVisible, paint, processActionEvent, processComponentEvent, processMouseEvent, repaint, requestFocus, setActionListener, setBackground, setBorder, setBounds, setComponentListener, setCursor, setCursorEnabled, setEnabled, setFocusListener, setFont, setForeground, setKeyListener, setLocation, setMouseListener, setSize, setToolTip, setVisible, toString |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ITextField(java.lang.String text)
text - Texto
public ITextField(java.lang.String text,
int maxlength)
text - Textomaxlength - Número máximo de caracteres
public ITextField(java.lang.String text,
int maxlength,
boolean password)
text - Textomaxlength - Número máximo de caracteres| Method Detail |
public void setText(java.lang.String text)
setText in class ITextComponenttext - Nuevo texto
protected void setText(java.lang.String text,
boolean reset_caret)
text - Nuevo textoreset_caret - True para poner el cursor al iniciopublic void setCaretBlink(int blink)
blink - Velocidad en ms.public int getCaretBlink()
public void setCaretColor(int color)
color - Colorpublic int getCaretColor()
public void setCaretPosition(int position)
position - Posición [0..tamaño del texto]public int getCaretPosition()
public char getCharAtCaret()
public int getSkinId()
IComponent
getSkinId in class ITextComponentpublic void processSkinProperties()
IComponent
processSkinProperties in class IComponentpublic void paintComponent(javax.microedition.lcdui.Graphics g)
IComponent
paintComponent in class IComponentg - Contexto gráficoprotected boolean isCaretVisible()
protected void paintCaret(javax.microedition.lcdui.Graphics g,
int x,
int y,
char character)
g - Contexto gráficox - Coordenada X (left)y - Coordenada Y (top)character - Caracter sobre el que está (0 si no está sobre ninguno)
protected void processKeyEvent(int type,
int code,
int action,
char character)
IComponent
processKeyEvent in class IComponenttype - Tipo de eventocode - Código de la teclaaction - Acción asociada al código de la teclacharacter - Caracter asociado al código de la tecla (0 si no tiene)Event.KEY_PRESSED,
Event.KEY_RELEASED,
Event.KEY_TYPEDprotected void processFocusEvent(int type)
IComponent
processFocusEvent in class IComponenttype - Tipo de eventoEvent.FOCUS_GAINED,
Event.FOCUS_LOST
|
Apime v1.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||