new title Menu in GroupBox [message #1824384] |
Tue, 14 April 2020 16:31 |
|
Hello,
I am testing the new feature of the menu in group box and I am not able to put the menu in right side of the title, it is always coming on left side near the title.
how to make it on right side ?
Thanks
|
|
|
|
|
Re: new title Menu in GroupBox [message #1824431 is a reply to message #1824393] |
Wed, 15 April 2020 08:37 |
|
Yes, it does work.
public class MyGroupBox extends AbstractGroupBox {
@Override
protected String getConfiguredLabel() {
return "Test";
}
@Override
protected String getConfiguredMenuBarPosition() {
return MENU_BAR_POSITION_TITLE;
}
// ...
public class MyMenu extends AbstractMenu {
@Override
protected String getConfiguredText() {
return "Click me";
}
@Override
protected byte getConfiguredHorizontalAlignment() {
return HORIZONTAL_ALIGNMENT_RIGHT;
}
}
}
Regards,
Beat
|
|
|
|
|
Re: new title Menu in GroupBox [message #1824493 is a reply to message #1824466] |
Thu, 16 April 2020 08:40 |
|
I replicated your screen shot:
@Order(1000)
@ClassId("f7cc6f3c-c193-438f-9ba7-9d4fc66af54d")
public class ConfigurationBox extends AbstractGroupBox {
@Override
protected String getConfiguredLabel() {
return "Configuration";
}
@Override
protected String getConfiguredMenuBarPosition() {
return MENU_BAR_POSITION_TITLE;
}
@Order(1000)
@ClassId("0f5fb5d4-25ac-45b7-8c05-041257feba83")
public class ConfigTableField extends AbstractTableField<Table> {
@Override
protected boolean getConfiguredLabelVisible() {
return false;
}
@ClassId("a423203e-3578-4ee9-b2fa-bec7271e38f2")
public class Table extends AbstractTable {
@Override
protected boolean getConfiguredAutoResizeColumns() {
return true;
}
@Order(1000)
@ClassId("2ff2d9db-1ff6-4a1d-b8e0-b7380d4ce2ef")
public class IdColumn extends AbstractStringColumn {
@Override
protected String getConfiguredHeaderText() {
return "ID";
}
}
}
}
@Order(1000)
@ClassId("4455363c-532b-49d3-9124-394520bcb87c")
public class MenuMenu extends AbstractMenu {
@Override
protected String getConfiguredText() {
return "Menu";
}
@Override
protected byte getConfiguredHorizontalAlignment() {
return HORIZONTAL_ALIGNMENT_RIGHT;
}
@Order(1000)
@ClassId("236acaef-b747-430d-be1d-834acb2d521b")
public class SubMenu1 extends AbstractMenu {
@Override
protected String getConfiguredText() {
return "Sub Menu 1";
}
}
@Order(2000)
@ClassId("0b919d7b-8fff-4d52-ad68-6a63f8715bbe")
public class SubMenu2 extends AbstractMenu {
@Override
protected String getConfiguredText() {
return "Sub Menu 2";
}
}
}
}
Works as expected, see attached image.
Can you post your code?
Regards,
Beat
|
|
|
|
Powered by
FUDForum. Page generated in 0.03334 seconds