panel.setSize(WINDOW_WIDTH, 100);
objPanel.add(panel);
Context.getInstance().addDetailExecution("ObjectiveWindow 17");
FormButtonBinding binding = new FormButtonBinding(objPanel);
if(guardar){
btnGuardar.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent ce) {
guardarObjetivo();}});
objPanel.addButton(btnGuardar);
binding.addButton(btnGuardar);
}else{
btnModificar.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent ce) {
modificarObjetivo();}});
objPanel.addButton(btnModificar);
binding.addButton(btnModificar);
}
Context.getInstance().addDetailExecution("ObjectiveWindow 18");
btnCancelar.addSelectionListener(new SelectionListener<ButtonEvent>() {
public void componentSelected(ButtonEvent ce) {
cerrarVentana();}});