*
* @param isMultiline
*/
private void setLayout(boolean isMultiline) {
if (isMultiline) {
MigLayout layout = new MigLayout("insets 0", "[][][][][][][grow]", "[grow][]");
control.setLayout(layout);
text.setLayoutData("span,grow,width 200:100%:100%,height 60:100%:100%");
setPreferredTextSize(40, 5);
lblAttribute.setLayoutData("cell 0 1,alignx trailing,gapx related");
attribute.setLayoutData("cell 1 1,wmin 60,alignx left,gapx rel");
lblOperation.setLayoutData("cell 2 1,alignx trailing,gapx related");
operation.setLayoutData("cell 3 1,wmin 60,alignx left,gapx rel");
lblValue.setLayoutData("cell 4 1,alignx trailing,gapx related");
value.setLayoutData("cell 5 1,wmin 60,alignx left,gapx related");
insert.setLayoutData("cell 6 1,alignx left,gapx unrel");
} else {
control.setLayout(new MigLayout("insets 0, flowx", "", ""));
text.setLayoutData("grow,width 200:70%:100%, gap unrelated");
attribute.setLayoutData("width 90:20%:100%, gap related");
operation.setLayoutData("width 60:10%:100%, gap related");
value.setLayoutData("width 60:10%:100%, gap related");