public class SImageDisplay extends SPageNode
DEFAULT_UNSAVED_EDITION_CONTINUE_MESSAGE, DEFAULT_UNSAVED_EDITION_STOP_MESSAGE, DEFAULT_UNSAVED_EDITION_WARNING_MESSAGE
Constructor and Description |
---|
SImageDisplay(java.lang.String id,
SPage parentpage,
LargeBinaryDataElt inputdata)
creates an image display widget
|
SImageDisplay(java.lang.String id,
SPage parentpage,
LargeBinaryDataElt inputdata,
SInlineActionRef secondimagedisplayactionref,
SActionOutputDataRef<LargeBinaryDataEltType> inlineoutputdata)
creates an image display widget allowing to trigger a wider image as popup
when pressed (typically, thumbnail is shown on he object) without a label
|
SImageDisplay(java.lang.String id,
SPage parentpage,
LargeBinaryDataElt inputdata,
SInlineActionRef secondimagedisplayactionref,
SActionOutputDataRef<LargeBinaryDataEltType> inlineoutputdata,
java.lang.String label)
creates an image display widget allowing to trigger a wider image as popup
when pressed (typically, thumbnail is shown on he object) with a label
|
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 |
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 SImageDisplay(java.lang.String id, SPage parentpage, LargeBinaryDataElt inputdata)
id
- unique name of the widget in the scope of the next parent
significant widgetparentpage
- parent pageinputdata
- binary input attribute of the pagepublic SImageDisplay(java.lang.String id, SPage parentpage, LargeBinaryDataElt inputdata, SInlineActionRef secondimagedisplayactionref, SActionOutputDataRef<LargeBinaryDataEltType> inlineoutputdata)
id
- unique name of the widget in the scope of
the next parent significant widgetparentpage
- parent pageinputdata
- binary input attribute of the page for the
original image shown (the thumbnail)secondimagedisplayactionref
- reference to the inline action bringing
full contentinlineoutputdata
- output attribute of the inline action to
get content from to shown in popup.public SImageDisplay(java.lang.String id, SPage parentpage, LargeBinaryDataElt inputdata, SInlineActionRef secondimagedisplayactionref, SActionOutputDataRef<LargeBinaryDataEltType> inlineoutputdata, java.lang.String label)
id
- unique name of the widget in the scope of
the next parent significant widgetparentpage
- parent pageinputdata
- binary input attribute of the page for the
original image shown (the thumbnail)secondimagedisplayactionref
- reference to the inline action bringing
full contentinlineoutputdata
- output attribute of the inline action to
get content from to shown in popup.label
- label of the widget (to be shown similarly
to a field with a label on the left)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