Search in sources :

Example 1 with AnchorData

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

the class LayersWidget method createBaseMapPanel.

private void createBaseMapPanel() {
    baseMapPanel = new BaseMapPanel(service);
    baseMapPanel.addValueChangeHandler(new ValueChangeHandler<String>() {

        @Override
        public void onValueChange(ValueChangeEvent<String> event) {
            mapElement.setBaseMapId(event.getValue());
            reportEventBus.fireChange();
        }
    });
    AnchorData layoutData = new AnchorData();
    layoutData.setAnchorSpec("100% none");
    add(baseMapPanel, layoutData);
}
Also used : AnchorData(com.extjs.gxt.ui.client.widget.layout.AnchorData)

Example 2 with AnchorData

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

the class LayersWidget method createLayersPanel.

private void createLayersPanel() {
    layersPanel = new ContentPanel();
    layersPanel.setCollapsible(false);
    layersPanel.setFrame(true);
    layersPanel.setHeadingText(I18N.CONSTANTS.layers());
    layersPanel.setBodyBorder(false);
    layersPanel.setHeaderVisible(true);
    layersPanel.setIcon(AbstractImagePrototype.create(MapResources.INSTANCE.layers()));
    AnchorData layoutData = new AnchorData();
    layoutData.setAnchorSpec("100% none");
    add(layersPanel, layoutData);
}
Also used : AnchorData(com.extjs.gxt.ui.client.widget.layout.AnchorData) ContentPanel(com.extjs.gxt.ui.client.widget.ContentPanel)

Aggregations

AnchorData (com.extjs.gxt.ui.client.widget.layout.AnchorData)2 ContentPanel (com.extjs.gxt.ui.client.widget.ContentPanel)1