public class SFileChooser extends SPageNode
DEFAULT_UNSAVED_EDITION_CONTINUE_MESSAGE, DEFAULT_UNSAVED_EDITION_STOP_MESSAGE, DEFAULT_UNSAVED_EDITION_WARNING_MESSAGE
Constructor and Description |
---|
SFileChooser(SPage parentpage,
java.lang.String id,
java.lang.String title)
create a file chooser widget
|
Modifier and Type | Method and Description |
---|---|
java.util.function.Function<SActionInputDataRef<LargeBinaryDataEltType>,SActionDataLoc<LargeBinaryDataEltType>> |
getLargeBinaryInput()
get the reference to the file to be used as input for an action
|
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 SFileChooser(SPage parentpage, java.lang.String id, java.lang.String title)
parentpage
- parent pageid
- id of the widget, should be unique for the parent namespacetitle
- title of the file chooserpublic java.util.function.Function<SActionInputDataRef<LargeBinaryDataEltType>,SActionDataLoc<LargeBinaryDataEltType>> getLargeBinaryInput()
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