@@ -196,6 +196,7 @@ public class NewEntityDialog extends AbstractDialog {
196196 private static final String GRID_NAME = "Grit Name" ;
197197 private static final String IDENTIFIER = "Identifier" ;
198198 private static final String SORT_ORDER = "Sort Order" ;
199+ private static final String UI_COMPONENTS_TAB_NAME = "Admin UI Components" ;
199200
200201 @ FieldValidation (rule = RuleRegistry .NOT_EMPTY , message = {NotEmptyRule .MESSAGE , FORM_NAME })
201202 @ FieldValidation (rule = RuleRegistry .IDENTIFIER , message = {IdentifierRule .MESSAGE })
@@ -221,6 +222,7 @@ public class NewEntityDialog extends AbstractDialog {
221222 private JTextPane exampleAclId ;
222223 private JTextPane exampleFormName ;
223224 private JTextPane exampleGridName ;
225+ private JPanel uiComponentsPanel ;
224226 private JTextField observerName ;
225227
226228 /**
@@ -269,6 +271,10 @@ protected void textChanged(final @NotNull DocumentEvent event) {
269271 autoCompleteIdentifiers ();
270272 }
271273 });
274+
275+ toggleUiComponentsPanel ();
276+
277+ createUiComponent .addItemListener (event -> toggleUiComponentsPanel ());
272278 }
273279
274280 /**
@@ -1399,4 +1405,16 @@ private void autoCompleteIdentifiers() {
13991405 menuIdentifier .setText (getModuleName ().concat ("::management" ));
14001406 menuTitle .setText (entityNameLabel .concat (" Management" ));
14011407 }
1408+
1409+ /**
1410+ * Resolve ui components panel state.
1411+ */
1412+ private void toggleUiComponentsPanel () {
1413+ if (createUiComponent .isSelected ()) {
1414+ tabbedPane1 .add (uiComponentsPanel , 1 );
1415+ tabbedPane1 .setTitleAt (1 , UI_COMPONENTS_TAB_NAME );
1416+ } else {
1417+ tabbedPane1 .remove (1 );
1418+ }
1419+ }
14021420}
0 commit comments