• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

implementing command on alert

 
pingkan paula
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all, i have a question
Can i implement command with it's listener on class that extend alert?
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alerts are either timed or infinite. On the timed version it usually will just go to a Displayable after the time has expired. You tell the setDisplay(Alert, Displayable) method the Displayable to display after the time has expired.

So with the infinite is probably better to use, unless your alert is while it is waiting for another thread to complete, in which you can have a Cancel.

OK, but basically Alert implements er extends Displayable which has addCommand and setCommandListener.

So yes you can add commands to Alerts.

Mark
[ July 13, 2005: Message edited by: Mark Spritzler ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic