public class CComponentBand extends CPageNode
Modifier and Type | Field and Description |
---|---|
static int |
DIRECTION_DOWN
vertical band, adding widgets from top to bottom
|
static int |
DIRECTION_LEFT
horizontal band, adding widgets from right to left
|
static int |
DIRECTION_RIGHT
horizontal band, adding widgets from left to right
|
static int |
DIRECTION_UP
vertical band, adding widgets from bottom to top
|
Constructor and Description |
---|
CComponentBand(int direction,
CPageSignifPath parentpath)
creates a component band with given direction and parent parent
|
CComponentBand(MessageReader reader,
CPageSignifPath parentpath)
Creates a component band from the server
|
Modifier and Type | Method and Description |
---|---|
void |
addNode(CPageNode node)
adds a node in the component band
|
CPageNode |
deepcopyWithCallback(Callback callback) |
void |
forceUpdateData(DataElt dataelt) |
DataElt |
getDataElt(DataEltType type,
java.lang.String eltname,
java.lang.String objectfieldname)
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.
|
static javafx.scene.layout.Pane |
returnBandPane(int direction)
returns a pane similar to a CComponentBand (with similar spacing and insets)
|
void |
setMinWidth(int minwidth)
sets a minimum width in pixels for the component band
|
getParentpath, getPath, getSignificantpath, parseNode, setPageCatelog
public static final int DIRECTION_RIGHT
public static final int DIRECTION_DOWN
public static final int DIRECTION_UP
public static final int DIRECTION_LEFT
public CComponentBand(int direction, CPageSignifPath parentpath)
direction
- direction defined as static int on this classparentpath
- path of the parent widgetpublic CComponentBand(MessageReader reader, CPageSignifPath parentpath) throws OLcRemoteException, java.io.IOException
reader
- message reader from the serverparentpath
- path of the parent widgetOLcRemoteException
- if anything happens on the server while sending
the messagejava.io.IOException
- if any transmission error occurs during the
message sendingpublic void setMinWidth(int minwidth)
minwidth
- minimum width in pixelspublic void addNode(CPageNode node)
node
- node to addpublic static javafx.scene.layout.Pane returnBandPane(int direction)
direction
- direction as defined in the static ints in that classpublic 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