|
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.IList
Lista.
| Field Summary |
| Fields inherited from class com.java4ever.apime.ui.IComponent |
CURSOR_ENABLED_ALWAYS, CURSOR_ENABLED_NEVER, CURSOR_ENABLED_SWITCH, skin |
| Constructor Summary | |
IList()
Crea la lista (Selección múltiple). |
|
IList(int mode)
Crea la lista. |
|
| Method Summary | |
int |
getCellHeight()
Devuelve la altura de cada celda. |
ListCellRenderer |
getCellRenderer()
Devuelve el renderer para cada celda. |
ListModel |
getModel()
Devuelve el modelo de datos. |
ListSelectionModel |
getSelectionModel()
Devuelve el modelo de selección. |
int |
getSkinId()
Devuelve el Id del componente dentro del skin. |
void |
paintComponent(javax.microedition.lcdui.Graphics g)
Pinta el componente. |
protected void |
processMouseEvent(int type,
int x,
int y)
Procesa un evento de ratón. |
void |
scrollTo(int index)
Hace scroll hasta el índice indicado. |
void |
scrollToSelectedIndex()
Hace scroll hasta el índice seleccionado. |
void |
setCellHeight(int height)
Cambia la altura de cada celda. |
void |
setCellRenderer(ListCellRenderer renderer)
Cambia el renderer para cada celda. |
void |
setModel(ListModel model)
Cambia el modelo de datos. |
void |
setSelectionModel(ListSelectionModel selection)
Cambia el modelo de selección. |
void |
setSize(int width,
int height)
Cambia el tamaño del componente. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public IList()
public IList(int mode)
mode - Modo de selecciónListSelectionModel| Method Detail |
public void setModel(ListModel model)
model - Modelo de datosListModelpublic ListModel getModel()
ListModelpublic void setSelectionModel(ListSelectionModel selection)
selection - Modelo de selecciónListSelectionModelpublic ListSelectionModel getSelectionModel()
ListSelectionModelpublic void setCellRenderer(ListCellRenderer renderer)
renderer - RendererListCellRendererpublic ListCellRenderer getCellRenderer()
ListCellRendererpublic void setCellHeight(int height)
height - Altopublic int getCellHeight()
public void scrollTo(int index)
index - Indicepublic void scrollToSelectedIndex()
public void setSize(int width,
int height)
IComponent
setSize in class IComponentwidth - Anchoheight - Altopublic int getSkinId()
IComponent
getSkinId in class IComponentpublic void paintComponent(javax.microedition.lcdui.Graphics g)
IComponent
paintComponent in class IComponentg - Contexto gráfico
protected void processMouseEvent(int type,
int x,
int y)
IComponent
processMouseEvent in class IComponenttype - Tipo de eventox - Coordenada X relativa al componentey - Coordenada Y relativa al componenteEvent.MOUSE_ENTERED,
Event.MOUSE_EXITED,
Event.MOUSE_PRESSED,
Event.MOUSE_RELEASED,
Event.MOUSE_CLICKED,
Event.MOUSE_MOVED,
Event.MOUSE_DRAGGED
|
Apime v1.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||