public class SDecimalField extends SPageNode implements SDefaultPath
DEFAULT_UNSAVED_EDITION_CONTINUE_MESSAGE, DEFAULT_UNSAVED_EDITION_STOP_MESSAGE, DEFAULT_UNSAVED_EDITION_WARNING_MESSAGE
Constructor and Description |
---|
SDecimalField(java.lang.String label,
java.lang.String datafieldname,
java.lang.String helper,
int precision,
int scale,
java.math.BigDecimal defaultvalue,
boolean businessparameter,
SPage parent,
boolean readonly,
boolean showintitle,
boolean showinbottomnotes,
SDecimalFormatter decimalformatter,
SActionRef action)
Creates a new Decimal Field
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPathName() |
java.lang.String |
getWidgetCode() |
boolean |
hideComponent(SPageData input,
SecurityBuffer buffer)
This method allows to hide component in a layout if the user is not
authorized
|
void |
populateDown(SPageSignifPath parentpath,
SPageNode[] widgetpathtoroot)
this method should be recursively called from parent structure to all its
children
|
void |
setPreferedDisplayInTable(int prefereddisplayintable) |
void |
setReadOnly()
forces the field to read-only
|
void |
WritePayloadToCDL(MessageWriter writer,
SPageData input,
SecurityBuffer buffer)
writes the payload of the representation (without opening and closing
structure)
|
addCurrentWidgetToRoot, getPage, printPath, setParentSignifPath, setSignifPath, WriteToCDL
public SDecimalField(java.lang.String label, java.lang.String datafieldname, java.lang.String helper, int precision, int scale, java.math.BigDecimal defaultvalue, boolean businessparameter, SPage parent, boolean readonly, boolean showintitle, boolean showinbottomnotes, SDecimalFormatter decimalformatter, SActionRef action)
label
- user-friendly label in the main application languagedatafieldname
- unique name of the field in the objecthelper
- long explanation for mouse roll-overprecision
- precision in the sense of java BigDecimal (total
number of digits)scale
- scale in the sense of java BigDecimal (number of
digits right of comma)defaultvalue
- a default value if no data is providedbusinessparameter
- true if the field is standalone, false if the field
is part of an objectparent
- parent page of the componentreadonly
- true if field should be read-onlyshowintitle
- if in an object, put the field in titleshowinbottomnotes
- if in an object, put the field in the bottom notesdecimalformatter
- a decimal formatteraction
- action to trigger in case the user double clickspublic void setPreferedDisplayInTable(int prefereddisplayintable)
prefereddisplayintable
- the width of the field in characters if
displayed in a tablepublic void setReadOnly()
public java.lang.String getPathName()
getPathName
in interface SDefaultPath
public void populateDown(SPageSignifPath parentpath, SPageNode[] widgetpathtoroot)
SPageNode
populateDown
in class SPageNode
parentpath
- the parent significant pathwidgetpathtoroot
- an array of all the page nodes for traceability in
case of problemspublic void WritePayloadToCDL(MessageWriter writer, SPageData input, SecurityBuffer buffer) throws java.io.IOException
SPageNode
WritePayloadToCDL
in class SPageNode
writer
- the CDL writer on which to write the messagejava.io.IOException
public java.lang.String getWidgetCode()
getWidgetCode
in class SPageNode
public boolean hideComponent(SPageData input, SecurityBuffer buffer)
SPageNode
hideComponent
in class SPageNode