charva.awt
public class Window extends Container implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
protected Toolkit |
_term |
_components, _currentFocus, _insets, _isValid, _layoutMgr, _minimumSize, _size
_alignmentX, _alignmentY, _background, _cursesColor, _enabled, _focusListeners, _foreground, _keyListeners, _origin, _parent, _visible, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
Window(Frame owner_) |
Window(Window owner_) |
Modifier and Type | Method and Description |
---|---|
void |
addWindowListener(WindowListener listener_)
Register a WindowListener object for this window.
|
void |
adjustLocation()
Adjust the position of the window so that it fits inside the screen.
|
void |
debug(int level_) |
void |
draw()
Draw all the components in this window, and request the keyboard focus.
|
Point |
getLocationOnScreen()
Overrides the method in the Component superclass, because a Window
has no parent container.
|
Window |
getOwner()
Return the Window that is the "owner" of this Window.
|
void |
hide()
Hide this window and all of its contained components.
|
boolean |
isDisplayed()
Returns true if this Window is currently displayed.
|
boolean |
isFocusTraversable()
A Window component will not receive input focus during keyboard focus
traversal using Tab and Shift-Tab.
|
void |
pack()
Causes this Window to be sized to fit the preferred sizes and
layouts of its contained components.
|
protected void |
processEvent(AWTEvent evt_)
Process an event off the event queue.
|
protected void |
processWindowEvent(WindowEvent evt_)
Process window events occurring on this window by dispatching them
to any registered WindowListener objects.
|
void |
run() |
void |
show()
Lay out the contained components, draw the window and its contained
components, and then read input events off the EventQueue and send
them to the component that has the input focus.
|
add, add, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentAt, getComponentCount, getComponents, getCurrentFocus, getHeight, getInsets, getSize, getWidth, invalidate, isValid, minimumSize, nextFocus, previousFocus, processKeyEvent, remove, requestFocus, setBackground, setBounds, setBounds, setBounds, setFocus, setForeground, setHeight, setLayout, setSize, setSize, setWidth, validate
addFocusListener, addKeyListener, contains, contains, getAlignmentX, getAlignmentY, getAncestorWindow, getBackground, getBounds, getCursesColor, getForeground, getLocation, getName, getParent, hasFocus, isEnabled, isRecursivelyVisible, isTotallyObscured, isVisible, processFocusEvent, processMouseEvent, repaint, requestSync, setEnabled, setLocation, setLocation, setName, setParent, setVisible, validateCursesColor
protected Toolkit _term
public Window getOwner()
public void addWindowListener(WindowListener listener_)
protected void processWindowEvent(WindowEvent evt_)
public boolean isDisplayed()
isDisplayed
in class Component
public void pack()
public void show()
public void run()
run
in interface java.lang.Runnable
protected void processEvent(AWTEvent evt_)
processEvent
in class Component
public void hide()
public void draw()
public Point getLocationOnScreen()
getLocationOnScreen
in class Component
public boolean isFocusTraversable()
isFocusTraversable
in class Container
public void adjustLocation()