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