Created
September 8, 2014 02:50
-
-
Save faloi/7e4d4f3069b59366733b to your computer and use it in GitHub Desktop.
Ejemplo simple del uso de RadioSelector en Arena
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ui; | |
import org.uqbar.commons.utils.Observable; | |
import java.util.Arrays; | |
import java.util.List; | |
@Observable | |
public class UnViewModel { | |
private String nombreSeleccionado; | |
private String animalSeleccionado; | |
public String getNombreSeleccionado() { | |
return nombreSeleccionado; | |
} | |
public void setNombreSeleccionado(String nombreSeleccionado) { | |
this.nombreSeleccionado = nombreSeleccionado; | |
} | |
public String getAnimalSeleccionado() { | |
return animalSeleccionado; | |
} | |
public void setAnimalSeleccionado(String animalSeleccionado) { | |
this.animalSeleccionado = animalSeleccionado; | |
} | |
public List<String> getNombres() | |
{ | |
return Arrays.asList("Fede", "Juli"); | |
} | |
public List<String> getAnimales() | |
{ | |
return Arrays.asList("Theolor", "Wally"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment