org.salespointframework.desktop.formsheets
Class TextInputForm
java.lang.Object
org.salespointframework.core.FormSheet
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
Field Summary |
private java.lang.String[] |
m_asResult
The String array that will hold the text that was entered into the text field. |
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 |
m_asResult
private java.lang.String[] m_asResult
- The String array that will hold the text that was entered into the text field.
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.
getText
public java.lang.String getText()
- Get the current contents of the input field.