It could be very helpful to have a setAction method that takes both an actionID 
and an action.
Behind the scenes the setAction adds the string with the action in the 
namedActionDcitionary.  That way the actions can be created
anonymously but also named in the dictionary for later use.  You would have to 
resolve dictionary conflict is the actionID already exists but I suppose this 
exists anyway.

what could Pivot look like? (for example):


button.setAction("onclick", new Action() {
@Override
public void perform(Component source)
{
System.out.println("Hello World");
}


What do you think?

Reply via email to