ItEr33S14CUCreacionUnidadesPlanificacion: Adding method to be overridable with actions to do when the user presses ok
This commit is contained in:
parent
625b06b2c8
commit
f4056887a7
1 changed files with 11 additions and 1 deletions
|
|
@ -89,7 +89,17 @@ public class TaskEditFormComposer extends GenericForwardComposer {
|
|||
}
|
||||
|
||||
public void onClick$ok(Event event) {
|
||||
popUp.close();
|
||||
if (okPressed()) {
|
||||
popUp.close();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* hook for executing actions when ok is pressed.
|
||||
* @return <code>true</code> only if can exit the popup
|
||||
*/
|
||||
protected boolean okPressed() {
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue