|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jcontrol.ui.vole.Component jcontrol.ui.vole.Container jcontrol.ui.vole.PassiveFrame
public class PassiveFrame
A PassiveFrame is the starting point for creating a graphical user interface WITHOUT keyboard support. Several PassiveFrame instances may exist simultaneously, only one instance must be visible at the same time.
The PassiveFrame class is a manager for user interaction and maps output facilities to an underlying class framework. In contrast to the Frame class, the PassiveFrame class does not support the keyboard and though it has no focus management for the available components.
(c) Copyright 2003-2007 DOMOLOGIC GmbH
Field Summary | |
---|---|
protected static Graphics |
graphics
Graphics access |
protected MenuInterface |
menu
The main menu |
protected static PassiveFrame |
visibleFrame
The currently visible frame (only one simultaneously) |
Fields inherited from class jcontrol.ui.vole.Container |
---|
children, hasFocus, TRANSFER_BACKWARD, TRANSFER_FORWARD |
Fields inherited from class jcontrol.ui.vole.Component |
---|
eventQueue, focusOwner, font, g, height, listener, parent, visible, width, x, y |
Constructor Summary | |
---|---|
PassiveFrame()
Constructs a new Frame. |
|
PassiveFrame(Graphics graphics,
Keyboard keys)
Constructs a new Frame. |
Method Summary | |
---|---|
MenuInterface |
getMenu()
Get the frame's current menu. |
void |
onActionEvent(ActionEvent event)
Handle ActionEvents. |
boolean |
onKeyEvent(KeyEvent event)
Handle KeyEvents. |
void |
paint()
Paint all components or a menu. |
void |
remove()
Destroys this frame and all child components. |
MenuInterface |
removeMenu()
Remove a menu from the frame. |
void |
setMenu(MenuInterface m)
Add a menu to this frame. |
void |
setVisible(boolean b)
Shows or hides the frame. |
void |
show()
Shows the frame. |
Methods inherited from class jcontrol.ui.vole.Container |
---|
add, getFocus, isCovered, remove, removeAll, removeFocus, requestFocus, setFocus, setFont, setGraphics, setRadioButton, transferFocus, transferFocus |
Methods inherited from class jcontrol.ui.vole.Component |
---|
getBounds, getParent, isVisible, setBounds, setParent, transferFocus, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, notifyAll, toString, wait |
Field Detail |
---|
protected static Graphics graphics
protected static PassiveFrame visibleFrame
protected MenuInterface menu
Constructor Detail |
---|
public PassiveFrame()
Constructs a new Frame.
The dimensions are equivalent to the display size.
They may be changed by using setBounds()
.
public PassiveFrame(Graphics graphics, Keyboard keys)
Constructs a new Frame.
The dimensions are equivalent to the display size.
They may be changed by using setBounds()
.
graphics
- An instance of a custom display adapter.keys
- An instance of a keyboard interface.Method Detail |
---|
public void setVisible(boolean b)
setVisible
in class Container
b
- true-visible, false-invisibleComponent.setVisible(boolean)
public void show()
setVisible(true);
public void remove()
remove
in class Container
public void onActionEvent(ActionEvent event)
onActionEvent
in interface ActionListener
onActionEvent
in class Component
event
- the ActionEventpublic boolean onKeyEvent(KeyEvent event)
onKeyEvent
in class Container
event
- the KeyEvent to pass on
public void setMenu(MenuInterface m)
m
- The menupublic MenuInterface getMenu()
public MenuInterface removeMenu()
public void paint()
paint
in class Container
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |