public void createControl()

in plugins/org.apache.geronimo.st.v21.ui/src/main/java/org/apache/geronimo/st/v21/ui/wizards/SecurityRealmWizard.java [986:1077]


	public void createControl(Composite parent) {
	    Composite composite = new Composite(parent, SWT.NULL);
	    GridLayout layout = new GridLayout();
	    layout.numColumns = 2;
	    composite.setLayout(layout);
	    GridData data = new GridData();
	    data.verticalAlignment = GridData.FILL;
	    data.horizontalAlignment = GridData.FILL;
	    data.widthHint = 300;
	    composite.setLayoutData(data);

        Group userGroup = new Group(composite, SWT.NULL);
        userGroup.setText(Messages.userSearchConfig);
        GridLayout gridLayout = new GridLayout();
        gridLayout.numColumns = 4;
        GridData data1 = new GridData();
        data1.horizontalAlignment = GridData.FILL;
        data1.grabExcessHorizontalSpace = true;
        data1.horizontalSpan = 2;
        userGroup.setLayout(gridLayout);
        userGroup.setLayoutData(data1);

        createLabel(userGroup, Messages.userBase, 1);
        text[0] = createText(userGroup, 3);
        createLabel(userGroup, Messages.userSearchMachting, 1);
        text[1] = createText(userGroup, 3);
        userSearchSubtree = new Button(userGroup, SWT.CHECK);
        userSearchSubtree.setText(Messages.userSearchSubtree);
        userSearchSubtree.setLayoutData(new GridData(GridData.FILL,
            GridData.FILL, true, false, 4, 1));
        userSearchSubtree.setSelection(true);

        Group roleGroup = new Group(composite, SWT.NULL);
        roleGroup.setText(Messages.roleSearchConfig);
        gridLayout = new GridLayout();
        gridLayout.numColumns = 4;
        data1 = new GridData();
        data1.horizontalAlignment = GridData.FILL;
        data1.grabExcessHorizontalSpace = true;
        data1.horizontalSpan = 2;
        roleGroup.setLayout(gridLayout);
        roleGroup.setLayoutData(data1);
        createLabel(roleGroup, Messages.roleBase, 1);
        text[2] = createText(roleGroup, 3);
        createLabel(roleGroup, Messages.roleName, 1);
        text[3] = createText(roleGroup, 3);
        createLabel(roleGroup, Messages.roleUserSearchStr, 1);
        text[4] = createText(roleGroup, 3);
        createLabel(roleGroup, Messages.userRoleSearchStr, 1);
        text[5] = createText(roleGroup, 3);
        roleSearchSubtree = new Button(roleGroup, SWT.CHECK);
        roleSearchSubtree.setText(Messages.roleSearchSubtree);
        roleSearchSubtree.setLayoutData(new GridData(GridData.FILL,
            GridData.FILL, true, false, 4, 1));
        roleSearchSubtree.setSelection(true);

	    if (eObject != null) {
		Gbean gbean = (Gbean) ((JAXBElement<?>) eObject).getValue();
		if (getOptionValue(gbean, "userBase") != null) {
		    text[0].setText(getOptionValue(gbean, "userBase"));
		}
		if (getOptionValue(gbean, "userSearchMatching") != null) {
		    text[1]
			    .setText(getOptionValue(gbean, "userSearchMatching"));
		}
		if (getOptionValue(gbean, "userSearchSubtree") != null) {
		    this.userSearchSubtree.setSelection(Boolean
			    .parseBoolean(getOptionValue(gbean,
				    "userSearchSubtree")));
		}
		if (getOptionValue(gbean, "roleBase") != null) {
		    text[2].setText(getOptionValue(gbean, "roleBase"));
		}
		if (getOptionValue(gbean, "roleName") != null) {
		    text[3].setText(getOptionValue(gbean, "roleName"));
		}
		if (getOptionValue(gbean, "roleSearchMatching") != null) {
		    text[4]
			    .setText(getOptionValue(gbean, "roleSearchMatching"));
		}
		if (getOptionValue(gbean, "userRoleName") != null) {
		    text[5].setText(getOptionValue(gbean, "userRoleName"));
		}
		if (getOptionValue(gbean, "roleSearchSubtree") != null) {
		    this.userSearchSubtree.setSelection(Boolean
			    .parseBoolean(getOptionValue(gbean,
				    "roleSearchSubtree")));
		}
	    }

	    setControl(composite);
	}