public class MustDecimalField extends MustInputField
Modifier and Type | Field and Description |
---|---|
protected double |
currentValue |
protected double |
editBeginValue |
context, editable, enabled, lastEditability, lastVisibility, name, nonstandardPanel, nonstandardPosition, sessionData, toolTipText, visible
Constructor and Description |
---|
MustDecimalField(SessionData sessionData)
Constructs a new decimal text field.
|
Modifier and Type | Method and Description |
---|---|
void |
buildRemoteView(ToAppletWriter out)
Build remote view.
|
void |
fetchValuesFromRequest(GeneralizedRequest request) |
protected java.lang.String |
getCreateTagElement() |
double |
getDoubleValue()
Returns the value of the component as a double.
|
boolean |
isFilled()
Indicates whether the component has a value.
|
boolean |
isModified()
Checks if there have been any modifications made on the current row.
|
boolean |
isValid()
Returns true if the component's value is valid.
|
void |
setDoubleAsEditBeginValue(double newDoubleValue)
Sets the double as edit begin value which causes isModified to return false
as long as user doesn't change the value.
|
void |
setDoubleValue(double value)
Sets the double value.
|
void |
setRequired(boolean required) |
void |
setValues(ToAppletWriter out) |
destroy
beginAction, endAction, free, getContext, getName, getTranslation, isEnabled, isVisible, register, requestFocusInWindow, resetLastStatus, selectAll, setEditable, setEnabled, setToolTipText, setVisible
protected double editBeginValue
protected double currentValue
public MustDecimalField(SessionData sessionData)
public void setRequired(boolean required)
public double getDoubleValue() throws java.text.ParseException
java.text.ParseException
public void setDoubleValue(double value)
value
- the double to be formatted as textpublic void setDoubleAsEditBeginValue(double newDoubleValue)
newDoubleValue
- the new double valuepublic void buildRemoteView(ToAppletWriter out)
AppletTalker
buildRemoteView
in interface AppletTalker
buildRemoteView
in class RemoteElement
out
- the writer which will be read by the appletprotected java.lang.String getCreateTagElement()
public void setValues(ToAppletWriter out)
setValues
in interface RemoteContent
setValues
in class RemoteElement
public void fetchValuesFromRequest(GeneralizedRequest request)
public boolean isFilled()
public boolean isModified()
public boolean isValid()
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de