E
- type of data object being searchedpublic class SFieldSearcher<E extends DataObject<E> & UniqueidentifiedInterface<E>> extends SPageNode implements SDefaultPath
DEFAULT_UNSAVED_EDITION_CONTINUE_MESSAGE, DEFAULT_UNSAVED_EDITION_STOP_MESSAGE, DEFAULT_UNSAVED_EDITION_WARNING_MESSAGE
Constructor and Description |
---|
SFieldSearcher(java.lang.String name,
java.lang.String addlabel,
java.lang.String closelabel,
java.lang.String rollovertip,
SInlineActionRef search,
SActionRef action,
DataObjectDefinition<E> objectmodel,
DataObjectFieldMarker<E> fieldtoshow,
SPage parent) |
SFieldSearcher(java.lang.String name,
java.lang.String addlabel,
java.lang.String closelabel,
java.lang.String rollovertip,
SInlineActionRef search,
SInlineActionRef inlineaction,
DataObjectDefinition<E> objectmodel,
DataObjectFieldMarker<E> fieldtoshow,
SPage parent) |
Modifier and Type | Method and Description |
---|---|
void |
addBottomAction(SActionRef actionatbottom,
java.lang.String bottomactionlabel,
boolean showonlyifemptysearch)
The action at bottom displays after the search button is pressed.
|
SActionDataLoc<TObjectDataEltType<E>> |
getObject(SActionInputDataRef<TObjectDataEltType<E>> objectargument) |
java.util.function.Function<SActionInputDataRef<ArrayDataEltType<TObjectIdDataEltType<E>>>,SActionDataLoc<ArrayDataEltType<TObjectIdDataEltType<E>>>> |
getObjectIdArrayInput()
gets the data object id of the object selected in the searcher, to be used in
the action as a one element array
|
java.util.function.Function<SActionInputDataRef<TObjectIdDataEltType<E>>,SActionDataLoc<TObjectIdDataEltType<E>>> |
getObjectIdInput()
gets the data object id of the object selected by the searcher to be used in
the action
|
java.util.function.Function<SActionInputDataRef<TObjectDataEltType<E>>,SActionDataLoc<TObjectDataEltType<E>>> |
getObjectInput()
gets the full data object of the object selected in the searcher, to be used
in the action
|
java.lang.String |
getPathName() |
java.util.function.Function<SActionInputDataRef<TextDataEltType>,SActionDataLoc<TextDataEltType>> |
getSearchTextInput()
gets the text entered in the search widget as action attribute
|
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 |
setSearchInlineOutput(SActionOutputDataRef<ArrayDataEltType<TObjectDataEltType<E>>> inlineoutputdata)
sets the result of the search inside the widget
|
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 SFieldSearcher(java.lang.String name, java.lang.String addlabel, java.lang.String closelabel, java.lang.String rollovertip, SInlineActionRef search, SActionRef action, DataObjectDefinition<E> objectmodel, DataObjectFieldMarker<E> fieldtoshow, SPage parent)
name
- name of the widget (should be unique in parent widget with
a significant path)addlabel
- label showing on the buttoncloselabel
- label when the field is closed (for example 'add' to
explain people should add a new reference to link here)rollovertip
- tip that will show on the buttonsearch
- action launched for search. This action should have one
string argument and gives back an array of objectsaction
- action to trigger after the searched object has been
selectedobjectmodel
- definition of the data objectfieldtoshow
- field to show in searcher. Typically, this is the object
numberparent
- parent pagepublic SFieldSearcher(java.lang.String name, java.lang.String addlabel, java.lang.String closelabel, java.lang.String rollovertip, SInlineActionRef search, SInlineActionRef inlineaction, DataObjectDefinition<E> objectmodel, DataObjectFieldMarker<E> fieldtoshow, SPage parent)
name
- name of the widget (should be unique in parent widget
with a significant path)addlabel
- label showing on the buttoncloselabel
- label when the field is closed (for example 'add' to
explain people should add a new reference to link here)rollovertip
- tip that will show on the buttonsearch
- action launched for search. This action should have one
string argument and gives back an array of objectsinlineaction
- inline action triggered when object is selectedobjectmodel
- definition of the data object shown in this widgetfieldtoshow
- field to show (typically the number)parent
- parent page for the widgetpublic void addBottomAction(SActionRef actionatbottom, java.lang.String bottomactionlabel, boolean showonlyifemptysearch)
actionatbottom
- bottomactionlabel
- showonlyifemptysearch
- public java.util.function.Function<SActionInputDataRef<TObjectIdDataEltType<E>>,SActionDataLoc<TObjectIdDataEltType<E>>> getObjectIdInput()
public SActionDataLoc<TObjectDataEltType<E>> getObject(SActionInputDataRef<TObjectDataEltType<E>> objectargument)
public java.util.function.Function<SActionInputDataRef<TObjectDataEltType<E>>,SActionDataLoc<TObjectDataEltType<E>>> getObjectInput()
public java.util.function.Function<SActionInputDataRef<ArrayDataEltType<TObjectIdDataEltType<E>>>,SActionDataLoc<ArrayDataEltType<TObjectIdDataEltType<E>>>> getObjectIdArrayInput()
public java.util.function.Function<SActionInputDataRef<TextDataEltType>,SActionDataLoc<TextDataEltType>> getSearchTextInput()
public void setSearchInlineOutput(SActionOutputDataRef<ArrayDataEltType<TObjectDataEltType<E>>> inlineoutputdata)
inlineoutputdata
- result of the search (array of objects)public java.lang.String getPathName()
getPathName
in interface SDefaultPath
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