|
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.IContainer
com.java4ever.apime.ui.IScrollBar
Barra de scroll.
| Field Summary | |
static boolean |
AUTOSCROLL
Indica si el scroll es automático (no hay que hacer drag). |
static int |
HORIZONTAL
Barra de scroll horizontal. |
static int |
THICK
Grosor de la barra. |
static int |
VERTICAL
Barra de scroll vertical. |
| Fields inherited from class com.java4ever.apime.ui.IComponent |
CURSOR_ENABLED_ALWAYS, CURSOR_ENABLED_NEVER, CURSOR_ENABLED_SWITCH, skin |
| Constructor Summary | |
IScrollBar(int type,
int size)
Crea la barra. |
|
| Method Summary | |
int |
getOffset()
Devuelve la posición de la barra [0..100]. |
int |
getPercentage()
Devuelve el porcentaje visual de la barra [0..100]. |
int |
getSkinId()
Devuelve el Id del componente dentro del skin. |
void |
setEnabled(boolean enabled)
Activa/Desactiva el componente. |
void |
setOffset(int offset)
Posiciona la barra. |
void |
setPercentage(int percentage)
Porcentaje visual de la barra. |
void |
setSize(int size)
Cambia el tamaño. |
void |
setSize(int width,
int height)
Cambia el tamaño del componente. |
| Methods inherited from class com.java4ever.apime.ui.IContainer |
add, add, add, getComponentAt, getComponentAt, getComponentCount, getContainerListener, insert, insert, insert, pack, paintComponent, processContainerEvent, remove, remove, removeAll, setContainerListener |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int HORIZONTAL
public static final int VERTICAL
public static int THICK
public static boolean AUTOSCROLL
| Constructor Detail |
public IScrollBar(int type,
int size)
type - Tipo (horizontal/vertical)size - TamañoHORIZONTAL,
VERTICAL| Method Detail |
public void setSize(int size)
size - Tamaño
public void setSize(int width,
int height)
IComponent
setSize in class IComponentwidth - Anchoheight - Altopublic void setOffset(int offset)
offset - Desplazamiento [0..100]public int getOffset()
public void setPercentage(int percentage)
percentage - Porcentaje [0..100]public int getPercentage()
public void setEnabled(boolean enabled)
IComponent
setEnabled in class IComponentenabled - True para activarlopublic int getSkinId()
IComponent
getSkinId in class IContainer
|
Apime v1.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||