public class MustLongField extends MustTextField
Modifier and Type | Field and Description |
---|---|
protected static boolean |
showZeroValueByDefault |
additionalTagFragments, capitalization, className, contentChangeListener, controlLength, enterAction, maxColumns, maxlength, registerFlag, required, size
context, editable, enabled, lastEditability, lastVisibility, name, nonstandardPanel, nonstandardPosition, sessionData, toolTipText, visible
Constructor and Description |
---|
MustLongField(SessionData sessionData)
Constructs a new long text field with a default size of 5 characters.
|
MustLongField(SessionData sessionData,
int length)
Constructs a new long text field with the specified size.
|
Modifier and Type | Method and Description |
---|---|
long |
getLongValue()
Returns the value of the field.
|
boolean |
hasContent()
Returns true if the field is valid and content not zero.
|
boolean |
isContentValid()
Returns true if the component's value is valid.
|
void |
setLongValue(long newValue)
Sets the value of the field.
|
void |
setMaxValue(long newMaxValue)
Sets the maximum value to be entered.
|
static void |
setShowZeroValueByDefault(boolean b)
Sets whether zero should be shown by digit 0
|
addContentChangeListener, addMoreCreationAspects, buildRemoteView, fetchValuesFromRequest, getApplication, getCreateTagElement, getText, getTextOrNullIfEmpty, hasFocus, isFilled, isModified, isRequirementUnfulfilled, isValid, perform, setApplication, setCapitalization, setColumns, setEditable, setEnterAction, setOnChoice, setRegisterFlag, setRequired, setText, setTextAsUserInput, setValues
destroy
beginAction, endAction, free, getContext, getName, getTranslation, isEnabled, isVisible, register, requestFocusInWindow, resetLastStatus, selectAll, setEnabled, setToolTipText, setVisible
public MustLongField(SessionData sessionData)
public MustLongField(SessionData sessionData, int length)
length
- the size of the long text fieldpublic static void setShowZeroValueByDefault(boolean b)
b
- whether zero should be shownpublic void setMaxValue(long newMaxValue)
newMaxValue
- the maximum value to be enteredpublic void setLongValue(long newValue)
newValue
- the new value of the fieldpublic long getLongValue()
public boolean isContentValid()
public boolean hasContent()
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de