Skip to content

LayoutOptions - how to use #544

Answered by rsoika
rsoika asked this question in Q&A
Feb 16, 2022 · 7 comments · 4 replies
Discussion options

You must be logged in to vote

The Final Solution

After all I come to the following solution - supporting also editable label headers:

My setProperties method in the server side event node Builder looks like this:

......
   @Override
   public void setProperties(final EventNode node) {
      super.setProperties(node);
      node.setName(name);
      node.setNodeType(nodeType);
      node.setLayout(GConstants.Layout.VBOX);
      node.getLayoutOptions().put(H_ALIGN, "center");
      node.getLayoutOptions().put(H_GRAB, true);
      node.getLayoutOptions().put(V_GRAB, true);
      node.getChildren().add(createCompartmentHeader(node));
   }

   private GLabel createCompartmentHeader(final EventNode taskNode) {
      return n…

Replies: 7 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@CamilleLetavernier
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by rsoika
Comment options

You must be logged in to vote
3 replies
@tortmayr
Comment options

@rsoika
Comment options

@tortmayr
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants