market.stdform
Class FSCheckable
java.lang.Object
|
+--sale.FormSheet
|
+--market.stdform.FSCheckable
- All Implemented Interfaces:
- Serializable
- public class FSCheckable
- extends FormSheet
- implements Serializable
This special FormSheet wraps "normal" FormSheets
and provides the possibilty to both
check special checkable text fields
for valid entries and to retrieve those entries.
Furthermore, this class generates error messages in case one or more of those special text fields
contain invalid entries.
However, checkable text fields
have already to be defined in the original
FormSheet.
- See Also:
- Serialized Form
Constructor Summary |
FSCheckable(FormSheet fs)
Creates an empty FormSheet, sets the content and the buttons of the FormSheet
which is passed as parameter as its own. |
Methods inherited from class sale.FormSheet |
addButton, addButton, addContentCreator, attach, attach, attach, buttonIterator, buttonIterator, cancel, close, detachDisplay, detachProcess, detachSalesPoint, fillBtnPanel, getButton, getButtonsLock, getCaption, getComponent, getComponentLock, getDisplay, getDisplayLock, getProcess, getSalesPoint, isCancelled, ok, removeAllButtons, removeButton, setCaption, setComponent, setWaitResponse, toString, waitResponse |
NO_ERRORMESSAGE
public static final int NO_ERRORMESSAGE
- See Also:
- Constant Field Values
FIRST_ERRORMESSAGE
public static final int FIRST_ERRORMESSAGE
- See Also:
- Constant Field Values
ALL_ERRORMESSAGES_SEQUENTIALLY
public static final int ALL_ERRORMESSAGES_SEQUENTIALLY
- See Also:
- Constant Field Values
ALL_ERRORMESSAGES_AT_ONCE
public static final int ALL_ERRORMESSAGES_AT_ONCE
- See Also:
- Constant Field Values
FSCheckable
public FSCheckable(FormSheet fs)
- Creates an empty FormSheet, sets the content and the buttons of the FormSheet
which is passed as parameter as its own.
- Parameters:
fs
- the FormSheet to be wrapped.
getButtons
public List getButtons()
- Returns:
- a List of all buttons in the
formSheet's
button bar
setButtons
public void setButtons(List buttonList)
- Sets buttons to the button bar.
- Parameters:
buttonList
- the list of buttons to be set.
getEntry
public String getEntry(int number)
- Parameters:
number
- the ID of the desired JTFCheckable
- Returns:
- the text of a
JTFCheckable
checkTextFields
public boolean checkTextFields(int option,
boolean sorted)
- Checks all
JTFCheckables
for validity entries.
- Parameters:
option
- the style of the error message
to be created.sorted
- the order of the error messages
to be created.
- Returns:
- true, if all checkable text fields contain a valid value, else false.
getSelectedRecord
public Object getSelectedRecord()
- Returns:
- the selected Record of an embedded
SingleTableFormSheet
.
If no SingleTableFormSheet is embedded, null is returned.
getFormSheet
public FormSheet getFormSheet()
- Returns:
- the FormSheet which is wrapped by this FSCheckable.