if (! event.getPhase().equals(phase)) {
return;
}
// fetch the status region
StatusRegionImpl statusRegion = StatusRegionUtil.getInstance();
// reset
if (resetIds != null) {
for (String id : resetIds) {
StatusPanel panel = statusRegion.getStatusPanel(id);
if (panel != null) {
panel.reset();
}
}
}
// disable
if (disableIds != null) {
for (String id : disableIds) {
StatusPanel panel = statusRegion.getStatusPanel(id);
if (panel != null) {
panel.setEnabled(false);
}
}
}
// enable
if (enableIds != null) {
for (String id : enableIds) {
StatusPanel panel = statusRegion.getStatusPanel(id);
if (panel != null) {
panel.setEnabled(true);
}
}
}