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());
}
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);
}
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);
}
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);
}
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);
}
Aggregations