public SecurityNamedServiceEditPage(IModel<T> config) { // create the specific panel panelInfo = lookupPanelInfo(config); panel = createPanel("dummy", panelInfo, config); // set page title and description from the panel title and description add(new Label("name", config.getObject().getName())); add(new Label("title", createTitleModel(panelInfo))); add(new Label("description", createDescriptionModel(panelInfo))); if (SecurityNamedServiceTabbedPanel.class.isAssignableFrom(panelInfo.getComponentClass())) { // this panel supports tabs, layout in tabbed mode add(new TabbedLayoutPanel("panel", config)); } else { // else layout in basic mode add(new BasicLayoutPanel("panel", config)); } }
public SecurityNamedServiceEditPage(IModel<T> config) { //create the specific panel panelInfo = lookupPanelInfo(config); panel = createPanel("dummy", panelInfo, config); //set page title and description from the panel title and description add(new Label("name", config.getObject().getName())); add(new Label("title", createTitleModel(panelInfo))); add(new Label("description", createDescriptionModel(panelInfo))); if (SecurityNamedServiceTabbedPanel.class.isAssignableFrom(panelInfo.getComponentClass())) { //this panel supports tabs, layout in tabbed mode add(new TabbedLayoutPanel("panel", config)); } else { //else layout in basic mode add(new BasicLayoutPanel("panel", config)); } }
public SecurityNamedServiceEditPage(IModel<T> config) { //create the specific panel panelInfo = lookupPanelInfo(config); panel = createPanel("dummy", panelInfo, config); //set page title and description from the panel title and description add(new Label("name", config.getObject().getName())); add(new Label("title", createTitleModel(panelInfo))); add(new Label("description", createDescriptionModel(panelInfo))); if (SecurityNamedServiceTabbedPanel.class.isAssignableFrom(panelInfo.getComponentClass())) { //this panel supports tabs, layout in tabbed mode add(new TabbedLayoutPanel("panel", config)); } else { //else layout in basic mode add(new BasicLayoutPanel("panel", config)); } }