public class SPopupButton extends SPageNode
DEFAULT_UNSAVED_EDITION_CONTINUE_MESSAGE, DEFAULT_UNSAVED_EDITION_STOP_MESSAGE, DEFAULT_UNSAVED_EDITION_WARNING_MESSAGE
Constructor and Description |
---|
SPopupButton(SPage parentpage,
SPageNode payload,
java.lang.String label,
java.lang.String rollovertip)
creates a popup button allowing scroll on the popup content
|
SPopupButton(SPage parentpage,
SPageNode payload,
java.lang.String label,
java.lang.String rollovertip,
boolean allowscroll)
creates a popup button specifying if scroll on popup content is allowed or
not
|
SPopupButton(SPage parentpage,
SPageNode payload,
java.lang.String label,
java.lang.String rollovertip,
boolean allowscroll,
boolean showunderwidget,
SActionRef mainpopupaction)
creates a popup button specifying if scroll is allowed, and specifying the
main popup action
|
SPopupButton(SPage parentpage,
SPageNode payload,
java.lang.String label,
java.lang.String rollovertip,
boolean allowscroll,
SActionRef mainpopupaction)
creates a popup button specifying if scroll is allowed, and specifying the
main popup action
|
SPopupButton(SPage parentpage,
SPageNode payload,
java.lang.String label,
java.lang.String rollovertip,
SActionRef mainpopupaction)
creates a popup button allowing scroll, with a specified main popup action
|
Modifier and Type | Method and Description |
---|---|
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 |
setMainPopupAction(SActionRef mainpopupaction)
sets the main popup action.
|
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 SPopupButton(SPage parentpage, SPageNode payload, java.lang.String label, java.lang.String rollovertip)
parentpage
- parent page of the popup buttonspayload
- content of the popup window displayed when popup button is
pressedlabel
- label of the popup buttonrollovertip
- rollover tip for the popup buttonpublic SPopupButton(SPage parentpage, SPageNode payload, java.lang.String label, java.lang.String rollovertip, boolean allowscroll)
parentpage
- parent page of the popup buttonspayload
- content of the popup window displayed when popup button is
pressedlabel
- label of the popup buttonrollovertip
- rollover tip for the popup buttonallowscroll
- true if scroll is allowed on the popup payload, false elsepublic SPopupButton(SPage parentpage, SPageNode payload, java.lang.String label, java.lang.String rollovertip, SActionRef mainpopupaction)
parentpage
- parent page of the popup buttonspayload
- content of the popup window displayed when popup
button is pressedlabel
- label of the popup buttonrollovertip
- rollover tip for the popup buttonmainpopupaction
- main popup actionpublic SPopupButton(SPage parentpage, SPageNode payload, java.lang.String label, java.lang.String rollovertip, boolean allowscroll, SActionRef mainpopupaction)
parentpage
- parent page of the popup buttonspayload
- content of the popup window displayed when popup
button is pressedlabel
- label of the popup buttonrollovertip
- rollover tip for the popup buttonallowscroll
- true if scroll is allowed or false if notmainpopupaction
- main popup actionpublic SPopupButton(SPage parentpage, SPageNode payload, java.lang.String label, java.lang.String rollovertip, boolean allowscroll, boolean showunderwidget, SActionRef mainpopupaction)
parentpage
- parent page of the popup buttonspayload
- content of the popup window displayed when popup
button is pressedlabel
- label of the popup buttonrollovertip
- rollover tip for the popup buttonallowscroll
- true if scroll is allowed or false if notshowunderwidget
- if true, content of the popup is shown under the
button, if false, shown at the middle of the pagemainpopupaction
- main popup actionpublic void setMainPopupAction(SActionRef mainpopupaction)
mainpopupaction
- main action popuppublic 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 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