Apime v1.0

com.java4ever.apime.ui
Class ILabel

java.lang.Object
  extended bycom.java4ever.apime.ui.IComponent
      extended bycom.java4ever.apime.ui.ITextComponent
          extended bycom.java4ever.apime.ui.ILabel
Direct Known Subclasses:
IButton, IProgressBar

public class ILabel
extends ITextComponent

Etiqueta de texto (1 línea).


Field Summary
 
Fields inherited from class com.java4ever.apime.ui.IComponent
CURSOR_ENABLED_ALWAYS, CURSOR_ENABLED_NEVER, CURSOR_ENABLED_SWITCH, skin
 
Constructor Summary
ILabel(javax.microedition.lcdui.Image image)
          Crea una etiqueta que representa una imagen (ajusta el tamaño al de la imagen).
ILabel(java.lang.String text)
          Crea una etiqueta con el texto indicado.
ILabel(java.lang.String text, javax.microedition.lcdui.Image image)
          Crea una etiqueta con el texto y la imagen indicada.
 
Method Summary
 javax.microedition.lcdui.Image getImage()
          Devuelve la imagen.
 int getSkinId()
          Devuelve el Id del componente dentro del skin.
 void paintComponent(javax.microedition.lcdui.Graphics g)
          Pinta el componente.
 void setImage(javax.microedition.lcdui.Image image)
          Cambia la imagen (puede ser 'null').
 
Methods inherited from class com.java4ever.apime.ui.ITextComponent
getAlignment, getHorizontalAlignment, getText, getTextListener, getVerticalAlignment, processTextEvent, setAlignment, setHorizontalAlignment, setText, 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, processFocusEvent, processKeyEvent, processMouseEvent, processSkinProperties, 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

ILabel

public ILabel(java.lang.String text)
Crea una etiqueta con el texto indicado.

Parameters:
text - Texto

ILabel

public ILabel(javax.microedition.lcdui.Image image)
Crea una etiqueta que representa una imagen (ajusta el tamaño al de la imagen).

Parameters:
image - Imagen

ILabel

public ILabel(java.lang.String text,
              javax.microedition.lcdui.Image image)
Crea una etiqueta con el texto y la imagen indicada.

Parameters:
text - Texto
image - Imagen
Method Detail

setImage

public void setImage(javax.microedition.lcdui.Image image)
Cambia la imagen (puede ser 'null').

Parameters:
image - Imagen

getImage

public javax.microedition.lcdui.Image getImage()
Devuelve la imagen.


getSkinId

public int getSkinId()
Description copied from class: IComponent
Devuelve el Id del componente dentro del skin.

Overrides:
getSkinId in class ITextComponent

paintComponent

public void paintComponent(javax.microedition.lcdui.Graphics g)
Description copied from class: IComponent
Pinta el componente.

Specified by:
paintComponent in class IComponent
Parameters:
g - Contexto gráfico

Apime v1.0

Copyright 2004 Java4Ever.com. All Rights Reserved.