public class SFixSplit extends SPageNode
Modifier and Type | Field and Description |
---|---|
static int |
DIRECTION_DOWN
main component on the bottom
|
static int |
DIRECTION_LEFT
main component on the left
|
static int |
DIRECTION_RIGHT
main component on the right
|
static int |
DIRECTION_UP
main component on the top
|
DEFAULT_UNSAVED_EDITION_CONTINUE_MESSAGE, DEFAULT_UNSAVED_EDITION_STOP_MESSAGE, DEFAULT_UNSAVED_EDITION_WARNING_MESSAGE
Constructor and Description |
---|
SFixSplit(int direction,
SPage parent)
creates a fix split component
|
Modifier and Type | Method and Description |
---|---|
void |
addMainComponent(SPageNode node)
adds the main component
|
void |
addSecundaryComponent(SPageNode node)
adds the secondary (side) component
|
java.lang.String |
getWidgetCode() |
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 |
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 static final int DIRECTION_RIGHT
public static final int DIRECTION_DOWN
public static final int DIRECTION_UP
public static final int DIRECTION_LEFT
public SFixSplit(int direction, SPage parent)
direction
- direction indicates the side of the screen where the main
component is shown. The secundary component is limited to
the minimum side.parent
- parent page for the widgetpublic void addMainComponent(SPageNode node)
node
- main component nodepublic void addSecundaryComponent(SPageNode node)
node
- secondary componentpublic 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 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