public class CPopupButton extends CPageNode
Constructor and Description |
---|
CPopupButton(MessageReader reader,
CPageSignifPath parentpath)
creates the widget from a message from the server
|
Modifier and Type | Method and Description |
---|---|
CPageNode |
deepcopyWithCallback(Callback callback) |
void |
forceUpdateData(DataElt dataelt) |
static void |
generateAndShowPopup(javafx.scene.Node parentnode,
javafx.scene.Node popupnode,
CPageData inputdata,
javafx.stage.Window parentwindow,
boolean allowscroll,
boolean showunderwidget)
generate and shows the popup
|
DataElt |
getDataElt(DataEltType type,
java.lang.String eltname,
java.lang.String objectdataloc)
Returns a filled data element of the specified data element type.
|
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 CPopupButton(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 static void generateAndShowPopup(javafx.scene.Node parentnode, javafx.scene.Node popupnode, CPageData inputdata, javafx.stage.Window parentwindow, boolean allowscroll, boolean showunderwidget)
parentnode
- parent javafx nodepopupnode
- node to show in the popup paneinputdata
- page input dataparentwindow
- parent javafx windowallowscroll
- if true, allows scrollshowunderwidget
- if true, shows under widget, if false, shows at the
middle of the application windowpublic 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 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 CPageNode deepcopyWithCallback(Callback callback)
deepcopyWithCallback
in class CPageNode
callback
- the callback method, may be null