use of com.extjs.gxt.ui.client.widget.layout.HBoxLayoutData in project activityinfo by bedatadriven.
the class LocationForm method addNewLocationButtons.
private void addNewLocationButtons() {
int buttonWidth = (FIELD_WIDTH - BUTTON_SPACE) / 2;
Button saveButton = new Button(I18N.CONSTANTS.useNewLocation(), IconImageBundle.ICONS.save(), new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
saveNewLocation();
}
});
saveButton.setWidth(buttonWidth);
Button cancelButton = new Button(I18N.CONSTANTS.cancel(), new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
newLocationPresenter.setActive(false, true);
}
});
cancelButton.setWidth(buttonWidth);
newFormButtonContainer = new LayoutContainer();
newFormButtonContainer.setWidth(FIELD_WIDTH);
newFormButtonContainer.setLayout(new HBoxLayout());
newFormButtonContainer.add(saveButton);
newFormButtonContainer.add(cancelButton, new HBoxLayoutData(0, 0, 0, BUTTON_SPACE));
add(newFormButtonContainer, buttonLayout());
setNewFormActive(false);
}
use of com.extjs.gxt.ui.client.widget.layout.HBoxLayoutData in project activityinfo by bedatadriven.
the class ReportBar method addTitle.
private void addTitle() {
titleWidget = new ReportTitleWidget();
HBoxLayoutData titleLayout = new HBoxLayoutData(0, 0, 0, 7);
titleLayout.setFlex(1);
add(titleWidget, titleLayout);
}
Aggregations