|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--moka.lang.Object | +--moka.event.EventListener | +--moka.x.Component | +--moka.x.Container | +--moka.x.ScrollPane
A ScollPanePanel is a scollable area.
Field Summary | |
boolean |
autoScroll
A flag specifying if the Scroll Pane will scroll automatically to the next component instead of scrolling progressively. |
boolean |
hScrollVisible
Is the horizontal scroll bar should be visible. |
moka.util.Vector |
items
A vector containing the items visible in the scrollable area. |
short |
sX
The virtual x position in the scrollable area. |
short |
sY
The virtual y position in the scrollable area. |
boolean |
vScrollVisible
Is the vertical scroll bar should be visible. |
Fields inherited from class moka.x.Container |
child, tail |
Fields inherited from class moka.x.Component |
enabled, height, listen, mnemonic, next, parent, prev, visible, width, x, y |
Constructor Summary | |
ScrollPane()
Constructs a newly allocated ScrollPane. |
Method Summary | |
void |
finalize()
Frees the memory of system ressources used by this ScrollPane object. |
void |
onPaint()
Called when a PaintEvent occurs to paint the image of the container and stores it in its virtual memory. |
void |
paintChildren(moka.x.SCR_RECT_p clip)
Paints the children of this container to the virtual screen. |
void |
paintForeground()
Paints the foreground of the panel. |
void |
setHScrollVisible(boolean b)
Sets if the horizontal scroll bar should be visible. |
void |
setSX(short sX)
Sets the virtual X coordinate. |
void |
setSY(short sY)
Sets the virtual Y coordinate. |
void |
setVScrollVisible(boolean b)
Sets if the vertical scroll bar should be visible. |
void |
use()
This method is invoked by the GEM when the user interacts with the container. |
Methods inherited from class moka.x.Container |
add, checkMnemonic, clean, empty, onRefresh, remove, repaintChildren, toFront |
Methods inherited from class moka.x.Component |
bottom, center, eventTriggered, isCursorOver, left, move, paint, right, setBounds, setEnabled, setHeight, setMnemonic, setVisible, setWidth, setX, setY, top |
Methods inherited from class moka.event.EventListener |
eventTriggered |
Methods inherited from class moka.lang.Object |
equals, getClassName, toString |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public short sX
public short sY
public boolean autoScroll
public boolean vScrollVisible
public boolean hScrollVisible
public moka.util.Vector items
Constructor Detail |
public ScrollPane()
Method Detail |
public void finalize()
finalize
in class Component
public void setVScrollVisible(boolean b)
b
- true to specify that the vertical scroll bar should be visiblepublic void setHScrollVisible(boolean b)
b
- the horizontal scroll bar should be visiblepublic void setSX(short sX)
sX
- the virtual X coordinatepublic void setSY(short sY)
sY
- the virtual Y coordinatepublic void paintForeground()
paintForeground
in class Container
public void paintChildren(moka.x.SCR_RECT_p clip)
paintChildren
in class Container
public void onPaint()
onPaint
in class Container
public void use()
use
in class Container
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |