org.salespointframework.desktop.formsheets
Class TextInputForm

java.lang.Object
  extended by org.salespointframework.core.FormSheet
      extended by org.salespointframework.desktop.formsheets.TextInputForm

public class TextInputForm
extends FormSheet

A simple FormSheet that displays a label and an input line.

The FormSheet uses a FormSheetContentCreator to create its contents.

Since:
v2.0
Version:
2.0 12/07/1999
Author:
Steffen Zschaler

Nested Class Summary
 
Nested classes/interfaces inherited from class org.salespointframework.core.FormSheet
FormSheet.FormButton
 
Field Summary
private  java.lang.String[] m_asResult
          The String array that will hold the text that was entered into the text field.
 
Fields inherited from class org.salespointframework.core.FormSheet
BTNID_CANCEL, BTNID_OK, BUTTONBAR_BOTTOM, BUTTONBAR_LEFT, BUTTONBAR_NONE, BUTTONBAR_RIGHT, BUTTONBAR_TOP, m_fCancelled
 
Constructor Summary
TextInputForm(java.lang.String sCaption, java.lang.String sLabel, java.lang.String sInitialText)
          Create a new TextInputForm.
TextInputForm(java.lang.String sCaption, java.lang.String sLabel, java.lang.String sInitialText, boolean fWaitResponse)
          Create a new TextInputForm.
 
Method Summary
 java.lang.String getText()
          Get the current contents of the input field.
 
Methods inherited from class org.salespointframework.core.FormSheet
addButton, addButton, addContentCreator, attach, attach, attach, buttonIterator, buttonIterator, cancel, close, copyFormSheetDnDComponents, customizeButtonbar, detachDisplay, detachProcess, detachSalesPoint, fillBtnPanel, getButton, getButtonbarPosition, getButtonsLock, getCaption, getComponent, getComponentLock, getDisplay, getDisplayLock, getDragLayer, getModalLayer, getPopupLayer, getProcess, getSalesPoint, getWrappedComponent, isCancelled, letFollowComponentOnDragLayer, ok, paintButtonBarBackground, registerDnDComponent, removeAllButtons, removeAllDndComponents, removeButton, removeDnDComponent, setButtonbarPosition, setCaption, setComponent, setFormsheetCustomizationListener, setWaitResponse, stopFollowComponentOnDragLayer, toString, waitResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_asResult

private java.lang.String[] m_asResult
The String array that will hold the text that was entered into the text field.

Constructor Detail

TextInputForm

public TextInputForm(java.lang.String sCaption,
                     java.lang.String sLabel,
                     java.lang.String sInitialText,
                     boolean fWaitResponse)
Create a new TextInputForm.

Parameters:
sCaption - the caption of the FormSheet.
sLabel - the label to be put at the top of the FormSheet.
sInitialText - the text that is to appear in the input line when the user has not entered anything yet.
fWaitResponse - the initial value for the "FormSheet.waitResponse()" property.

TextInputForm

public TextInputForm(java.lang.String sCaption,
                     java.lang.String sLabel,
                     java.lang.String sInitialText)
Create a new TextInputForm. The value for the "FormSheet.waitResponse()" property will initially be set to true.

Parameters:
sCaption - the caption of the FormSheet.
sLabel - the label to be put at the top of the FormSheet.
sInitialText - the text that is to appear in the input line when the user has not entered anything yet.
Method Detail

getText

public java.lang.String getText()
Get the current contents of the input field.