PDA

View Full Version : passing data from handleEvent to another class



miko5054
2 Mar 2011, 8:39 AM
im trynig to pass data from this event

public void handleEvent(ButtonEvent e) {
DataBean dataBean = new DataBean(null, null, null, null, null,
textBox.getText(), null, null, null);
AppEvent event = new AppEvent(AppEvents.SendButtun, dataBean);
Dispatcher.forwardEvent(event);

System.out.println("from the butun box");
grid.getStore().getLoader().load();
}
});




to another class that inquired the DB and put the new data in the grid
i can put data to the grid Manuel, but i want to receive data from text box and inquired the DB with them

thanks allot


miki