All Packages This Package Class Hierarchy Class Search Index
java.lang.Object | +----java.awt.Component | +----java.awt.Container | +----java.awt.Window | +----java.awt.Dialog | +----app.util.BasicAlert
Summary |
public class BasicAlert extends java.awt.Dialog implements java.awt.event.ActionListener, java.awt.event.WindowListener { // Fields 2 public static final int SCROLL_HORZ; public static final int SCROLL_VERT; // Constructors 1 public BasicAlert(Frame, String, boolean, String, int, int, int, float, float); // Methods 12 public void actionPerformed(ActionEvent); public TextArea getTextArea(); protected void goAway(); protected TextArea makeTextArea(String, int, int, int); public Point position(Window, float, float); public void windowActivated(WindowEvent); public void windowClosed(WindowEvent); public void windowClosing(WindowEvent); public void windowDeactivated(WindowEvent); public void windowDeiconified(WindowEvent); public void windowIconified(WindowEvent); public void windowOpened(WindowEvent); }
BasicAlert is a basic alert Dialog.
Fields |
· SCROLL_VERT | Summary | Top |
public static final int SCROLL_VERT
Bit-mask requesting a vertical scoll-bar for the text.
· SCROLL_HORZ | Summary | Top |
public static final int SCROLL_HORZ
Bit-mask requesting a horizontal scoll-bar for the text.
Constructors |
· BasicAlert | Summary | Top |
public BasicAlert(Frame frame, String title, boolean isModal, String text, int rows, int cols, int scrollbars, float northern, float western)
Methods |
· makeTextArea | Summary | Top |
protected TextArea makeTextArea(String text, int rows, int cols, int scrollbars)
Can override in subclasses to change look. The scrollbars value is appropriate for a TextArea constructor.
· getTextArea | Summary | Top |
public TextArea getTextArea()
Can call externally to manipulate TextArea's attributes or contents.
· position | Summary | Top |
public Point position(Window target, float northern, float western)
Use the Window's current dimensions to determine it's desired top-left position. Does not actually change the position of the Window, only returns a Point representing what its weighted position would be.
· goAway | Summary | Top |
protected void goAway()
Go away.
· actionPerformed | Summary | Top |
public void actionPerformed(ActionEvent what)
Doesn't matter what the action was, we always goAway().
- Implements:
- actionPerformed in interface ActionListener
· windowClosing | Summary | Top |
public void windowClosing(WindowEvent what)
As WindowListener -- a click in the close-box will goAway().
- Implements:
- windowClosing in interface WindowListener
· windowActivated | Summary | Top |
public void windowActivated(WindowEvent what)
As WindowListener -- "OK" gets focus.
- Implements:
- windowActivated in interface WindowListener
· windowClosed | Summary | Top |
public void windowClosed(WindowEvent what)
As WindowListener -- do nothing.
- Implements:
- windowClosed in interface WindowListener
· windowDeactivated | Summary | Top |
public void windowDeactivated(WindowEvent what)
As WindowListener -- do nothing.
- Implements:
- windowDeactivated in interface WindowListener
· windowDeiconified | Summary | Top |
public void windowDeiconified(WindowEvent what)
As WindowListener -- "OK" gets focus.
- Implements:
- windowDeiconified in interface WindowListener
· windowIconified | Summary | Top |
public void windowIconified(WindowEvent what)
As WindowListener -- do nothing.
- Implements:
- windowIconified in interface WindowListener
· windowOpened | Summary | Top |
public void windowOpened(WindowEvent what)
As WindowListener -- "OK" gets focus.
- Implements:
- windowOpened in interface WindowListener
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7