Skip to content
Discussion options

You must be logged in to vote

As an update for @CamilleLetavernier and anyone curious, the VBOX container works as expected for labels and compartments, but it just does not work for nodes.

This is an example where the label is put in a compartment:

GNodeBuilder classBuilder = new GNodeBuilder(UmlModelTypes.CLASS)
	.id(id)
	.add(new GLabelBuilder(UmlModelTypes.EDITABLE_LABEL)
		.id(id + "_label")
		.text(cl.getName())
		.build())
	.add(new GCompartmentBuilder()
		.id(id + "_comp")
		.add(new GLabelBuilder(UmlModelTypes.EDITABLE_LABEL)
			.id(id + "_attribute_label")
			.text(cl.getName() + "_test")
			.build())
		.build())
	.layout(GConstants.Layout.VBOX)
	.layoutOptions(new GLayoutOptions()
		.hAlign(GConstants.HAlign.

Replies: 4 comments 3 replies

Comment options

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

Comment options

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

Comment options

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

You must be logged in to vote
1 reply
@Ginxss
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
2 participants