java.lang.Object
jcurses.widgets.Window
jcurses.widgets.Dialog
jcurses.util.Message
- All Implemented Interfaces:
- jcurses.event.ActionListener, jcurses.event.WindowListener
- public class Message
- extends jcurses.widgets.Dialog
- implements jcurses.event.ActionListener
This is a class to create and show user defined messages.
Such message is a dialog with an user defined title, containing
an user defined text and a button to close the window with an user
defined label.
| Fields inherited from class jcurses.widgets.Window |
|
| Methods inherited from class jcurses.widgets.Window |
activate, addListener, close, closed, deactivate, getBorderColors, getClosingChar, getDefaultBorderColors, getDefaultTitleColors, getFocusChangeChar, getRectangle, getRootPanel, getTitleColors, handleInput, hide, isClosed, isVisible, moveToTheTop, onChar, pack, paint, removeListener, repaint, resize, setBorderColors, setClosingChar, setFocusChangeChar, setRootPanel, setShadow, setTitleColors, show, tryToClose |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_title
java.lang.String _title
_text
java.lang.String _text
_button
jcurses.widgets.Button _button
_label
jcurses.widgets.Label _label
Message
public Message(java.lang.String title,
java.lang.String text,
java.lang.String buttonLabel)
- The constructor
getWidth
private static int getWidth(java.lang.String label,
java.lang.String title)
getHeight
private static int getHeight(java.lang.String label)
actionPerformed
public void actionPerformed(jcurses.event.ActionEvent event)
- Required for implementing
jcurses.event.ActionListener
- Specified by:
actionPerformed in interface jcurses.event.ActionListener