Search in sources :

Example 6 with LabelField

use of com.extjs.gxt.ui.client.widget.form.LabelField in project activityinfo by bedatadriven.

the class LocationSection method updateForm.

@Override
public void updateForm(LocationDTO location, boolean isNew) {
    this.location = location;
    this.isNew = isNew;
    nameField.setValue(location.getName());
    axeField.setValue(location.getAxe());
    for (Entry<Integer, LabelField> entry : levelFields.entrySet()) {
        AdminEntityDTO entity = location.getAdminEntity(entry.getKey());
        entry.getValue().setValue(entity == null ? null : entity.getName());
    }
    if (location.hasCoordinates()) {
        coordinateFields.getLatitudeField().setValue(location.getLatitude());
        coordinateFields.getLongitudeField().setValue(location.getLongitude());
    } else {
        coordinateFields.setValue(null);
    }
}
Also used : AdminEntityDTO(org.activityinfo.shared.dto.AdminEntityDTO) LabelField(com.extjs.gxt.ui.client.widget.form.LabelField)

Example 7 with LabelField

use of com.extjs.gxt.ui.client.widget.form.LabelField in project activityinfo by bedatadriven.

the class SearchResultItem method addDatabaseLabel.

private void addDatabaseLabel() {
    labelDatabaseName = new LabelField();
    topPanel.add(labelDatabaseName);
}
Also used : LabelField(com.extjs.gxt.ui.client.widget.form.LabelField)

Example 8 with LabelField

use of com.extjs.gxt.ui.client.widget.form.LabelField in project activityinfo by bedatadriven.

the class BubbleLayerOptions method createColorPicker.

private void createColorPicker() {
    colorPicker.setValue("000000");
    // Set the selected color to the maplayer
    colorPicker.addListener(Events.Select, new Listener<ColorPaletteEvent>() {

        @Override
        public void handleEvent(ColorPaletteEvent be) {
            bubbleMapLayer.setBubbleColor(colorPicker.getValue());
            ValueChangeEvent.fire(BubbleLayerOptions.this, bubbleMapLayer);
        }
    });
    LabelField labelColor = new LabelField(I18N.CONSTANTS.color());
    add(labelColor);
    add(colorPicker);
}
Also used : ColorPaletteEvent(com.extjs.gxt.ui.client.event.ColorPaletteEvent) LabelField(com.extjs.gxt.ui.client.widget.form.LabelField)

Example 9 with LabelField

use of com.extjs.gxt.ui.client.widget.form.LabelField in project activityinfo by bedatadriven.

the class DateRangePanel method createToDateField.

private void createToDateField() {
    add(new LabelField(I18N.CONSTANTS.toDate()));
    maxField = new DateField();
    add(maxField);
}
Also used : DateField(com.extjs.gxt.ui.client.widget.form.DateField) LabelField(com.extjs.gxt.ui.client.widget.form.LabelField)

Example 10 with LabelField

use of com.extjs.gxt.ui.client.widget.form.LabelField in project activityinfo by bedatadriven.

the class DateRangePanel method createFromDateField.

private void createFromDateField() {
    add(new LabelField(I18N.CONSTANTS.fromDate()));
    minField = new DateField();
    add(minField);
}
Also used : DateField(com.extjs.gxt.ui.client.widget.form.DateField) LabelField(com.extjs.gxt.ui.client.widget.form.LabelField)

Aggregations

LabelField (com.extjs.gxt.ui.client.widget.form.LabelField)17 DateField (com.extjs.gxt.ui.client.widget.form.DateField)5 ColorPaletteEvent (com.extjs.gxt.ui.client.event.ColorPaletteEvent)4 HorizontalPanel (com.extjs.gxt.ui.client.widget.HorizontalPanel)4 SliderEvent (com.extjs.gxt.ui.client.event.SliderEvent)2 VerticalPanel (com.extjs.gxt.ui.client.widget.VerticalPanel)2 Timer (com.google.gwt.user.client.Timer)2 Axis (org.activityinfo.shared.report.content.PivotTableData.Axis)2 FieldEvent (com.extjs.gxt.ui.client.event.FieldEvent)1 CheckBox (com.extjs.gxt.ui.client.widget.form.CheckBox)1 FieldSet (com.extjs.gxt.ui.client.widget.form.FieldSet)1 Radio (com.extjs.gxt.ui.client.widget.form.Radio)1 RadioGroup (com.extjs.gxt.ui.client.widget.form.RadioGroup)1 Hyperlink (com.google.gwt.user.client.ui.Hyperlink)1 Image (com.google.gwt.user.client.ui.Image)1 DataEntryPlace (org.activityinfo.client.page.entry.place.DataEntryPlace)1 ActivityDTO (org.activityinfo.shared.dto.ActivityDTO)1 AdminEntityDTO (org.activityinfo.shared.dto.AdminEntityDTO)1 ProjectDTO (org.activityinfo.shared.dto.ProjectDTO)1 EntityCategory (org.activityinfo.shared.report.content.EntityCategory)1