int state = model.getState(); if (state == Browser.READY) {  setEnabled(true);  } else setEnabled(false);
setEnabled(model.getState() == Browser.READY );
    protected void onStateChange()    {        int state = model.getState();        if (state == Browser.READY) {            //if (model.getBrowserType() == Browser.IMAGES_EXPLORER)                 setEnabled(true);           // else onDisplayChange(model.getLastSelectedDisplay());        } else setEnabled(false);    }