Search in sources :

Example 1 with RowLayout

use of com.extjs.gxt.ui.client.widget.layout.RowLayout in project activityinfo by bedatadriven.

the class IconLayerOptions method populateWithIcons.

private void populateWithIcons() {
    boolean isFirst = true;
    for (Icon mapIcon : Icon.values()) {
        ContentPanel iconPanel = new ContentPanel();
        iconPanel.setHeaderVisible(false);
        iconPanel.setLayout(new RowLayout(Orientation.VERTICAL));
        iconPanel.setAutoWidth(true);
        Radio radiobuttonIcon = new Radio();
        iconPanel.add(radiobuttonIcon);
        iconPanel.add(new Image(MapIcon.fromEnum(mapIcon)));
        radioIcons.put(radiobuttonIcon, mapIcon);
        iconRadios.put(mapIcon, radiobuttonIcon);
        radioGroup.add(radiobuttonIcon);
        contentPanel.add(iconPanel);
        if (isFirst) {
            radiobuttonIcon.setValue(true);
            isFirst = false;
        }
    }
}
Also used : RowLayout(com.extjs.gxt.ui.client.widget.layout.RowLayout) Radio(com.extjs.gxt.ui.client.widget.form.Radio) Icon(org.activityinfo.legacy.shared.reports.model.MapIcon.Icon) MapIcon(org.activityinfo.legacy.shared.reports.model.MapIcon) Image(com.google.gwt.user.client.ui.Image) ContentPanel(com.extjs.gxt.ui.client.widget.ContentPanel)

Example 2 with RowLayout

use of com.extjs.gxt.ui.client.widget.layout.RowLayout in project activityinfo by bedatadriven.

the class LocationFilterPanel method initializeComponent.

private void initializeComponent() {
    setHeadingText(I18N.CONSTANTS.filterByLocation());
    setIcon(IconImageBundle.ICONS.filter());
    setLayout(new RowLayout(Style.Orientation.VERTICAL));
    setScrollMode(Style.Scroll.NONE);
    setHeadingText(I18N.CONSTANTS.filterByLocation());
    setIcon(IconImageBundle.ICONS.filter());
}
Also used : RowLayout(com.extjs.gxt.ui.client.widget.layout.RowLayout)

Aggregations

RowLayout (com.extjs.gxt.ui.client.widget.layout.RowLayout)2 ContentPanel (com.extjs.gxt.ui.client.widget.ContentPanel)1 Radio (com.extjs.gxt.ui.client.widget.form.Radio)1 Image (com.google.gwt.user.client.ui.Image)1 MapIcon (org.activityinfo.legacy.shared.reports.model.MapIcon)1 Icon (org.activityinfo.legacy.shared.reports.model.MapIcon.Icon)1