public class SIntegerField extends SPageNode implements SDefaultPath
DEFAULT_UNSAVED_EDITION_CONTINUE_MESSAGE, DEFAULT_UNSAVED_EDITION_STOP_MESSAGE, DEFAULT_UNSAVED_EDITION_WARNING_MESSAGE
Constructor and Description |
---|
SIntegerField(java.lang.String label,
java.lang.String datafieldname,
java.lang.String helper,
java.lang.Integer defaultvalue,
boolean businessparameter,
SPage parent,
boolean readonly,
boolean showintitle,
boolean showinbottomnotes,
SActionRef action)
creates an integer field with hardcoded default value
|
SIntegerField(java.lang.String label,
java.lang.String datafieldname,
java.lang.String helper,
IntegerDataElt linkeddata,
boolean businessparameter,
SPage parent,
boolean readonly,
boolean showintitle,
boolean showinbottomnotes,
SActionRef action)
creates an integer field
|
Modifier and Type | Method and Description |
---|---|
java.util.function.Function<SActionInputDataRef<IntegerDataEltType>,SActionDataLoc<IntegerDataEltType>> |
getIntegerInput()
gets a reference to the field payload to be used as input attribute for a
page action
|
java.lang.String |
getPathName() |
java.lang.String |
getWidgetCode() |
boolean |
hideComponent(SPageData pagedata,
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)
sets the width of the column when shown as an object array
|
void |
WritePayloadToCDL(MessageWriter writer,
SPageData data,
SecurityBuffer buffer)
writes the payload of the representation (without opening and closing
structure)
|
addCurrentWidgetToRoot, getPage, printPath, setParentSignifPath, setSignifPath, WriteToCDL
public SIntegerField(java.lang.String label, java.lang.String datafieldname, java.lang.String helper, IntegerDataElt linkeddata, boolean businessparameter, SPage parent, boolean readonly, boolean showintitle, boolean showinbottomnotes, SActionRef action)
label
- labek of the field in default languagedatafieldname
- unique name of the field in the next parent
significant widgethelper
- roll-over tiplinkeddata
- data to show (input of the page)businessparameter
- true if business parameterparent
- parent pagereadonly
- true if read-onlyshowintitle
- true if shown both in title and in main section of
the data objectshowinbottomnotes
- true if shown in bottom notes of the data objectaction
- default action when enter is pressed inside the
field in edition modepublic SIntegerField(java.lang.String label, java.lang.String datafieldname, java.lang.String helper, java.lang.Integer defaultvalue, boolean businessparameter, SPage parent, boolean readonly, boolean showintitle, boolean showinbottomnotes, SActionRef action)
label
- labek of the field in default languagedatafieldname
- unique name of the field in the next parent
significant widgethelper
- roll-over tipdefaultvalue
- an hard-coded integer valuebusinessparameter
- true if business parameterparent
- parent pagereadonly
- true if read-onlyshowintitle
- true if shown both in title and in main section of
the data objectshowinbottomnotes
- true if shown in bottom notes of the data objectaction
- default action when enter is pressed inside the
field in edition modepublic void setPreferedDisplayInTable(int prefereddisplayintable)
prefereddisplayintable
- width of the column in characterspublic java.util.function.Function<SActionInputDataRef<IntegerDataEltType>,SActionDataLoc<IntegerDataEltType>> getIntegerInput()
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 data, 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 pagedata, SecurityBuffer buffer)
SPageNode
hideComponent
in class SPageNode
public java.lang.String getPathName()
getPathName
in interface SDefaultPath