|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.yospace.yae.yogi.YogiComponent
|
+--com.yospace.yae.yogi.YogiRootWindow
The root window is the root component in the tree of components currently being
displayed. It is a focus domain root and always maintains that it is valid and
has focus. Its graphics object is obtained from the NativeResources. The root window
is also the repaint manager (and thus implements Runnable).
The root window has a root content pane, which is the layered pane that panelet displays
and popups are added to. It might also have a dash bar, which acts as an application manager
level menu bar.
| Field Summary | |
static int |
PROPERTY_DASH_BAR
Constant for the dash bar property |
| Method Summary | |
void |
add(YogiComponent c)
Overrides the YogiComponent.add() method, to add any objects to the root content pane rather than the root window. |
static YogiRootWindow |
create(java.lang.Object keyCandidate)
Creates and returns a new YogiRootWindow Object if a valid key is used. |
YogiDashBar |
getDashBar()
Accessor method for the dash bar, if one currently exists. |
Graphics |
getGraphics()
Returns an encapsulation of the native graphics of the device. |
YogiLayeredPane |
getRootContentPane()
Accessor method for the (layered) root content pane. |
boolean |
hasFocus(boolean global)
This overrides the hasFocus method to force the root window to always be focussed. |
void |
init()
Sets up a new root window as a focus domain root. |
void |
remove(YogiComponent c)
Overrides the YogiComponent.remove() method, to remove the given component from the
root content pane rather than the root window. |
boolean |
requestFocus(boolean global)
This override method maintains that the root window has always acquired the focus successfully. |
void |
run()
When notified calls paint() on this (the root window), sending itself its current dirty region information. |
void |
scheduleRepaint()
Calls notify() to wake the repaint thread if it is currently waiting for
a notification from this repaint manager. |
void |
setDashBar(YogiDashBar dashBar)
Sets the dash bar to be the given component. |
static void |
setKey(java.lang.Object theKey)
Sets up the key to validate root window creation requests against. |
void |
start()
Creates a new Thread and calls start on it. |
void |
stop()
Stops the Thread created through a call to start(). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int PROPERTY_DASH_BAR
| Method Detail |
public static final YogiRootWindow create(java.lang.Object keyCandidate)
keyCandidate - the key to compare against the actual key.public static final void setKey(java.lang.Object theKey)
theKey - the key to use.public void init()
public void add(YogiComponent c)
YogiComponent.add() method, to add any objects to the root content pane rather than the root window.add in class YogiComponentc - the component to add.public void remove(YogiComponent c)
YogiComponent.remove() method, to remove the given component from the
root content pane rather than the root window.remove in class YogiComponentc - the component to remove.public YogiLayeredPane getRootContentPane()
public YogiDashBar getDashBar()
public void setDashBar(YogiDashBar dashBar)
PROPERTY_DASH_BAR).dashBar - the dash bar to set for this YogiRootWindow.public Graphics getGraphics()
public boolean hasFocus(boolean global)
hasFocus in class YogiComponentglobal - ignored here.public boolean requestFocus(boolean global)
requestFocus in class YogiComponentglobal - ignored here.public void start()
stop() has been
called.public void stop()
start().public void scheduleRepaint()
notify() to wake the repaint thread if it is currently waiting for
a notification from this repaint manager.public void run()
paint() on this (the root window), sending itself its current dirty region information. This will cause paints to
filter down to dirty child components. These paints are done onto an off-screen buffer. Once this repaint cycle
has terminated, a call to repaint the off-screen buffer onto the screen is made.run in interface java.lang.Runnable
|
Copyright 2002 Yospace Holdings Ltd. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||