public class CObjectDisplay extends CPageNode
Constructor and Description |
---|
CObjectDisplay(MessageReader reader,
CPageSignifPath parentpath)
creates an object display from a message from the server
|
Modifier and Type | Method and Description |
---|---|
CPageNode |
deepcopyWithCallback(Callback callback) |
void |
forceUpdateData(DataElt dataelt) |
static javafx.scene.Node |
generateObjectDisplay(ObjectDataElt objectdataelement,
CPageSignifPath path,
java.util.ArrayList<CBusinessField<?>> payloadlist,
boolean hidereadonly,
boolean readonly,
PageActionManager actionmanager,
CPageAction action,
java.lang.String label,
CPageData inputdata,
javafx.stage.Window parentwindow,
javafx.scene.control.TabPane[] parenttabpanes)
generate the javafx node holding an object data element
|
DataElt |
getDataElt(DataEltType type,
java.lang.String eltname,
java.lang.String objectfieldname)
Returns a filled data element of the specified data element type.
|
ObjectDataElt |
getExternalContent(CPageData inputdata,
CPageDataRef dataref)
extracts the object data from page data
|
javafx.scene.Node |
getNode(PageActionManager actionmanager,
CPageData inputdata,
javafx.stage.Window parentwindow,
javafx.scene.control.TabPane[] parenttabpanes) |
void |
mothball()
cleans the page node.
|
getParentpath, getPath, getSignificantpath, parseNode, setPageCatelog
public CObjectDisplay(MessageReader reader, CPageSignifPath parentpath) throws OLcRemoteException, java.io.IOException
reader
- message reader from the serverparentpath
- parent pathOLcRemoteException
- if anything bad happens on the serverjava.io.IOException
- if any transmission error appears while reading
the messagepublic ObjectDataElt getExternalContent(CPageData inputdata, CPageDataRef dataref)
inputdata
- all the page datadataref
- reference to the data element holding the object datapublic static javafx.scene.Node generateObjectDisplay(ObjectDataElt objectdataelement, CPageSignifPath path, java.util.ArrayList<CBusinessField<?>> payloadlist, boolean hidereadonly, boolean readonly, PageActionManager actionmanager, CPageAction action, java.lang.String label, CPageData inputdata, javafx.stage.Window parentwindow, javafx.scene.control.TabPane[] parenttabpanes)
objectdataelement
- object datapath
- pathpayloadlist
- list of fieldshidereadonly
- if true, hide read-only fieldsreadonly
- if true, object is read-only, if false, node is read-writeactionmanager
- action manageraction
- action to triggerlabel
- plain labelinputdata
- page dataparentwindow
- parent windowparenttabpanes
- parent panes if relevantpublic javafx.scene.Node getNode(PageActionManager actionmanager, CPageData inputdata, javafx.stage.Window parentwindow, javafx.scene.control.TabPane[] parenttabpanes)
getNode
in class CPageNode
actionmanager
- the action manager on which to register all widgets
that trigger an actioninputdata
- the list of input data of the pageparentwindow
- the javafx window this widget will be drawn inparenttabpanes
- parenttabpanes that should be triggered a layout when
this component resizespublic DataElt getDataElt(DataEltType type, java.lang.String eltname, java.lang.String objectfieldname)
CPageNode
getDataElt
in class CPageNode
type
- requested type (will be tested by the widget to see if
valid)eltname
- the name that will be put to the data elementpublic void forceUpdateData(DataElt dataelt)
forceUpdateData
in class CPageNode
dataelt
- adds data element to the nodepublic CPageNode deepcopyWithCallback(Callback callback)
deepcopyWithCallback
in class CPageNode
callback
- the callback method, may be null