use of com.extjs.gxt.ui.client.widget.layout.FormLayout in project geo-platform by geosdi.
the class UserOptionsMemberUser method getFormLayoutTemplate.
private FormLayout getFormLayoutTemplate() {
FormLayout layout = new FormLayout();
layout.setLabelWidth(75);
layout.setDefaultWidth(200);
return layout;
}
use of com.extjs.gxt.ui.client.widget.layout.FormLayout in project geo-platform by geosdi.
the class GPKmlWidget method addSouthPanel.
private void addSouthPanel() {
southPanel = new FieldSet();
southPanel.setHeadingHtml(PublisherWidgetConstants.INSTANCE.GPKmlWidget_southPanelHeadingText());
FormLayout layout = new FormLayout();
layout.setLabelAlign(LabelAlign.TOP);
layout.setLabelSeparator("");
layout.setDefaultWidth(510);
southPanel.setLayout(layout);
urlText = new GPSecureStringTextField();
urlText.setFieldLabel(PublisherWidgetConstants.INSTANCE.GPKmlWidget_urlLabelText());
urlText.setValidator(new Validator() {
@Override
public String validate(Field<?> field, String value) {
if (checkUrl()) {
return null;
}
return suggestion;
}
});
this.addListenerToUrlText();
southPanel.add(urlText);
BorderLayoutData southData = new BorderLayoutData(LayoutRegion.SOUTH, 100);
southData.setMargins(new Margins(5, 20, 5, 20));
super.add(southPanel, southData);
super.setFocusWidget(urlText);
}
use of com.extjs.gxt.ui.client.widget.layout.FormLayout in project geo-platform by geosdi.
the class UploadKmlWidget method addComponent.
@Override
public void addComponent() {
fieldSet = new FieldSet();
fieldSet.setHeadingHtml(PublisherWidgetConstants.INSTANCE.UploadKmlWidget_fieldSetHeadingText());
FormLayout layout = new FormLayout();
layout.setLabelWidth(40);
fieldSet.setLayout(layout);
this.add(fieldSet);
fileUploader = new GPFileUploader("UploadKml", this.uploadKMLEvent, GPExtensions.KML);
fileUploader.getButtonSubmit().setVisible(false);
fieldSet.add(fileUploader.getComponent());
this.addFooterButton();
}
use of com.extjs.gxt.ui.client.widget.layout.FormLayout in project geo-platform by geosdi.
the class ShareProjectPanel method setPanelProperties.
@Override
public void setPanelProperties() {
super.setHeaderVisible(Boolean.FALSE);
super.setBorders(Boolean.FALSE);
super.setBodyBorder(Boolean.FALSE);
super.setLayout(new FormLayout());
}
use of com.extjs.gxt.ui.client.widget.layout.FormLayout in project geo-platform by geosdi.
the class ProjectBindingWidget method addComponentToForm.
@Override
public void addComponentToForm() {
fieldSet = new FieldSet();
fieldSet.setHeadingHtml(LayerModuleConstants.INSTANCE.ProjectBindingWidget_fieldSetHeadingText());
FormLayout layout = new FormLayout();
layout.setLabelWidth(120);
layout.setLabelPad(5);
fieldSet.setLayout(layout);
this.projectFieldName = new GPSecureStringTextField();
this.projectFieldName.setAllowBlank(FALSE);
this.projectFieldName.setEmptyText(LayerModuleConstants.INSTANCE.ProjectBindingWidget_projectFieldNameEmptyText());
this.projectFieldName.setName(GPClientProjectKey.PROJECT_NAME.name());
this.projectFieldName.setFieldLabel(LayerModuleConstants.INSTANCE.ProjectBindingWidget_projectFieldNameLabelText());
fieldSet.add(this.projectFieldName);
this.projectDescription = new GPSecureStringTextArea();
this.projectDescription.setAllowBlank(FALSE);
this.projectDescription.setEmptyText(LayerModuleConstants.INSTANCE.ProjectBindingWidget_projectFieldDescriptionEmptyText());
this.projectDescription.setName(GPClientProjectKey.PROJECT_DESCRIPTION.name());
this.projectDescription.setFieldLabel(LayerModuleConstants.INSTANCE.ProjectBindingWidget_projectFielDescriptionLabelText());
fieldSet.add(this.projectDescription);
this.projectPathImage = new GPSecureStringTextField();
this.projectPathImage.setAllowBlank(FALSE);
this.projectPathImage.setEmptyText(LayerModuleConstants.INSTANCE.ProjectBindingWidget_projectFieldPathImageEmptyText());
this.projectPathImage.setName(GPClientProjectKey.PROJECT_PATH_IMAGE.name());
this.projectPathImage.setFieldLabel(LayerModuleConstants.INSTANCE.ProjectBindingWidget_projectFielPathImageLabelText());
fieldSet.add(this.projectPathImage);
CheckBoxGroup checkGroupVisibility = new CheckBoxGroup();
checkGroupVisibility.setFieldLabel(LayerModuleConstants.INSTANCE.GPClientProject_checkGroupVisibilityLabelText());
internalPublic = new CheckBox();
internalPublic.setName(GPClientProjectKey.PROJECT_INTERNAL_PUBLIC.toString());
internalPublic.setBoxLabel(LayerModuleConstants.INSTANCE.GPClientProject_internalVisibilityLabelText());
checkGroupVisibility.add(internalPublic);
externalPublic = new CheckBox();
externalPublic.setName(GPClientProjectKey.PROJECT_EXTERNAL_PUBLIC.toString());
externalPublic.setBoxLabel(LayerModuleConstants.INSTANCE.GPClientProject_externalVisibilityLabelText());
checkGroupVisibility.add(externalPublic);
fieldSet.add(checkGroupVisibility);
this.projectDefaultCheck = new CheckBox();
this.projectDefaultCheck.setBoxLabel(LayerModuleConstants.INSTANCE.ProjectBindingWidget_projectDefaultCheckLabelText());
this.projectDefaultCheck.setName(GPClientProjectKey.DEFAULT_PROJECT.toString());
CheckBoxGroup checkGroup = new CheckBoxGroup();
checkGroup.setFieldLabel(LayerModuleConstants.INSTANCE.ProjectBindingWidget_checkBoxGroupLabelText());
checkGroup.add(this.projectDefaultCheck);
fieldSet.add(checkGroup);
this.getFormPanel().add(fieldSet);
this.addButtons();
}
Aggregations