uk.ac.roe.antigen.ant
Class PlainTextGUIInputHandler

java.lang.Object
  extended byorg.apache.tools.ant.input.DefaultInputHandler
      extended byuk.ac.roe.antigen.ant.PlainTextGUIInputHandler
All Implemented Interfaces:
org.apache.tools.ant.input.InputHandler

public class PlainTextGUIInputHandler
extends org.apache.tools.ant.input.DefaultInputHandler


Field Summary
protected  javax.swing.JButton btnSubmit
          The JButton that will passed the input to the input request.
protected  javax.swing.JDialog dlgInput
          The JDialog that contains the component in which the input is typed.
protected  javax.swing.JTextField fldInput
          The JComponent where the input is typed.
protected  java.awt.LayoutManager layout
          The layout of the dialog.
protected  javax.swing.JLabel lblInput
          The label of the input component.
 
Constructor Summary
PlainTextGUIInputHandler()
          Default no-arg constructor.
 
Method Summary
protected  void addWidgets()
           
protected  java.awt.Dimension getDialogLocation()
          Calculates the desired location of the dialog on the screen.
 void handleInput(org.apache.tools.ant.input.InputRequest request)
           
protected  void setEventListeners(org.apache.tools.ant.input.InputRequest request)
          Sets AWT Listeners to the components which will recieve or submit the events.
 
Methods inherited from class org.apache.tools.ant.input.DefaultInputHandler
getInputStream, getPrompt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dlgInput

protected javax.swing.JDialog dlgInput
The JDialog that contains the component in which the input is typed.


layout

protected java.awt.LayoutManager layout
The layout of the dialog.


lblInput

protected javax.swing.JLabel lblInput
The label of the input component.


fldInput

protected javax.swing.JTextField fldInput
The JComponent where the input is typed.


btnSubmit

protected javax.swing.JButton btnSubmit
The JButton that will passed the input to the input request.

Constructor Detail

PlainTextGUIInputHandler

public PlainTextGUIInputHandler()
Default no-arg constructor. Initializes the graphiacal components.

Method Detail

addWidgets

protected void addWidgets()

handleInput

public void handleInput(org.apache.tools.ant.input.InputRequest request)

setEventListeners

protected void setEventListeners(org.apache.tools.ant.input.InputRequest request)
Sets AWT Listeners to the components which will recieve or submit the events.

Parameters:
request - the InputRequest object, where the contents of the input component will be set.

getDialogLocation

protected java.awt.Dimension getDialogLocation()
Calculates the desired location of the dialog on the screen. By default it is in the center of the screen.

Returns:
the desired location of the dialog on the screen


Copyright © 2005 Institute for Astronomy, Royal Observatory of Edinburgh. All Rights Reserved.