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