|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--waba.ui.Control
|
+--waba.ui.Container
|
+--waba.ui.Window
|
+--waba.ui.MainWindow
|
+--extra.ui.ExtraMainWindow
A simple extension to MainWindow which adds a title if desired plus the functionality of RelativeContainer. At the moment you need to extend this class for your main app to use the extra.ui.List control but hopefully that won't always be the case.
| Field Summary | |
static int |
ABOVE
|
static int |
AUTO
|
static int |
BELOW
|
static int |
BOTTOM
|
static int |
CENTER
|
static int |
FILL
|
static int |
JAVA
Java based platform |
static int |
LEFT
|
static int |
LEFTOF
|
static int |
PALMOS
PalmOS based platform |
static int |
platform
the platform we are running on (from Vm.getPlatform()) |
static int |
REST
|
static int |
RIGHT
|
static int |
RIGHTOF
|
static int |
SAME
|
static int |
SAME_BOTTOM
|
static int |
SAME_LEFT
|
static int |
SAME_RIGHT
|
static int |
SAME_TOP
|
static int |
TOP
|
static int |
WINCE
WinCE based platform |
| Fields inherited from class waba.ui.MainWindow |
defaultFont |
| Constructor Summary | |
ExtraMainWindow()
Constructs a new application without a title and no double buffering |
|
ExtraMainWindow(boolean doubleBuffered)
Constructs a new application without a title and the given double buffering |
|
ExtraMainWindow(String name)
Constructs a new application with the given title and no double buffering. |
|
ExtraMainWindow(String name,
boolean doubleBuffered)
Constructs a new application with a standard pilot title bar and the given double buffering options. |
|
| Method Summary | |
void |
_doPaint(int x,
int y,
int width,
int height)
Called by the VM to repaint an area. |
void |
_postEvent(int type,
int key,
int x,
int y,
int modifiers,
int timeStamp)
Called by the VM to post key and pen events. |
void |
add(Control control)
Adds a component to this application. |
void |
add(Control control,
int x,
int y)
Adds a component to this application. |
void |
add(Control control,
int x,
int y,
Control relative)
Adds a component to this application. |
void |
add(Control control,
int x,
int y,
int width,
int height)
Adds a component to this application. |
void |
add(Control control,
int x,
int y,
int width,
int height,
Control relative)
Adds a component to this application. |
Control |
findChild(int x,
int y)
Returns the child located at the given x and y coordinates. |
Title |
getTitle()
Gets the title for this app, if any. |
void |
remove(Control control)
Temporarily removes a component to this application. |
void |
removePermanently(Control control)
Permanently removes a component to this application. |
void |
setFocus(Control c)
Sets focus to the given control. |
void |
setGaps(int x,
int y)
Sets the standard gap between components when added with the LEFTOF, RIGHTOF, ABOVE and BELOW settings. |
void |
setMenuBar(MenuBar menubar)
Sets the menubar for this application. |
void |
setRect(int x,
int y,
int width,
int height)
Sets the rectangle of this application. |
| Methods inherited from class waba.ui.MainWindow |
_onTimerTick, _stopTimer, exit, getFontMetrics, getMainWindow, onExit, onStart, removeTimer |
| Methods inherited from class waba.ui.Window |
createAWTGraphics, getFocus |
| Methods inherited from class waba.ui.Container |
paintChildren |
| Methods inherited from class waba.ui.Control |
addTimer, contains, createGraphics, getNext, getParent, getRect, onEvent, onPaint, postEvent, repaint |
| Methods inherited from class java.lang.Object |
equals, hashCode, toString |
| Field Detail |
public static final int PALMOS
public static final int JAVA
public static final int WINCE
public static final int LEFT
public static final int LEFTOF
public static final int CENTER
public static final int RIGHTOF
public static final int RIGHT
public static final int SAME
public static final int SAME_LEFT
public static final int SAME_RIGHT
public static final int TOP
public static final int ABOVE
public static final int BELOW
public static final int BOTTOM
public static final int SAME_TOP
public static final int SAME_BOTTOM
public static final int AUTO
public static final int FILL
public static final int REST
public static int platform
| Constructor Detail |
public ExtraMainWindow()
public ExtraMainWindow(boolean doubleBuffered)
doubleBuffered - true if an image buffer should be used, false otherwise.public ExtraMainWindow(String name)
public ExtraMainWindow(String name,
boolean doubleBuffered)
title - the name of the appdoubleBuffered - true if an image buffer should be used, false otherwise.| Method Detail |
public Title getTitle()
public void setFocus(Control c)
setFocus in class Window
public void _postEvent(int type,
int key,
int x,
int y,
int modifiers,
int timeStamp)
_postEvent in class Window
public void _doPaint(int x,
int y,
int width,
int height)
_doPaint in class Window
public Control findChild(int x,
int y)
findChild in class Container
public void setGaps(int x,
int y)
x - the x gap in pixelsy - the y gap in pixelspublic void setMenuBar(MenuBar menubar)
public void add(Control control,
int x,
int y)
RelativeContainer.add(Control,int,int,int,int,Control)
public void add(Control control,
int x,
int y,
Control relative)
RelativeContainer.add(Control,int,int,int,int,Control)
public void add(Control control,
int x,
int y,
int width,
int height)
RelativeContainer.add(Control,int,int,int,int,Control)
public void add(Control control,
int x,
int y,
int width,
int height,
Control relative)
RelativeContainer.add(Control,int,int,int,int,Control)public void add(Control control)
add in class ContainerRelativeContainer.add(Control,int,int,int,int,Control)public void remove(Control control)
remove in class ContainerRelativeContainer.add(Control,int,int,int,int,Control)public void removePermanently(Control control)
RelativeContainer.add(Control,int,int,int,int,Control)
public void setRect(int x,
int y,
int width,
int height)
setRect in class Control
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||