model.addModelListener(this);
    public void modelChanged(ColorMapModel model)    {        reset();        this.model = model;        dispatch = new ColorMapDispatcher(model,listUI);        groupBar.addListener(dispatch);        groupBar.setCategoryTree(model.getTree());        listUI.setModel(null);        if(model != null)        {            groupBar.setEnabled(true);        }    }