mhframework.gui
Class MHGUIInputDialogScreen

java.lang.Object
  extended by mhframework.MHScreen
      extended by mhframework.gui.MHGUIDialogScreen
          extended by mhframework.gui.MHGUIInputDialogScreen
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, MHRenderable

public class MHGUIInputDialogScreen
extends MHGUIDialogScreen


Field Summary
protected  MHGUILabel _txtInput
           
protected  java.lang.StringBuffer input
           
 
Fields inherited from class mhframework.gui.MHGUIDialogScreen
_btnCancel, _btnOK, _messageFont, _titleFont, CANCEL_OPTION, OK_OPTION
 
Constructor Summary
MHGUIInputDialogScreen()
           
 
Method Summary
 java.lang.String getInputText()
           
 void keyPressed(java.awt.event.KeyEvent e)
          Delivers Key Pressed events to the GUI components.
 void render(java.awt.Graphics2D g2d)
          Draws the GUI components onto the sent Graphics object.
 
Methods inherited from class mhframework.gui.MHGUIDialogScreen
actionPerformed, advance, drawBackground, drawMessage, drawTitle, getBackgroundColor, getBackgroundImage, getMessage, getReturnCode, getTextColor, getTitle, getTitleColor, load, setBackgroundColor, setBackgroundImage, setButtonCaptions, setCancelButton, setMessage, setMessageFont, setOKButton, setTextColor, setTitle, setTitleColor, setTitleFont, unload
 
Methods inherited from class mhframework.MHScreen
add, centerText, getComponentList, getFocusedComponent, getNextScreen, getPreviousScreen, hideErrorMessage, isDisposable, isFinished, keyReleased, keyTyped, mouseClicked, mouseMoved, mousePressed, mouseReleased, nextFocusableComponent, prevFocusableComponent, remove, setDisposable, setFinished, setNextScreen, setPreviousScreen, showErrorMessage, tileImage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_txtInput

protected final MHGUILabel _txtInput

input

protected final java.lang.StringBuffer input
Constructor Detail

MHGUIInputDialogScreen

public MHGUIInputDialogScreen()
Method Detail

render

public void render(java.awt.Graphics2D g2d)
Description copied from class: MHScreen
Draws the GUI components onto the sent Graphics object. This method is intended to be overridden by methods that do their own specialized rendering, then call this base-class version to draw the components.

Specified by:
render in interface MHRenderable
Overrides:
render in class MHGUIDialogScreen
Parameters:
g2d - The Graphics object on which this object is to draw itself.

getInputText

public java.lang.String getInputText()

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
Description copied from class: MHScreen
Delivers Key Pressed events to the GUI components. This method is intended to be overridden in derived classes which may handle the event on their own, then optionally call this version.

Overrides:
keyPressed in class MHScreen
Parameters:
e - The event that triggered a call to this method.