E
- data object being shown in the object bandpublic class SObjectBand<E extends DataObject<E>> extends SPageNode implements SDefaultPath
DEFAULT_UNSAVED_EDITION_CONTINUE_MESSAGE, DEFAULT_UNSAVED_EDITION_STOP_MESSAGE, DEFAULT_UNSAVED_EDITION_WARNING_MESSAGE
Constructor and Description |
---|
SObjectBand(java.lang.String name,
ArrayDataElt<TObjectDataElt<E>> inputdata,
DataObjectDefinition<E> objectmodel,
SPage parent)
creates an object band widget inside a page declaration
|
Modifier and Type | Method and Description |
---|---|
void |
addDisplayProfile(DisplayProfile<E> profile)
adds a display profile to hide some specific fields
|
<F extends SimpleDataEltType> |
getAttributeInput(AttributeMarker<E,F> marker)
gets a reference of the attribute for the object selected in the object band.
|
java.lang.String |
getPathName() |
java.lang.String |
getWidgetCode() |
void |
hideAttribute(DataObjectFieldMarker<E> marker)
allows to hide a specific attribute
|
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 |
setActionGroup(SPageNode actiongroup)
sets a node as action group.
|
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 SObjectBand(java.lang.String name, ArrayDataElt<TObjectDataElt<E>> inputdata, DataObjectDefinition<E> objectmodel, SPage parent)
name
- unique name in the context of parent significant widgetinputdata
- input array of objecs to showobjectmodel
- definition of the data objectparent
- parent pagepublic void setActionGroup(SPageNode actiongroup)
actiongroup
- action group.public void addDisplayProfile(DisplayProfile<E> profile)
profile
- display profile to hide some specific fieldspublic <F extends SimpleDataEltType> java.util.function.Function<SActionInputDataRef<F>,SActionDataLoc<F>> getAttributeInput(AttributeMarker<E,F> marker)
marker
- marker of the attribute to use as action attributepublic java.lang.String getPathName()
getPathName
in interface SDefaultPath
public 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 hideAttribute(DataObjectFieldMarker<E> marker)
marker
- marker of the attribute to addpublic 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