public class SActionButton extends SPageNode implements SDefaultPath
DEFAULT_UNSAVED_EDITION_CONTINUE_MESSAGE, DEFAULT_UNSAVED_EDITION_STOP_MESSAGE, DEFAULT_UNSAVED_EDITION_WARNING_MESSAGE
Constructor and Description |
---|
SActionButton(java.lang.String label,
SActionRef action,
boolean forcepopupcloseforinline,
SPage parent)
creates an action button that will close the popup the button is part of
|
SActionButton(java.lang.String label,
SActionRef action,
SPage parent)
creates an action button
|
SActionButton(java.lang.String label,
java.lang.String rollovertip,
SActionRef action,
boolean forcepopupcloseforinline,
SPage parent)
Creates an action button that will close the popup the button is part of and
with a roll-over tip
|
SActionButton(java.lang.String label,
java.lang.String rollovertip,
SActionRef action,
SPage parent)
creates an action button with the given roll-over tip
|
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 |
setConditionalShow(ChoiceDataElt<?> conditionalshow)
puts condition to show the button depending on data sent to the page
|
void |
setConfirmationMessage(java.lang.String confirmationmessage)
will send a confirmation message when button is clicked with continue and
cancel as options.
|
void |
setConfirmationMessage(java.lang.String confirmationmessage,
java.lang.String oklabel,
java.lang.String kolabel)
sets a confirmation with defined OK and KO label.
|
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 SActionButton(java.lang.String label, SActionRef action, SPage parent)
label
- label in main languageaction
- action referenceparent
- parent pagepublic SActionButton(java.lang.String label, java.lang.String rollovertip, SActionRef action, SPage parent)
label
- label in main languagerollovertip
- tip shown in mouse roll-overaction
- action referenceparent
- parent pagepublic SActionButton(java.lang.String label, SActionRef action, boolean forcepopupcloseforinline, SPage parent)
label
- label in main languageaction
- action referenceforcepopupcloseforinline
- will close the popup window the button is
part on while executing an inline actionparent
- parent pagepublic SActionButton(java.lang.String label, java.lang.String rollovertip, SActionRef action, boolean forcepopupcloseforinline, SPage parent)
label
- label in main languagerollovertip
- tip shown in mouse roll-overaction
- action referenceforcepopupcloseforinline
- will close the popup window the button is
part on while executing an inline actionparent
- parent pagepublic void setConditionalShow(ChoiceDataElt<?> conditionalshow)
choiceDataElt
- a system boolean choice value. button will display if
value is YESpublic void setConfirmationMessage(java.lang.String confirmationmessage)
confirmationmessage
- the confirmation messagepublic void setConfirmationMessage(java.lang.String confirmationmessage, java.lang.String oklabel, java.lang.String kolabel)
confirmationmessage
- message shown in confirmation popupoklabel
- label to press to continuekolabel
- label to press to stiopublic 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 getPathName()
getPathName
in interface SDefaultPath
public java.lang.String getWidgetCode()
getWidgetCode
in class SPageNode
public boolean hideComponent(SPageData input, SecurityBuffer buffer)
SPageNode
hideComponent
in class SPageNode
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