pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Santosh <pavanraju....@gmail.com>
Subject Re: Hi,
Date Wed, 02 Nov 2011 06:58:29 GMT
yes, i have a added a buttonpresslistener in the following way:

submit.getButtonPressListeners().add(new ButtonPressListener() {					
			public void buttonPressed(Button button) {
				String firstName = fname.getText();
								
				Form.Flag flag = null;
				if(flag == null){
					bean = new Bean(firstName, lastName, password, c1, c2, r1, r2, r3);
					ITest dao = new ITestDao();
					if(dao.testCase(bean)){
						Alert.alert(MessageType.INFO, "SUCCESSFULL...", CheckBoxTest.this);
					}
					else{
						Alert.alert(MessageType.INFO, "ERROR_Please Try After Some time...",
CheckBoxTest.this);
					}
				}
				else{
					Alert.alert(MessageType.INFO, "ERROR:_Please Try Again...",
CheckBoxTest.this);
				}
			}
		});

-----
santosh pavan raju
--
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Hi-tp3470619p3473020.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Mime
View raw message