📄 micropocha.java
字号:
*/
public Command get_pantallaGrafico() {
if (pantallaGrafico == null) {//GEN-END:MVDGetBegin33
// Insert pre-init code here
pantallaGrafico = new Command("Grafico", Command.SCREEN, 1);//GEN-LINE:MVDGetInit33
// Insert post-init code here
}//GEN-BEGIN:MVDGetEnd33
return pantallaGrafico;
}//GEN-END:MVDGetEnd33
/** This method returns instance for SalirDeTablero component and should be called instead of accessing SalirDeTablero field directly.//GEN-BEGIN:MVDGetBegin35
* @return Instance for SalirDeTablero component
*/
public Command get_SalirDeTablero() {
if (SalirDeTablero == null) {//GEN-END:MVDGetBegin35
// Insert pre-init code here
SalirDeTablero = new Command("Terminar", Command.EXIT, 3);//GEN-LINE:MVDGetInit35
// Insert post-init code here
}//GEN-BEGIN:MVDGetEnd35
return SalirDeTablero;
}//GEN-END:MVDGetEnd35
/** This method returns instance for grafico component and should be called instead of accessing grafico field directly.//GEN-BEGIN:MVDGetBegin37
* @return Instance for grafico component
*/
public telefono.Grafico get_grafico() {
if (grafico == null) {//GEN-END:MVDGetBegin37
// Insert pre-init code here
grafico = new telefono.Grafico(partida, this);//GEN-BEGIN:MVDGetInit37
grafico.addCommand(get_backCommand1());
grafico.setCommandListener(this);//GEN-END:MVDGetInit37
grafico.addCommand(get_backCommand1());
}//GEN-BEGIN:MVDGetEnd37
return grafico;
}//GEN-END:MVDGetEnd37
/** This method returns instance for backCommand1 component and should be called instead of accessing backCommand1 field directly.//GEN-BEGIN:MVDGetBegin38
* @return Instance for backCommand1 component
*/
public Command get_backCommand1() {
if (backCommand1 == null) {//GEN-END:MVDGetBegin38
// Insert pre-init code here
backCommand1 = new Command("Volver", Command.BACK, 1);//GEN-LINE:MVDGetInit38
// Insert post-init code here
}//GEN-BEGIN:MVDGetEnd38
return backCommand1;
}//GEN-END:MVDGetEnd38
/** This method returns instance for image1 component and should be called instead of accessing image1 field directly.//GEN-BEGIN:MVDGetBegin40
* @return Instance for image1 component
*/
public Image get_image1() {
if (image1 == null) {//GEN-END:MVDGetBegin40
// Insert pre-init code here
try {//GEN-BEGIN:MVDGetInit40
image1 = Image.createImage("/res/champ.png");
} catch (java.io.IOException exception) {
}//GEN-END:MVDGetInit40
// Insert post-init code here
}//GEN-BEGIN:MVDGetEnd40
return image1;
}//GEN-END:MVDGetEnd40
/** This method returns instance for image2 component and should be called instead of accessing image2 field directly.//GEN-BEGIN:MVDGetBegin42
* @return Instance for image2 component
*/
public Image get_image2() {
if (image2 == null) {//GEN-END:MVDGetBegin42
// Insert pre-init code here
try {//GEN-BEGIN:MVDGetInit42
image2 = Image.createImage("/res/crybaby.png");
} catch (java.io.IOException exception) {
}//GEN-END:MVDGetInit42
// Insert post-init code here
}//GEN-BEGIN:MVDGetEnd42
return image2;
}//GEN-END:MVDGetEnd42
/** This method returns instance for imageItem2 component and should be called instead of accessing imageItem2 field directly.//GEN-BEGIN:MVDGetBegin43
* @return Instance for imageItem2 component
*/
public ImageItem get_imageItem2() {
if (imageItem2 == null) {//GEN-END:MVDGetBegin43
class Item /* para compatibilidad con midp1.0 */
{
static final public int LAYOUT_LEFT=1;
static final public int LAYOUT_NEWLINE_AFTER=0x200;
static final public int LAYOUT_NEWLINE_BEFORE=0x100;
static final public int LAYOUT_RIGHT=2;
};
imageItem2 = new ImageItem("Perdedor", get_image2(), Item.LAYOUT_LEFT | Item.LAYOUT_NEWLINE_BEFORE | Item.LAYOUT_NEWLINE_AFTER, "PERDEDOR");//GEN-LINE:MVDGetInit43
}//GEN-BEGIN:MVDGetEnd43
return imageItem2;
}//GEN-END:MVDGetEnd43
/** This method returns instance for stringItem1 component and should be called instead of accessing stringItem1 field directly.//GEN-BEGIN:MVDGetBegin44
* @return Instance for stringItem1 component
*/
public StringItem get_stringItem1() {
if (stringItem1 == null) {//GEN-END:MVDGetBegin44
// Insert pre-init code here
stringItem1 = new StringItem(partida.getGanadorNombre(), ""+partida.getGanadorPuntos()+" puntos");//GEN-LINE:MVDGetInit44
// Insert post-init code here
}//GEN-BEGIN:MVDGetEnd44
return stringItem1;
}//GEN-END:MVDGetEnd44
/** This method returns instance for stringItem2 component and should be called instead of accessing stringItem2 field directly.//GEN-BEGIN:MVDGetBegin45
* @return Instance for stringItem2 component
*/
public StringItem get_stringItem2() {
if (stringItem2 == null) {//GEN-END:MVDGetBegin45
// Insert pre-init code here
stringItem2 = new StringItem(partida.getPerdedorNombre(), ""+partida.getPerdedorPuntos()+" puntos");//GEN-LINE:MVDGetInit45
// Insert post-init code here
}//GEN-BEGIN:MVDGetEnd45
return stringItem2;
}//GEN-END:MVDGetEnd45
/** This method returns instance for itemCommand1 component and should be called instead of accessing itemCommand1 field directly.//GEN-BEGIN:MVDGetBegin46
* @return Instance for itemCommand1 component
*/
public Command get_itemCommand1() {
if (itemCommand1 == null) {//GEN-END:MVDGetBegin46
// Insert pre-init code here
itemCommand1 = new Command("Reiniciar", Command.ITEM, 1);//GEN-LINE:MVDGetInit46
// Insert post-init code here
}//GEN-BEGIN:MVDGetEnd46
return itemCommand1;
}//GEN-END:MVDGetEnd46
/** This method returns instance for cargarPartida component and should be called instead of accessing cargarPartida field directly.//GEN-BEGIN:MVDGetBegin48
* @return Instance for cargarPartida component
*/
public List get_cargarPartida() {
if (cargarPartida == null) {//GEN-END:MVDGetBegin48
cargarPartida = new List("Cargar partida", Choice.IMPLICIT, new String[0], new Image[0]);//GEN-BEGIN:MVDGetInit48
cargarPartida.addCommand(get_borrarRms());
cargarPartida.addCommand(get_okCommand1());
cargarPartida.addCommand(get_cancelCarga());
cargarPartida.setCommandListener(this);
cargarPartida.setSelectedFlags(new boolean[0]);//GEN-END:MVDGetInit48
//cargarPartida.deleteAll();
String[] slots=this.almacen.getExistentes();
for(int i=0;i<slots.length;i++)
{
cargarPartida.append(slots[i],null);
}
}//GEN-BEGIN:MVDGetEnd48
return cargarPartida;
}//GEN-END:MVDGetEnd48
/** This method returns instance for screenCommand1 component and should be called instead of accessing screenCommand1 field directly.//GEN-BEGIN:MVDGetBegin50
* @return Instance for screenCommand1 component
*/
public Command get_screenCommand1() {
if (screenCommand1 == null) {//GEN-END:MVDGetBegin50
// Insert pre-init code here
screenCommand1 = new Command("Cargar", Command.SCREEN, 1);//GEN-LINE:MVDGetInit50
// Insert post-init code here
}//GEN-BEGIN:MVDGetEnd50
return screenCommand1;
}//GEN-END:MVDGetEnd50
/** This method returns instance for borrarRms1 component and should be called instead of accessing borrarRms1 field directly.//GEN-BEGIN:MVDGetBegin52
* @return Instance for borrarRms1 component
*/
public Command get_borrarRms1() {
if (borrarRms1 == null) {//GEN-END:MVDGetBegin52
// Insert pre-init code here
borrarRms1 = new Command("Cancelar", Command.CANCEL, 1);//GEN-LINE:MVDGetInit52
// Insert post-init code here
}//GEN-BEGIN:MVDGetEnd52
return borrarRms1;
}//GEN-END:MVDGetEnd52
/** This method returns instance for okCommand1 component and should be called instead of accessing okCommand1 field directly.//GEN-BEGIN:MVDGetBegin54
* @return Instance for okCommand1 component
*/
public Command get_okCommand1() {
if (okCommand1 == null) {//GEN-END:MVDGetBegin54
// Insert pre-init code here
/** carga , ok de carga*/
okCommand1 = new Command("Ok", Command.OK, 1);//GEN-LINE:MVDGetInit54
// Insert post-init code here
}//GEN-BEGIN:MVDGetEnd54
return okCommand1;
}//GEN-END:MVDGetEnd54
/** This method returns instance for borrarRms component and should be called instead of accessing borrarRms field directly.//GEN-BEGIN:MVDGetBegin58
* @return Instance for borrarRms component
*/
public Command get_borrarRms() {
if (borrarRms == null) {//GEN-END:MVDGetBegin58
// Insert pre-init code here
borrarRms = new Command("Borrar", Command.ITEM, 2);//GEN-LINE:MVDGetInit58
// Insert post-init code here
}//GEN-BEGIN:MVDGetEnd58
return borrarRms;
}//GEN-END:MVDGetEnd58
/** This method returns instance for GuardarComoCommand component and should be called instead of accessing GuardarComoCommand field directly.//GEN-BEGIN:MVDGetBegin60
* @return Instance for GuardarComoCommand component
*/
public Command get_GuardarComoCommand() {
if (GuardarComoCommand == null) {//GEN-END:MVDGetBegin60
// Insert pre-init code here
GuardarComoCommand = new Command("Guardar Como", Command.CANCEL, 2);//GEN-LINE:MVDGetInit60
// Insert post-init code here
}//GEN-BEGIN:MVDGetEnd60
return GuardarComoCommand;
}//GEN-END:MVDGetEnd60
/** This method returns instance for guardarComo component and should be called instead of accessing guardarComo field directly.//GEN-BEGIN:MVDGetBegin62
* @return Instance for guardarComo component
*/
public Form get_guardarComo() {
if (guardarComo == null) {//GEN-END:MVDGetBegin62
// Insert pre-init code here
guardarComo = new Form("Cuardar como", new Item[] {//GEN-BEGIN:MVDGetInit62
get_guardaComoTextField(),
get_stringItem3()
});
guardarComo.addCommand(get_okCommand2());
guardarComo.addCommand(get_cancelCommand4());
guardarComo.setCommandListener(this);//GEN-END:MVDGetInit62
// Insert post-init code here
}//GEN-BEGIN:MVDGetEnd62
return guardarComo;
}//GEN-END:MVDGetEnd62
/** This method returns instance for stringItem3 component and should be called instead of accessing stringItem3 field directly.//GEN-BEGIN:MVDGetBegin63
* @return Instance for stringItem3 component
*/
public StringItem get_stringItem3() {
if (stringItem3 == null) {//GEN-END:MVDGetBegin63
// Insert pre-init code here
stringItem3 = new StringItem("Nota:", "Se sobreescribe sin confirmaci\u00F3n, los nombres de archivos en may\u00FAsculas son diferentes a los nombres en min\u00FAsculas.");//GEN-LINE:MVDGetInit63
// Insert post-init code here
}//GEN-BEGIN:MVDGetEnd63
return stringItem3;
}//GEN-END:MVDGetEnd63
/** This method returns instance for guardaComoTextField component and should be called instead of accessing guardaComoTextField field directly.//GEN-BEGIN:MVDGetBegin64
* @return Instance for guardaComoTextField component
*/
public TextField get_guardaComoTextField() {
if (guardaComoTextField == null) {//GEN-END:MVDGetBegin64
// Insert pre-init code here
guardaComoTextField = new TextField("Introduzca el nombre de archivo", "nuevo", 120, TextField.ANY);//GEN-LINE:MVDGetInit64
// Insert post-init code here
}//GEN-BEGIN:MVDGetEnd64
return guardaComoTextField;
}//GEN-END:MVDGetEnd64
/** This method returns instance for okCommand2 component and should be called instead of accessing okCommand2 field directly.//GEN-BEGIN:MVDGetBegin65
* @return Instance for okCommand2 component
*/
public Command get_okCommand2() {
if (okCommand2 == null) {//GEN-END:MVDGetBegin65
// Insert pre-init code here
okCommand2 = new Command("Ok", Command.OK, 1);//GEN-LINE:MVDGetInit65
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -