Search in sources :

Example 11 with FormLayout

use of com.extjs.gxt.ui.client.widget.layout.FormLayout in project geo-platform by geosdi.

the class GPEPSGContentPanel method setPanelProperties.

@Override
public void setPanelProperties() {
    super.setHeaderVisible(Boolean.FALSE);
    super.setLayout(new FormLayout());
}
Also used : FormLayout(com.extjs.gxt.ui.client.widget.layout.FormLayout)

Example 12 with FormLayout

use of com.extjs.gxt.ui.client.widget.layout.FormLayout in project geo-platform by geosdi.

the class GotoXYWidget method addComponentToForm.

@Override
public void addComponentToForm() {
    super.setHeadingHtml(BasicWidgetConstants.INSTANCE.GotoXYWidget_headingText());
    fieldSet = new FieldSet();
    fieldSet.setHeadingHtml(BasicWidgetConstants.INSTANCE.GotoXYWidget_fieldSetHeadingText());
    FormLayout layout = new FormLayout();
    layout.setLabelWidth(80);
    fieldSet.setLayout(layout);
    this.epsgPanel = new GPEPSGContentPanel(Boolean.FALSE);
    fieldSet.add(this.epsgPanel);
    this.xNumberField = new NumberField();
    this.xNumberField.setFieldLabel(BasicWidgetConstants.INSTANCE.GotoXYWidget_xFieldLabelText());
    fieldSet.add(this.xNumberField);
    this.yNumberField = new NumberField();
    this.yNumberField.setFieldLabel(BasicWidgetConstants.INSTANCE.GotoXYWidget_yFieldLabelText());
    fieldSet.add(this.yNumberField);
    this.getFormPanel().add(fieldSet);
    saveStatus = new SaveStatus();
    saveStatus.setAutoWidth(true);
    getFormPanel().setButtonAlign(HorizontalAlignment.LEFT);
    getFormPanel().getButtonBar().add(saveStatus);
    getFormPanel().getButtonBar().add(new FillToolItem());
    this.find = new Button(ButtonsConstants.INSTANCE.findText(), new SelectionListener<ButtonEvent>() {

        @Override
        public void componentSelected(ButtonEvent ce) {
            if (getFormPanel().isValid()) {
                execute();
            }
        }
    });
    getFormPanel().addButton(this.find);
    this.close = new Button(ButtonsConstants.INSTANCE.closeText(), new SelectionListener<ButtonEvent>() {

        @Override
        public void componentSelected(ButtonEvent ce) {
            GotoXYWidget.this.hide(GotoXYWidget.this.close);
        }
    });
    getFormPanel().addButton(this.close);
}
Also used : FormLayout(com.extjs.gxt.ui.client.widget.layout.FormLayout) FieldSet(com.extjs.gxt.ui.client.widget.form.FieldSet) GPEPSGContentPanel(org.geosdi.geoplatform.gui.client.widget.map.GPEPSGContentPanel) Button(com.extjs.gxt.ui.client.widget.button.Button) ButtonEvent(com.extjs.gxt.ui.client.event.ButtonEvent) NumberField(com.extjs.gxt.ui.client.widget.form.NumberField) FillToolItem(com.extjs.gxt.ui.client.widget.toolbar.FillToolItem) SaveStatus(org.geosdi.geoplatform.gui.client.widget.SaveStatus) SelectionListener(com.extjs.gxt.ui.client.event.SelectionListener)

Example 13 with FormLayout

use of com.extjs.gxt.ui.client.widget.layout.FormLayout in project geo-platform by geosdi.

the class CSWServerPaginationContainer method createSearchComponent.

private void createSearchComponent() {
    searchField = new GPSecureStringTextField();
    searchField.setFieldLabel(CatalogFinderConstants.INSTANCE.CSWServerPaginationContainer_searchFieltLabelText());
    searchField.addKeyListener(new KeyListener() {

        @Override
        public void componentKeyUp(ComponentEvent event) {
            if (((event.getKeyCode() == KeyCodes.KEY_BACKSPACE) || (event.getKeyCode() == KeyCodes.KEY_DELETE)) && (searchField.getValue() == null)) {
                reset();
            }
        }

        @Override
        public void componentKeyPress(ComponentEvent event) {
            if ((event.getKeyCode() == KeyCodes.KEY_ENTER)) {
                loader.load(0, getPageSize());
            }
        }
    });
    FieldSet searchFieldSet = new FieldSet();
    searchFieldSet.setBorders(false);
    searchFieldSet.setSize(350, 40);
    FormLayout layout = new FormLayout();
    layout.setLabelWidth(80);
    searchFieldSet.setLayout(layout);
    searchFieldSet.add(searchField);
    super.panel.add(searchFieldSet);
}
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)

Example 14 with FormLayout

use of com.extjs.gxt.ui.client.widget.layout.FormLayout in project geo-platform by geosdi.

the class GPPrintWidget method addComboDPI.

private void addComboDPI() {
    fieldSet = new FieldSet();
    fieldSet.setHeadingHtml(INSTANCE.GPPrintWidget_DPIFieldSetHeadingText());
    FormLayout layout = new FormLayout();
    layout.setLabelWidth(100);
    layout.setLabelPad(5);
    fieldSet.setLayout(layout);
    this.storeDPI = new ListStore<DPI>();
    this.storeDPI.add(PrintUtility.getDPI());
    this.comboDPI = new ComboBox<DPI>();
    this.comboDPI.setFieldLabel(INSTANCE.GPPrintWidget_comboDPIFieldLabelText());
    this.comboDPI.setEmptyText(INSTANCE.GPPrintWidget_comboDPIEmptyText());
    this.comboDPI.setDisplayField(DPI.EnumDPI.DPI.getValue());
    this.comboDPI.setEditable(false);
    this.comboDPI.setAllowBlank(false);
    this.comboDPI.setForceSelection(true);
    this.comboDPI.setTypeAhead(true);
    this.comboDPI.setTriggerAction(TriggerAction.ALL);
    this.comboDPI.setStore(this.storeDPI);
    fieldSet.add(this.comboDPI);
    super.formPanel.add(fieldSet);
}
Also used : FormLayout(com.extjs.gxt.ui.client.widget.layout.FormLayout) FieldSet(com.extjs.gxt.ui.client.widget.form.FieldSet) DPI(org.geosdi.geoplatform.gui.client.model.DPI)

Example 15 with FormLayout

use of com.extjs.gxt.ui.client.widget.layout.FormLayout in project geo-platform by geosdi.

the class GPPrintWidget method addEditPrintSettings.

private void addEditPrintSettings() {
    fieldSet = new FieldSet();
    fieldSet.setHeadingHtml(INSTANCE.GPPrintWidget_editFieldSetHeadingText());
    FormLayout layout = new FormLayout();
    layout.setLabelWidth(100);
    layout.setLabelPad(5);
    fieldSet.setLayout(layout);
    title = new GPSecureStringTextField();
    title.setAllowBlank(false);
    title.setName(GPPrintEnumBean.GPPRINT_TITLE.toString());
    title.setFieldLabel(INSTANCE.GPPrintWidget_titleLabelText());
    fieldSet.add(title);
    mapTitle = new GPSecureStringTextField();
    mapTitle.setName(GPPrintEnumBean.GPPRINT_MAP_TITLE.toString());
    mapTitle.setFieldLabel(INSTANCE.GPPrintWidget_mapTitleLabelText());
    fieldSet.add(mapTitle);
    comments = new GPSecureStringTextArea();
    comments.setName(GPPrintEnumBean.GPPRINT_COMMENTS.toString());
    comments.setPreventScrollbars(true);
    comments.setFieldLabel(INSTANCE.GPPrintWidget_commentsLabelText());
    comments.setSize(150, 150);
    fieldSet.add(comments);
    this.formPanel.add(fieldSet);
}
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)

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