public Form getForm() {
if (form == null) {
// write pre-init user code here
form = new Form("form", new Item[]{getTextAgregarNotas(), getArreglo(), getAprobados(), getDesaprobados(), getNotamayor(), getNotaminima(), getPromedio()});
form.addCommand(getBtnAgregar1());
form.addCommand(getBtnNotamayor());
form.addCommand(getBtnNotamenor());
form.addCommand(getCalcular());
form.addCommand(getExitCommand14());
form.setCommandListener(this);
// write post-init user code here
}
return form;
}
//</editor-fold>
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: btnAgregar1 ">
/**
* Returns an initialized instance of btnAgregar1 component.
*
* @return the initialized component instance
*/
public Command getBtnAgregar1() {
if (btnAgregar1 == null) {
// write pre-init user code here
btnAgregar1 = new Command("Agregar", Command.ITEM, 0);
// write post-init user code here
}
return btnAgregar1;
}
//</editor-fold>
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: btnNotamayor ">
/**
* Returns an initialized instance of btnNotamayor component.
*
* @return the initialized component instance
*/
public Command getBtnNotamayor() {
if (btnNotamayor == null) {
// write pre-init user code here
btnNotamayor = new Command("NotaMayor", Command.ITEM, 0);
// write post-init user code here
}
return btnNotamayor;
}
//</editor-fold>
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: btnNotamenor ">
/**
* Returns an initialized instance of btnNotamenor component.
*
* @return the initialized component instance
*/
public Command getBtnNotamenor() {
if (btnNotamenor == null) {
// write pre-init user code here
btnNotamenor = new Command("NotaMenor", Command.ITEM, 0);
// write post-init user code here
}
return btnNotamenor;
}
//</editor-fold>
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: Calcular ">
/**
* Returns an initialized instance of Calcular component.
*
* @return the initialized component instance
*/
public Command getCalcular() {
if (Calcular == null) {
// write pre-init user code here
Calcular = new Command("Calcular", Command.OK, 0);
// write post-init user code here
}
return Calcular;
}
//</editor-fold>
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: exitCommand14 ">
/**
* Returns an initialized instance of exitCommand14 component.
*
* @return the initialized component instance
*/
public Command getExitCommand14() {
if (exitCommand14 == null) {
// write pre-init user code here
exitCommand14 = new Command("Exit", Command.EXIT, 0);
// write post-init user code here
}
return exitCommand14;
}
//</editor-fold>
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: textAgregarNotas ">
/**
* Returns an initialized instance of textAgregarNotas component.
*
* @return the initialized component instance
*/
public TextField getTextAgregarNotas() {
if (textAgregarNotas == null) {
// write pre-init user code here
textAgregarNotas = new TextField("Agregar notas", null, 32, TextField.DECIMAL);
// write post-init user code here
}
return textAgregarNotas;
}
//</editor-fold>
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: Arreglo ">
/**
* Returns an initialized instance of Arreglo component.
*
* @return the initialized component instance
*/
public StringItem getArreglo() {
if (Arreglo == null) {
// write pre-init user code here
Arreglo = new StringItem("Arreglo", null);
// write post-init user code here
}
return Arreglo;
}
//</editor-fold>
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: Aprobados ">
/**
* Returns an initialized instance of Aprobados component.
*
* @return the initialized component instance
*/
public StringItem getAprobados() {
if (Aprobados == null) {
// write pre-init user code here
Aprobados = new StringItem("Aprobados", null);
// write post-init user code here
}
return Aprobados;
}
//</editor-fold>
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: Desaprobados ">
/**
* Returns an initialized instance of Desaprobados component.
*
* @return the initialized component instance
*/
public StringItem getDesaprobados() {
if (Desaprobados == null) {
// write pre-init user code here
Desaprobados = new StringItem("Desaprobados", null);
// write post-init user code here
}
return Desaprobados;
}
//</editor-fold>
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: Notamayor ">
/**
* Returns an initialized instance of Notamayor component.
*
* @return the initialized component instance
*/
public StringItem getNotamayor() {
if (Notamayor == null) {
// write pre-init user code here
Notamayor = new StringItem("Nota Mayor", null);
// write post-init user code here
}
return Notamayor;
}
//</editor-fold>
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: Notaminima ">
/**
* Returns an initialized instance of Notaminima component.
*
* @return the initialized component instance
*/
public StringItem getNotaminima() {
if (Notaminima == null) {
// write pre-init user code here
Notaminima = new StringItem("Nota Minima", null);
// write post-init user code here
}
return Notaminima;
}
//</editor-fold>
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: Promedio ">
/**
* Returns an initialized instance of Promedio component.
*
* @return the initialized component instance
*/
public StringItem getPromedio() {
if (Promedio == null) {
// write pre-init user code here
Promedio = new StringItem("Promedio", null);
// write post-init user code here
}
return Promedio;
}
//</editor-fold>
/**
* Returns a display instance.
*
* @return the display instance.
*/
public Display getDisplay() {
return Display.getDisplay(this);
}
/**
* Exits MIDlet.
*/
public void exitMIDlet() {
switchDisplayable(null, null);
destroyApp(true);
notifyDestroyed();
}
/**
* Called when MIDlet is started. Checks whether the MIDlet have been
* already started and initialize/starts or resumes the MIDlet.
*/
public void startApp() {
if (midletPaused) {
resumeMIDlet();
} else {
initialize();
startMIDlet();
}
midletPaused = false;
}
/**
* Called when MIDlet is paused.
*/
public void pauseApp() {
midletPaused = true;
}
/**
* Called to signal the MIDlet to terminate.
*
* @param unconditional if true, then the MIDlet has to be unconditionally
* terminated and all resources has to be released.
*/
public void destroyApp(boolean unconditional) {
}
private float w(TextField textNotas) {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
private float w(int mayor) {
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
}
}