|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmoka.lang.Object
moka.event.EventListener
moka.x.Component
moka.x.Container
moka.x.Frame
Class Frame is a floating window.
Field Summary | |
boolean |
closeButtonVisible
Is the close button visible ? Should be only read. |
short |
defaultCloseOperation
The default close operation for this frame. |
static short |
DISPOSE_ON_CLOSE
Indicate that the default close operation disposes of this frame. |
static short |
DO_NOTHING_ON_CLOSE
Indicate that the default close operation does nothing. |
static short |
EXIT_ON_CLOSE
Indicate that the default close operation exits the application. |
static short |
HIDE_ON_CLOSE
Indicate that the default close operation hides the frame. |
boolean |
minimizeButtonVisible
Is the minimize button visible ? Should be only read. |
boolean |
modal
Is this frame modal ? Should be only read. |
boolean |
movable
Is this frame movable ? |
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 |
Fields inherited from interface moka.x.Captioned |
caption, font |
Constructor Summary | |
Frame()
|
|
Frame(java.lang.String caption)
|
Method Summary | |
void |
dispose()
Disposes of all ressources used by this frame and all its children. |
void |
finalize()
Free the memory and system ressources used by this Frame. |
boolean |
isCursorOver(short x,
short y)
Indicates if the cursor is over this frame. |
boolean |
isCursorOverCloseButton(short x,
short y)
Indicates if the cursor is over the close button of this frame. |
boolean |
isCursorOverMinimizeButton(short x,
short y)
Indicates if the cursor is over the minimize button of this frame. |
boolean |
isCursorOverTitleBar(short x,
short y)
Indicates if the cursor is over the title bar of this frame. |
void |
onClose()
Called when a CloseEvent occurs. |
void |
onDrag()
Called when a DragEvent occurs. |
void |
onMinimize()
Called when a MinimizeEvent occurs. |
void |
paint()
Paints the frame. |
void |
paintForeground()
Paints the foreground of the frame. |
void |
setCloseButtonVisible(boolean b)
Sets the visibility of the close button. |
void |
setMinimizeButtonVisible(boolean b)
Sets the visibility of the minimize button. |
void |
setModal(boolean b)
Sets frame is modal or not. |
void |
setVisible(boolean b)
Sets the visibility of the frame. |
void |
use()
This method is invoked by the GEM when the user interacts with the frame. |
Methods inherited from class moka.x.Container |
add, checkMnemonic, clean, empty, onPaint, onRefresh, paintChildren, remove, repaintChildren, toFront |
Methods inherited from class moka.x.Component |
bottom, center, eventTriggered, left, move, right, setBounds, setEnabled, setHeight, setMnemonic, 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 |
Methods inherited from interface moka.x.Captioned |
setCaption, setFont |
Field Detail |
public static final short EXIT_ON_CLOSE
public static final short DISPOSE_ON_CLOSE
public static final short HIDE_ON_CLOSE
public static final short DO_NOTHING_ON_CLOSE
public boolean movable
public boolean modal
public short defaultCloseOperation
public boolean closeButtonVisible
public boolean minimizeButtonVisible
Constructor Detail |
public Frame()
public Frame(java.lang.String caption)
Method Detail |
public void finalize()
finalize
in class Component
public void use()
use
in class Container
public boolean isCursorOverCloseButton(short x, short y)
x
- the reference's horizontal coordinatey
- the reference's vertical coordinate
public boolean isCursorOverMinimizeButton(short x, short y)
x
- the reference's horizontal coordinatey
- the reference's vertical coordinate
public boolean isCursorOverTitleBar(short x, short y)
x
- the reference's horizontal coordinatey
- the reference's vertical coordinate
public void onClose()
public void onMinimize()
public void onDrag()
public void dispose()
public void setVisible(boolean b)
setVisible
in class Component
b
- true if the frame should be visible, false otherwize.public void setModal(boolean b)
b
- true if the frame should be modal, false otherwize.public void setCloseButtonVisible(boolean b)
b
- true if the close button should be visible, false otherwize.public void setMinimizeButtonVisible(boolean b)
b
- true if the minimize button should be visible, false otherwize.public void paint()
paint
in class Component
public void paintForeground()
paintForeground
in class Container
public boolean isCursorOver(short x, short y)
isCursorOver
in class Component
x
- the reference's horizontal coordinatey
- the reference's vertical coordinate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |