PDA

View Full Version : [2.0-M3] Upgrade from 1.2.4



sdc
18 Jun 2009, 3:44 AM
I am trying to upgrade from 1.2.4 to 2.0-M3 for evaluation. What happened to SplitToolItem ? What can I use instead ?

sdc
18 Jun 2009, 4:21 AM
Also, Dialog.getButtonPressed has been removed. What can I use instead ? I was using it in a Listener :

new Listener<WindowEvent>() {
public void handleEvent(final WindowEvent ce) {
Dialog dialog = (Dialog) ce.component;
Button btn = dialog.getButtonPressed();
if("ok".equalsIgnoreCase(btn.getText())){
...
}

sdc
18 Jun 2009, 4:25 AM
I am trying to upgrade from 1.2.4 to 2.0-M3 for evaluation. What happened to SplitToolItem ? What can I use instead ?

SplitButton maybe ?

sdc
18 Jun 2009, 5:27 AM
Also, Dialog.getButtonPressed has been removed. What can I use instead ? I was using it in a Listener :

new Listener<WindowEvent>() {
public void handleEvent(final WindowEvent ce) {
Dialog dialog = (Dialog) ce.component;
Button btn = dialog.getButtonPressed();
if("ok".equalsIgnoreCase(btn.getText())){
...
}



Maybe ce.getButtonClicked() ?

sven
18 Jun 2009, 5:34 AM
Yes, the event has the button, as also with 1.2

sven
18 Jun 2009, 5:34 AM
SplitButton maybe ?


Yes you can directly add Buttons now to a Toolbar