// dispatch events and listen to vetoes
for (int i = 0; i < dockableStateWillChangeListeners.size(); i++) {
DockableStateWillChangeListener listener = dockableStateWillChangeListeners.get(i);
listener.dockableStateWillChange(e);
if (!e.isAccepted()){ // stop as soon as the operation is cancelled
return false;
}
}
return true;