E
- data object the tree array is displayingpublic class SObjectTreeArray<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 |
---|
SObjectTreeArray(java.lang.String name,
ObjectTreeDataElt<TObjectDataElt<E>> inputdata,
DataObjectDefinition<E> objectmodel,
SPage parent)
creates an object tree array without any special interaction inside the
widget for the array
|
SObjectTreeArray(java.lang.String name,
SInlineActionRef inlineaction,
SActionOutputDataRef<ObjectTreeDataEltType<TObjectDataEltType<E>>> inlineoutputdata,
DataObjectDefinition<E> objectmodel,
SPage parent)
create an object tree array that will display the result of an inline action
(action launched on the same page as the output is displayed)
|
Modifier and Type | Method and Description |
---|---|
void |
addDefaultAction(SActionRef defaultaction)
adds a default action that is triggered when a user double clicks after
selecting a line
|
void |
addDisplayProfile(DisplayProfile<E> profile)
adds a display profile (that will hide some fields)
|
void |
addFieldLabelOverrides(DataObjectFieldMarker<E> fieldmarker,
TextDataElt newlabel)
overrides a field label by a label given as an input attribute of the page.
|
<F extends SimpleDataEltType> |
getAttributeInput(AttributeMarker<E,F> marker)
gets the attribute specified on the selected data object as input for an
action in the page
|
java.lang.String |
getPathName() |
java.lang.String |
getWidgetCode() |
void |
hideAttribute(DataObjectFieldMarker<E> marker)
hide the given 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 |
setMinFieldPriority(int minfieldpriority)
sets the minimum priority of field to show
|
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 SObjectTreeArray(java.lang.String name, ObjectTreeDataElt<TObjectDataElt<E>> inputdata, DataObjectDefinition<E> objectmodel, SPage parent)
name
- name of the object tree arrayinputdata
- a tree of object data elementsobjectmodel
- the definition of the objectparent
- parent pagepublic SObjectTreeArray(java.lang.String name, SInlineActionRef inlineaction, SActionOutputDataRef<ObjectTreeDataEltType<TObjectDataEltType<E>>> inlineoutputdata, DataObjectDefinition<E> objectmodel, SPage parent)
name
- name of the widgetinlineaction
- inline actioninlineoutputdata
- output on the inline actionobjectmodel
- definition of the object being displayed in the tree
array widgetparent
- parent page of the widgetpublic void addFieldLabelOverrides(DataObjectFieldMarker<E> fieldmarker, TextDataElt newlabel)
fieldmarker
- maker of the fieldnewlabel
- a text attribute of the page to use as label for the given
labelpublic void setMinFieldPriority(int minfieldpriority)
minfieldpriority
- a number between -1000 and 1000 excludedpublic <F extends SimpleDataEltType> java.util.function.Function<SActionInputDataRef<F>,SActionDataLoc<F>> getAttributeInput(AttributeMarker<E,F> marker)
marker
- field markerpublic void addDisplayProfile(DisplayProfile<E> profile)
profile
- display profilepublic void addDefaultAction(SActionRef defaultaction)
defaultaction
- default action to triggerpublic 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
- attribute marker of the attribute to hidepublic 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