public class CGrid extends CPageNode
Constructor and Description |
---|
CGrid(MessageReader reader,
CPageSignifPath parentpath)
create a grid component
|
Modifier and Type | Method and Description |
---|---|
void |
copyTableToClipboard()
copy the content of the grid to the clipboard
|
CPageNode |
deepcopyWithCallback(Callback callback) |
void |
forceUpdateData(DataElt dataelt) |
DataElt |
getDataElt(DataEltType type,
java.lang.String eltname,
java.lang.String objectdataloc)
Returns a filled data element of the specified data element type.
|
ArrayDataElt<ObjectDataElt> |
getExternalContent(CPageData inputdata,
CPageDataRef dataref)
parses the page data to get an array of object data elements
|
javafx.scene.Node |
getNode(PageActionManager actionmanager,
CPageData inputdata,
javafx.stage.Window parentwindow,
javafx.scene.control.TabPane[] parenttabpanes) |
void |
launchupdate(javafx.event.ActionEvent event,
javafx.scene.input.MouseEvent mouseevent)
change the update state of the grid following user interaction
|
void |
mothball()
cleans the page node.
|
void |
reviewDataWarningForGrid()
When this method is triggered, it reviews the number of rows in the table
that have been edited, and according to total data table, create or remove
the data update warning
|
getParentpath, getPath, getSignificantpath, parseNode, setPageCatelog
public CGrid(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 CPageNode deepcopyWithCallback(Callback callback)
deepcopyWithCallback
in class CPageNode
callback
- the callback method, may be nullpublic void copyTableToClipboard()
public void launchupdate(javafx.event.ActionEvent event, javafx.scene.input.MouseEvent mouseevent)
event
- action eventmouseevent
- mouse eventpublic 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 ArrayDataElt<ObjectDataElt> getExternalContent(CPageData inputdata, CPageDataRef dataref)
inputdata
- page input datadataref
- reference of the data to use in the page input datapublic DataElt getDataElt(DataEltType type, java.lang.String eltname, java.lang.String objectdataloc)
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 void mothball()
CPageNode
public void reviewDataWarningForGrid()