return block;
return mainblock;
	protected WFBlock getSubmitTable() {		WFBlock block = new WFBlock();		WFTitlebar header = new WFTitlebar();		header.addTitleText(this.bundle.getLocalizedText("image_chooser"));		block.setTitlebar(header);		HtmlInputText url = new HtmlInputText();		url.setId(PARAMETER_URL);				HtmlInputText alt = new HtmlInputText();		alt.setId(PARAMETER_ALT);				DropdownMenu alignment = new DropdownMenu(PARAMETER_ALIGNMENT);		alignment.setId(PARAMETER_ALIGNMENT);		alignment.setID(PARAMETER_ALIGNMENT);		alignment.addMenuElement("", "Not set");		alignment.addMenuElement("left", "Left");		alignment.addMenuElement("right", "Right");		alignment.addMenuElement("texttop", "Texttop");		alignment.addMenuElement("absmiddle", "Absmiddle");		alignment.addMenuElement("baseline", "Baseline");		alignment.addMenuElement("absbottom", "Absbottom");		alignment.addMenuElement("bottom", "Bottom");		alignment.addMenuElement("middle", "Middle");		alignment.addMenuElement("top", "Top");		alignment.setSelectedElement("baseline");						HtmlInputText border = new HtmlInputText();		border.setId(PARAMETER_BORDER);				HtmlInputText horiz = new HtmlInputText();		horiz.setId(PARAMETER_HORIZONTAL_SPACING);				HtmlInputText vert = new HtmlInputText();		vert.setId(PARAMETER_VERTICAL_SPACING);				IFrame iframe = new IFrame();		iframe.setId(PARAMETER_PREVIEW);		iframe.setName(PARAMETER_PREVIEW);		iframe.setSrc("");		iframe.addLanguageParameter(false);				HtmlCommandButton saveButton = new HtmlCommandButton();		this.bundle.getLocalizedUIComponent("save", saveButton);		saveButton.setType("button");		saveButton.setOnclick("onOK()");		saveButton.setId("HTMLAIC_SB");		HtmlCommandButton previewButton = new HtmlCommandButton();		this.bundle.getLocalizedUIComponent("preview", previewButton);		previewButton.setType("button");		previewButton.setOnclick("onPreview()");		previewButton.setId("HTMLAIC_PB");				WFContainer urlLine = new WFContainer();		urlLine.setStyleClass("wf_imagechooser_line_long");		urlLine.getChildren().add(getLabel("url", PARAMETER_URL));		urlLine.getChildren().add(url);		urlLine.getChildren().add(previewButton);				WFContainer altLine = new WFContainer();		altLine.setStyleClass("wf_imagechooser_line_long");		altLine.getChildren().add(getLabel("alt", PARAMETER_ALT));		altLine.getChildren().add(alt);				WFContainer alignmentLine = new WFContainer();		alignmentLine.setStyleClass("wf_imagechooser_line_short");		alignmentLine.getChildren().add(getLabel("alignment", PARAMETER_ALIGNMENT));		alignmentLine.getChildren().add(alignment);				WFContainer borderLine = new WFContainer();		borderLine.setStyleClass("wf_imagechooser_line_short");		borderLine.getChildren().add(getLabel("border", PARAMETER_BORDER));		borderLine.getChildren().add(border);		FieldSet layoutBox = new FieldSet(this.bundle.getLocalizedString("layout"));		layoutBox.setStyleClass("wf_imagechooser_left_box");		layoutBox.add(alignmentLine);		layoutBox.add(borderLine);				WFContainer horizLine = new WFContainer();		horizLine.setStyleClass("wf_imagechooser_line_short");		horizLine.getChildren().add(getLabel("horizontal", PARAMETER_HORIZONTAL_SPACING));		horizLine.getChildren().add(horiz);				WFContainer vertiLine = new WFContainer();		vertiLine.setStyleClass("wf_imagechooser_line_short");		vertiLine.getChildren().add(getLabel("vertical", PARAMETER_VERTICAL_SPACING));		vertiLine.getChildren().add(vert);				FieldSet spacingBox = new FieldSet(this.bundle.getLocalizedString("spacing"));		spacingBox.setStyleClass("wf_imagechooser_right_box");		spacingBox.add(horizLine);		spacingBox.add(vertiLine);		WFContainer previewLine = new WFContainer();		previewLine.setStyleClass("wf_imagechooser_preview");		previewLine.getChildren().add(getLabel("image_preview", PARAMETER_PREVIEW));		previewLine.getChildren().add(iframe);		WFContainer saveLine = new WFContainer();		saveLine.setStyleClass("wf_imagechooser_line");		saveLine.getChildren().add(saveButton);				FieldSet mainFieldSet = new FieldSet(this.bundle.getLocalizedString("image_chooser"));		mainFieldSet.setStyleClass("wf_imagechooser_fieldset");		mainFieldSet.getChildren().add(urlLine);		mainFieldSet.getChildren().add(altLine);//		mainFieldSet.getChildren().add(alignmentLine);//		mainFieldSet.getChildren().add(borderLine);//		mainFieldSet.getChildren().add(horizLine);//		mainFieldSet.getChildren().add(vertiLine);		mainFieldSet.getChildren().add(layoutBox);		mainFieldSet.getChildren().add(spacingBox);		mainFieldSet.getChildren().add(previewLine);		mainFieldSet.getChildren().add(saveLine);		//		block.add(mainFieldSet);				block.add(urlLine);		block.add(altLine);		block.add(layoutBox);		block.add(spacingBox);//		block.add(alignmentLine);//		block.add(borderLine);//		block.add(horizLine);//		block.add(vertiLine);		//block.add(previewLine);		block.add(saveLine);		return block;	}