| | |
| | | this.kontraChoice.append("rektr.", null); |
| | | |
| | | this.partiaChoice = new ChoiceGroup(null, ChoiceGroup.EXCLUSIVE); |
| | | this.partiaChoice.append("przed", null); |
| | | this.partiaChoice.append("po", null); |
| | | this.partiaChoice.append("przed / przed", null); |
| | | this.partiaChoice.append("przed / po", null); |
| | | this.partiaChoice.append("po / przed", null); |
| | | this.partiaChoice.append("po / po", null); |
| | | |
| | | this.punktyField = new TextField("PC:", null, 2, TextField.NUMERIC); |
| | | this.lewyField = new TextField("Lew:", null, 2, TextField.NUMERIC); |
| | |
| | | this.punktyField.setString(null); |
| | | this.lewyField.setString(null); |
| | | this.resultText.setText("Podaj wszystkie dane."); |
| | | |
| | | Display.getDisplay(this.midlet).setCurrentItem(this.kontraktField); |
| | | } |
| | | else if (command.getCommandType() == Command.EXIT) { |
| | | this.midlet.destroyApp(true); |
| | |
| | | } |
| | | |
| | | BrydzWynik wynik; |
| | | |
| | | String data = ""; |
| | | |
| | | |
| | | if( kontrakt < 0 || kontrakt > 7 ) { |
| | | this.resultText.setText("Niepoprawny kontrakt."); |
| | | return; |
| | |
| | | return; |
| | | } |
| | | |
| | | if( partia != 0 && partia != 1) { |
| | | if( partia < 0 || partia > 3) { |
| | | this.resultText.setText("Niepoprawna informacja o partii."); |
| | | return; |
| | | } |