charva.awt

Class Dialog

Implemented Interfaces:
Runnable
Known Direct Subclasses:
JDialog

public class Dialog
extends Window

The Dialog class is similar to a Frame but includes a blank area around the border frame. This makes the dialog more clearly visible when it is displayed on top of a cluttered screen.

Field Summary

Fields inherited from class charva.awt.Window

_term

Fields inherited from class charva.awt.Container

_components, _currentFocus, _insets, _isValid, _layoutMgr, _minimumSize, _size

Fields inherited from class charva.awt.Component

BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT, _alignmentX, _alignmentY, _background, _cursesColor, _enabled, _focusListeners, _foreground, _keyListeners, _origin, _parent, _visible

Constructor Summary

Dialog(Dialog owner_)
Dialog(Dialog owner_, String title_)
Dialog(Frame owner_)
Creates a modal dialog without a title and with a Frame owner.
Dialog(Frame owner_, String title_)

Method Summary

void
debug(int level_)
void
draw()
Draw all the components in this window, and request the keyboard focus.
boolean
isModal()
void
setModal(boolean modal_)
This method does nothing because dialogs are ALWAYS modal in the CHARVA package.
void
setTitle(String title_)

Methods inherited from class charva.awt.Window

addWindowListener, adjustLocation, debug, draw, getLocationOnScreen, getOwner, hide, isDisplayed, isFocusTraversable, pack, processEvent, processWindowEvent, run, show

Methods inherited from class charva.awt.Container

add, add, debug, doLayout, draw, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getCurrentFocus, getHeight, getInsets, getSize, getWidth, invalidate, isFocusTraversable, isValid, minimumSize, nextFocus, previousFocus, processKeyEvent, remove, requestFocus, setBackground, setFocus, setForeground, setHeight, setLayout, setSize, setSize, setWidth, validate

Methods inherited from class charva.awt.Component

addFocusListener, addKeyListener, contains, contains, debug, draw, getAlignmentX, getAlignmentY, getAncestorWindow, getBackground, getBounds, getCursesColor, getForeground, getHeight, getLocation, getLocationOnScreen, getName, getParent, getSize, getWidth, hasFocus, hide, invalidate, isDisplayed, isEnabled, isFocusTraversable, isTotallyObscured, isValid, isVisible, minimumSize, processEvent, processFocusEvent, processKeyEvent, processMouseEvent, repaint, requestFocus, requestSync, setBackground, setEnabled, setForeground, setLocation, setLocation, setName, setParent, setVisible, show, validate, validateCursesColor

Constructor Details

Dialog

public Dialog(Dialog owner_)

Dialog

public Dialog(Dialog owner_,
              String title_)

Dialog

public Dialog(Frame owner_)
Creates a modal dialog without a title and with a Frame owner.

Dialog

public Dialog(Frame owner_,
              String title_)

Method Details

debug

public void debug(int level_)
Overrides:
debug in interface Window

draw

public void draw()
Draw all the components in this window, and request the keyboard focus.
Overrides:
draw in interface Window

isModal

public boolean isModal()

setModal

public void setModal(boolean modal_)
This method does nothing because dialogs are ALWAYS modal in the CHARVA package.

setTitle

public void setTitle(String title_)