Hi Matt,
        In that case, I would simply install a SheetStateListener on the
Prompt (DialogStateListener if you're using an Alert) and do whatever
you need to do in the "previewSheetClose" method and return the
appropriate vote.  If you can get done what you need to, then return
Vote.APPROVE, if not and the user needs to try again (maybe the password
is wrong), then return Vote.DENY, and if the action is on its way to
succeeding (but not quite there yet) then return Vote.DEFER.
        Using this technique, you can control whether the action will
really close the Prompt or not.
        If you need some examples, I can dig some up from our code -- I
use this in multiple places and it works quite well.

HTH,
~Roger

-----Original Message-----
From: mattux [mailto:[email protected]] 
Sent: Monday, May 21, 2012 1:13 AM
To: [email protected]
Subject: Re: Prompt: override option click event

Hi Roger,

Thanks for your answer.

This is similar to what I was originally doing with prompts after moving
from the selectionindexchanged event:
                prompt.open(this, new SheetCloseListener() {
                        public void sheetClosed(Sheet sheet) {

The only problem I have with this is that it will still close the alert
or
prompt. I would like it to remain open until I programmatically decide
to
close it.

I know one could say that I'm not trying to use the prompt in a
conditional
way in that case :)

Thanks,
Matt


--
View this message in context:
http://apache-pivot-users.399431.n3.nabble.com/Prompt-override-option-cl
ick-event-tp3999325p4004492.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Reply via email to