Search in sources :

Example 1 with BaseListLoader

use of com.extjs.gxt.ui.client.data.BaseListLoader in project activityinfo by bedatadriven.

the class DrillDownEditor method createDialog.

private void createDialog() {
    proxy = new DrillDownProxy(dispatcher);
    store = new ListStore<>(new BaseListLoader(proxy));
    grid = new Grid<>(store, buildColumnModel());
    grid.setLoadMask(true);
    dialog = new Dialog();
    dialog.setHeadingText(I18N.CONSTANTS.sites());
    dialog.setButtons(Dialog.CLOSE);
    dialog.setLayout(new FitLayout());
    dialog.setSize(WIDTH, HEIGHT);
    dialog.add(grid);
    dialog.addListener(Events.Move, new Listener<BaseEvent>() {

        @Override
        public void handleEvent(BaseEvent baseEvent) {
            left = -1;
            top = -1;
        }
    });
}
Also used : Dialog(com.extjs.gxt.ui.client.widget.Dialog) BaseEvent(com.extjs.gxt.ui.client.event.BaseEvent) BaseListLoader(com.extjs.gxt.ui.client.data.BaseListLoader) FitLayout(com.extjs.gxt.ui.client.widget.layout.FitLayout)

Aggregations

BaseListLoader (com.extjs.gxt.ui.client.data.BaseListLoader)1 BaseEvent (com.extjs.gxt.ui.client.event.BaseEvent)1 Dialog (com.extjs.gxt.ui.client.widget.Dialog)1 FitLayout (com.extjs.gxt.ui.client.widget.layout.FitLayout)1