Search in sources :

Example 1 with SelectRowPanel

use of com.ramussoft.pb.frames.SelectRowPanel in project ramus by Vitaliy-Yakovchuk.

the class SectorRowsEditor method getSelectRowPane.

private SelectRowPanel getSelectRowPane() {
    if (selectRowPanel == null) {
        selectRowPanel = new SelectRowPanel(framework, dataPlugin, accessRules);
        selectRowPanel.addSelectionListener(new SelectionListener() {

            @Override
            public void changeSelection(SelectionEvent event) {
                if (event.isSelected())
                    addRows(event.getRows());
                else {
                    removeRows(event.getRows());
                }
            }
        });
    }
    return selectRowPanel;
}
Also used : SelectionEvent(com.ramussoft.gui.qualifier.table.event.SelectionEvent) SelectRowPanel(com.ramussoft.pb.frames.SelectRowPanel) SelectionListener(com.ramussoft.gui.qualifier.table.event.SelectionListener)

Aggregations

SelectionEvent (com.ramussoft.gui.qualifier.table.event.SelectionEvent)1 SelectionListener (com.ramussoft.gui.qualifier.table.event.SelectionListener)1 SelectRowPanel (com.ramussoft.pb.frames.SelectRowPanel)1