Flash required to explore WidSets
The newest version of the Flash Player is required to explore WidSets. Please download and install the free Flash Player from the icon below.
After installation, refresh this page »
Need help about syntax please.
Need help about syntax please.
Hi. I just came from MIDP development so I'm quite new here. Please bear with my noviceness and my English language. T_T
Question:
final Shell s = Viewable(data)->();
What's this line supposed to mean? (there's no "->" in Java)
The above line is taken from this method in the GUI example bundled with the sdk.
void actionPerformed(Shell shell, Component source, int action)
{
switch(action)
{
case CMD_SELECT:
{
//Label from main menu was clicked, take
//function-reference and invoke it.
Object data = source.getData();
if (data != null) {
final Shell s = Viewable(data)->();
//If it returned a shell, push that shell
//to view stack.
if (s != null) {
pushShell(s);
}
}
}
break;
case CMD_BACK:
{
popShell(shell);
}
break;
}
}
I tried browsing basic helium syntax in wiki but found nothing about this.
Thanks in advance. =)
