Search in sources :

Example 41 with FormLayout

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;
}
Also used : FormLayout(com.extjs.gxt.ui.client.widget.layout.FormLayout)

Example 42 with FormLayout

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);
}
Also used : FormLayout(com.extjs.gxt.ui.client.widget.layout.FormLayout) GPSecureStringTextField(org.geosdi.geoplatform.gui.configuration.GPSecureStringTextField) FieldSet(com.extjs.gxt.ui.client.widget.form.FieldSet) BorderLayoutData(com.extjs.gxt.ui.client.widget.layout.BorderLayoutData) Margins(com.extjs.gxt.ui.client.util.Margins) Validator(com.extjs.gxt.ui.client.widget.form.Validator)

Example 43 with FormLayout

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();
}
Also used : FormLayout(com.extjs.gxt.ui.client.widget.layout.FormLayout) FieldSet(com.extjs.gxt.ui.client.widget.form.FieldSet) GPFileUploader(org.geosdi.geoplatform.gui.client.widget.fileupload.GPFileUploader)

Example 44 with FormLayout

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());
}
Also used : FormLayout(com.extjs.gxt.ui.client.widget.layout.FormLayout)

Example 45 with 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();
}
Also used : FormLayout(com.extjs.gxt.ui.client.widget.layout.FormLayout) GPSecureStringTextField(org.geosdi.geoplatform.gui.configuration.GPSecureStringTextField) FieldSet(com.extjs.gxt.ui.client.widget.form.FieldSet) GPSecureStringTextArea(org.geosdi.geoplatform.gui.configuration.GPSecureStringTextArea) CheckBox(com.extjs.gxt.ui.client.widget.form.CheckBox) CheckBoxGroup(com.extjs.gxt.ui.client.widget.form.CheckBoxGroup)

Aggregations

FormLayout (com.extjs.gxt.ui.client.widget.layout.FormLayout)61 FieldSet (com.extjs.gxt.ui.client.widget.form.FieldSet)37 FormPanel (com.extjs.gxt.ui.client.widget.form.FormPanel)29 FormData (com.extjs.gxt.ui.client.widget.layout.FormData)26 Button (com.extjs.gxt.ui.client.widget.button.Button)24 ButtonEvent (com.extjs.gxt.ui.client.event.ButtonEvent)19 FlowLayout (com.extjs.gxt.ui.client.widget.layout.FlowLayout)18 SelectionListener (com.extjs.gxt.ui.client.event.SelectionListener)15 GPSecureStringTextField (org.geosdi.geoplatform.gui.configuration.GPSecureStringTextField)15 FitLayout (com.extjs.gxt.ui.client.widget.layout.FitLayout)12 BaseEvent (com.extjs.gxt.ui.client.event.BaseEvent)11 LabelField (com.extjs.gxt.ui.client.widget.form.LabelField)10 NumberField (com.extjs.gxt.ui.client.widget.form.NumberField)9 CheckBox (com.extjs.gxt.ui.client.widget.form.CheckBox)7 TextField (com.extjs.gxt.ui.client.widget.form.TextField)7 ComponentEvent (com.extjs.gxt.ui.client.event.ComponentEvent)6 Margins (com.extjs.gxt.ui.client.util.Margins)6 Label (com.extjs.gxt.ui.client.widget.Label)6 Radio (com.extjs.gxt.ui.client.widget.form.Radio)6 RadioGroup (com.extjs.gxt.ui.client.widget.form.RadioGroup)6