public class SChoiceTextField<E extends FieldChoiceDefinition<E>> extends SPageNode implements SDefaultPath
DEFAULT_UNSAVED_EDITION_CONTINUE_MESSAGE, DEFAULT_UNSAVED_EDITION_STOP_MESSAGE, DEFAULT_UNSAVED_EDITION_WARNING_MESSAGE
Constructor and Description |
---|
SChoiceTextField(java.lang.String label,
java.lang.String datafieldname,
java.lang.String helper,
E choicedefinition,
ChoiceDataElt linkeddata,
SPage parentpage,
boolean readonly,
SActionRef action)
creates a choice text field
|
SChoiceTextField(java.lang.String label,
java.lang.String datafieldname,
java.lang.String helper,
E choicedefinition,
ChoiceValue defaultvalue,
SPage parentpage,
boolean businessparameter,
boolean readonly,
boolean showintitle,
boolean showinbottomnotes,
SActionRef action)
creates a choice text field
|
SChoiceTextField(java.lang.String label,
java.lang.String datafieldname,
java.lang.String helper,
E choicedefinition,
SPage parentpage,
boolean businessparameter,
boolean readonly,
boolean showintitle,
boolean showinbottomnotes,
SActionRef action)
creates a choice text field
|
Modifier and Type | Method and Description |
---|---|
java.util.function.Function<SActionInputDataRef<ChoiceDataEltType>,SActionDataLoc<ChoiceDataEltType>> |
getChoiceInput() |
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 |
setCompactShow()
if true, the field will be compact, if false, the field will align on general
object layout
|
void |
setCompactShow(boolean twolines)
sets compact show, potentially showing the label on a top line, and the
choice box on the bottom line
|
void |
setLinkedData(ChoiceDataElt linkeddata)
sets the linked data to put in the choice text field
|
void |
setPreferedDisplayInTable(int prefereddisplayintable)
if used in a data object, allows to set the default width of the column
|
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 SChoiceTextField(java.lang.String label, java.lang.String datafieldname, java.lang.String helper, E choicedefinition, ChoiceDataElt linkeddata, SPage parentpage, boolean readonly, SActionRef action)
label
- label of the field (what is shown in default languagedatafieldname
- name of the data field (without spaces or special
charactershelper
- tooltip shown in roll-over mousechoicedefinition
- definition of the choice valuelinkeddata
- linked data in the actionparentpage
- parent page for the widgetreadonly
- if true, field is only read-onlyaction
- action ot launch by default after value is chosenpublic SChoiceTextField(java.lang.String label, java.lang.String datafieldname, java.lang.String helper, E choicedefinition, ChoiceValue defaultvalue, SPage parentpage, boolean businessparameter, boolean readonly, boolean showintitle, boolean showinbottomnotes, SActionRef action)
label
- label of the field (what is shown in default
languagedatafieldname
- name of the data field (without spaces or special
charactershelper
- tooltip shown in roll-over mousechoicedefinition
- definition of the choice valuedefaultvalue
- value to show if not input is givenparentpage
- parent business pagebusinessparameter
- true if business parameterreadonly
- true if read-onlyshowintitle
- when part of a data object, show the field in title
(and also in normal seciton)showinbottomnotes
- when part of a data obejct, show only in the bottom
notesaction
- default action to launchpublic SChoiceTextField(java.lang.String label, java.lang.String datafieldname, java.lang.String helper, E choicedefinition, SPage parentpage, boolean businessparameter, boolean readonly, boolean showintitle, boolean showinbottomnotes, SActionRef action)
label
- label of the field (what is shown in default
languagedatafieldname
- name of the data field (without spaces or special
charactershelper
- tooltip shown in roll-over mousechoicedefinition
- definition of the choice valueparentpage
- parent business pagebusinessparameter
- true if business parameterreadonly
- true if read-onlyshowintitle
- when part of a data object, show the field in title
(and also in normal seciton)showinbottomnotes
- when part of a data obejct, show only in the bottom
notesaction
- default action to launchpublic void setLinkedData(ChoiceDataElt linkeddata)
linkeddata
- linked datapublic void setCompactShow()
public void setCompactShow(boolean twolines)
twolines
- true if two linespublic void setPreferedDisplayInTable(int prefereddisplayintable)
prefereddisplayintable
- width of the column in characterspublic java.lang.String getPathName()
getPathName
in interface SDefaultPath
public 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
public java.util.function.Function<SActionInputDataRef<ChoiceDataEltType>,SActionDataLoc<ChoiceDataEltType>> getChoiceInput()
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 problems