Warning: com.justdial.search.NewAutoSuggest$1$1: can't find enclosing method 'void resp(java.util.Hashtable)' in class com.justdial.search.NewAutoSuggest$1
Warning: com.justdial.search.NewAutoSuggest$2$1: can't find enclosing method 'void resp(java.util.Hashtable)' in class com.justdial.search.NewAutoSuggest$2
Warning: com.justdial.search.NewAutoSuggest$3$1: can't find enclosing method 'void resp(java.util.Hashtable)' in class com.justdial.search.NewAutoSuggest$3
Warning: com.justdial.search.NewAutoSuggest$4$1: can't find enclosing method 'void resp(java.util.Hashtable)' in class com.justdial.search.NewAutoSuggest$4
Warning: com.justdial.search.NewAutoSuggest$5$1: can't find enclosing method 'void resp(java.util.Hashtable)' in class com.justdial.search.NewAutoSuggest$5
Warning: userclasses.StateMachine$14$1: can't find enclosing method 'void resp(java.util.Hashtable)' in class userclasses.StateMachine$14
Warning: userclasses.StateMachine$14$2: can't find enclosing method 'void resp(java.util.Hashtable)' in class userclasses.StateMachine$14
Warning: userclasses.StateMachine$14$3: can't find enclosing method 'void resp(java.util.Hashtable)' in class userclasses.StateMachine$14
Warning: userclasses.StateMachine$15$1: can't find enclosing method 'void resp(java.util.Hashtable)' in class userclasses.StateMachine$15
Warning: userclasses.StateMachine$15$2: can't find enclosing method 'void resp(java.util.Hashtable)' in class userclasses.StateMachine$15
Warning: userclasses.StateMachine$15$3: can't find enclosing method 'void resp(java.util.Hashtable)' in class userclasses.StateMachine$15
Warning: userclasses.StateMachine$15$4: can't find enclosing method 'void resp(java.util.Hashtable)' in class userclasses.StateMachine$15
Warning: userclasses.StateMachine$23$1: can't find enclosing method 'void resp(java.util.Hashtable)' in class userclasses.StateMachine$23
Warning: userclasses.StateMachine$32$1: can't find enclosing method 'void resp(java.util.Hashtable)' in class userclasses.StateMachine$32
Warning: userclasses.StateMachine$32$2: can't find enclosing method 'void resp(java.util.Hashtable)' in class userclasses.StateMachine$32
Warning: userclasses.StateMachine$48: can't find enclosing method 'java.util.Vector fetchfrnsList(java.lang.String)' in class userclasses.StateMachine
Warning: there were 16 unresolved references to program class members.
public class netWork {
public interface ResponseObject{
public void resp(Hashtable data);
}
public static NetworkManager networkManager = NetworkManager.getInstance();
public static JSONParser JsonParser= new JSONParser();
public static void init(){
/* createing a newtwork manager for all network related events */
networkManager.start();
networkManager.addErrorListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
NetworkEvent n = (NetworkEvent) evt;
n.getError().printStackTrace();
}
});
}
public static ConnectionRequest myNetwork(String uriString,final ResponseObject myresponse) {
String URL = uriString;
ConnectionRequest request = new ConnectionRequest(){
protected void readResponse(InputStream input) throws IOException {
myresponse.resp(JsonParser.parse(new InputStreamReader(input)));
}
protected void postResponse(){
Display.getInstance().getCurrent().refreshTheme();
}
};
InfiniteProgress ip = new InfiniteProgress();
Dialog d = new Dialog();
d.setDialogUIID("infiniteLoader");
d.setLayout(new BorderLayout());
Container cnt = new Container(new BoxLayout(BoxLayout.Y_AXIS));
Container ccc = new Container(new FlowLayout(Container.CENTER));
ccc.addComponent(ip);
ip.setUIID("Container");
cnt.addComponent(ccc);
Label ll = new Label("Loading...");
ll.setUIID("loaderLabel");
cnt.addComponent(ll);
d.addComponent(BorderLayout.CENTER, cnt);
d.setTransitionInAnimator(CommonTransitions.createEmpty());
d.setTransitionOutAnimator(CommonTransitions.createEmpty());
d.showPacked(BorderLayout.CENTER, false);
request.setHttpMethod("GET");
request.setUrl(URL);
NetworkManager.getInstance().addToQueue(request);
System.out.println(URL);
return request;
}
ConnectionRequest request = netWork.myNetwork3(myUrl, new ResponseObject() {
public void resp(Hashtable data) {
final Object xx = data;
Hashtable lHash = (Hashtable) xx;
final Vector tempresults = (Vector) lHash.get("results");
System.out.println("The results are " + tempresults);
}
});
public static Container result_whereSuggest(String url){
final Container wherereturn = new Container(new BoxLayout(BoxLayout.Y_AXIS));
wherereturn.setUIID("autosuggest_dropdown");
String myUrl = url;
System.out.println("result_where auto suggest is called");
ConnectionRequest request = netWork.myNetwork3(myUrl, new ResponseObject() {
public void resp(Hashtable data) {
// TODO Auto-generated method stub
final Object xx = data;
Hashtable lol1 = (Hashtable) xx;
final Vector tempresults = (Vector) lol1.get("results");
Vector<Hashtable> listofcities = new Vector<Hashtable>();
//ystem.out.println("results size ="+results.size());
if(!tempresults.isEmpty())
{
whereresults = tempresults;
}
// else {
// return;
// }
try {
if (!whereresults.isEmpty()) {
wherecontainers = new Container[whereresults.size()];
for (int i = 0; i < whereresults.size(); i++) {
wherecontainers[i]= new Container(new LayeredLayout());
wherecontainers[i].setUIID("Container");
//wherecontainers[i].removeAll();
}
for(int i=0;i<whereresults.size();i++){
final Hashtable myhash = (Hashtable) whereresults.elementAt(i);
Button wheretbn = new Button();
TextArea wheretxt = new TextArea();
wheretbn.setUIID("autosuggest1");
wheretxt.setUIID("autosuggest1");
wheretxt.setAlignment(Component.LEFT);
wheretxt.setEditable(false);
wheretxt.setEnabled(false);
//wheretbn.setText((String) myhash.get("area"));
wheretxt.setText((String) myhash.get("area"));
//returnContainer.addComponent(wheretbn);
wherecontainers[i].addComponent(wheretbn);
wherecontainers[i].addComponent(wheretxt);
whatvalue=HelloWorld.myState.findResultWhat().getText();
wheretbn.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
// TODO Auto-generated method stub
System.out.println("you clicked "+myhash.get("area")+" Button.");
wherevalue = (String) myhash.get("area");
System.out.println("You have selected ->" + wherevalue);
//HelloWorld.myState.findResultWhere().setText(wherevalue);
//System.out.println("this is lentgh of whatvalue "+ whatvalue.length());
if (whatvalue.toString().length()>1) {
//String search = HelloWorld.myState.findWhat().getText().toString();
String search =whatvalue;
HelloWorld.myState.setSearch(search);
HelloWorld.myState.Main_Search_where_Text="1";
HelloWorld.myState.Main_Search_Area_Text=wherevalue;
//System.out.println("atline 507 " +HelloWorld.myState.Main_Search_Area_Text);
//System.out.println("at line 508 "+HelloWorld.myState.Main_Search_where_Text);
//HelloWorld.myState.TopTabResults();
HelloWorld.myState.showForm("resultpage", null);
HelloWorld.myState.findResultWhere().setText(wherevalue);
HelloWorld.myState.findResultWhat().setText(whatvalue);
}
else {
//HelloWorld.myState.findResultWhere().setText(wherevalue);
HelloWorld.myState.Main_Search_Area_Text=wherevalue;
}
try {
HelloWorld.myState.findResultWheresearchcontainer().removeAll();
} catch (Exception e) {
// TODO: handle exception
}
//HelloWorld.myState.findMain().refreshTheme();
Display.getInstance().getCurrent().refreshTheme();
}
});
wherereturn.addComponent(wherecontainers[i]);
}
}
} catch (Exception e) {
// TODO: handle exception
}
}
});
return wherereturn;
}
}
I have commented out the actionListener and it works fine. To be sure, I commented out the actionListener and just added a new Actionlistener syntax and no code in it, I am still getting the error.
public class ActionMyListener implements ActionListener {
public void actionPerformed(ActionEvent evt) { // TODO Auto-generated method stub
System.out.println("This is second class file"); } public static ActionMyListener getInstance(){ ActionMyListener abc = new ActionMyListener(); return abc; }
}
ActionMyListener.getInstance().actionPerformed(new ActionEvent(wheretbn));
public class MyActionListener implements ActionListener {
private Hashtable localHashTable;
private int localInt;
public MyActionListener(int actionNumber, Hashtable myhash){
localHashTable = myhash;
localInt = actionNumber;
};
public void actionPerformed(ActionEvent evt) {
// TODO Auto-generated method stub
if (localInt==0) {
System.out.println("no action event becuase it is null");
} else {
switch (localInt) {
case 1:
{
System.out.println("you clicked "+localHashTable.get("citystate")+" Button.");
}
break;
default:
break;
}
}
System.out.println("Hey you");
}
public static MyActionListener getInstance(int avg,Hashtable abcd){
MyActionListener abc = new MyActionListener(avg,abcd);
return abc;
}
}
citybtn.addActionListener(MyActionListener.getInstance(1,myhash));
No errors.
Executing: java -jar SignatureTool.jar -a -C -s -p password MyApplication42.cod 2013-04-26 09:10:49:0276 : SignatureTool Started
Finding Files...
Loading Files: 0%
Loading Files: 100%
2013-04-26 09:10:50:0882 : SignatureTool Stopped
Executing: java -jar SignatureTool.jar -a -C -s -p password MyApplication42.cod 2013-04-26 09:12:49:0300 : SignatureTool Started
Finding Files...
Loading Files: 0%
Loading Files: 100%
2013-04-26 09:12:49:0549 : SignatureTool Stopped