[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Yes-No-Cancel-Popup  XML
Forum Index -> Development
Author Message
heyl

Power User

Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline

Hi Björn,

we would like to have an enhanced Yes-No-Popup with three answers Yes-No-Cancel.
Don't you think that would be a true enrichment to your features?

Thanks for thinking it over ....
Frauke
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
Offline

Hi Frauke,

yes... (see Screenshot) - is part of next update.

Code:
         YESNOPopup ynp = YESNOPopup.createInstance
         (
             "Please read",
             "This is the content of the popup. Please either select YES or NO - or leave the popup by clicking the corner-close button.",
             new IYesNoListener() 
             {
                 public void reactOnNo()
                 {
                     Statusbar.outputMessage("No was pressed inside the popup.");
                 }
                 public void reactOnYes()
                 {
                     Statusbar.outputMessage("Yes was pressed inside the popup.");
                 }
             }
         );
         ynp.setShowCancel(true);
 


Björn
[Thumb - yesnopopup.jpg]
 Filename yesnopopup.jpg [Disk] Download
 Description
 Filesize 13 Kbytes
 Downloaded:  448 time(s)


Björn Müller, CaptainCasa GmbH
hilka

Power User

Joined: 23/11/2007 09:00:08
Messages: 191
Offline

Great!

Tobias
heyl

Power User

Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline

Hi Björn,

it works,

but I don't like the look of it.
See screenshot immediatly after the dialog was opened.

Frauke
 Filename YesNoCancel.JPG [Disk] Download
 Description
 Filesize 15 Kbytes
 Downloaded:  502 time(s)

CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
Offline

...this should have to do with "your" style management: I believe any button has the minimum width of 100 pixels in your style...

Could you check?

Björn

Björn Müller, CaptainCasa GmbH
heyl

Power User

Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline

Yes, you are right, its even "120+"
heyl

Power User

Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline

Hi Björn,

could you reset the showCancel property to false as default in YesNoPoup.createInstance? Now the cancel button appears in any YesNoPopup after it has been set once.

Anything we could do about the sizing problem (see previous posts)?
Can I define a YesNoPopup style with a smaller button size?
I am not permitted to change our global default button style!

Thanks,
Frauke
hilka

Power User

Joined: 23/11/2007 09:00:08
Messages: 191
Offline

Hi Captain,

what about providing a separate style definition for every control provided by the framework. In this case: some style definition like "buttonInYesNoPopup".

We faced this issue already with your image capture control which also uses the default styles and not a separate definition.

And with this: some possibility for defining variables?

Tobias
heyl

Power User

Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline

Hi Björn,

please remember the button sizing problem.
I got some feedback concerning the scrollbar in the popup from "outside".
All I can do is pass the ball on to you....
Please consider Tobi's idea about the popup style.

Thanks
Frauke
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
Offline

The size of the buttons in the popup is now defined by "CaptainCasa". Basta!
Thanks for reminding...

Björn

Björn Müller, CaptainCasa GmbH
wocher

Power User
[Avatar]

Joined: 14/04/2008 13:10:19
Messages: 49
Location: Ravensburg
Offline

Hi Björn,

in which lib is the IYesNoListener i can not find this.

Greet Wocher

[edit] ok resolved i write the import self, then its work.
the combination strg + shift + o failed :/

„Ein Haus ohne Bücher ist arm, auch wenn schöne Teppiche seinen Boden und kostbare Tapeten und Bilder die Wände bedecken.“
Hermann Hesse, Dichter, Schriftsteller und Maler * 02. 07. 1877 - Calw † 09. 08. 1962 - Montagnola, Schweiz

Rainer Wocher Quentia Development GmbH (Sotware Developer)
[ICQ]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5519
Offline

..it's an inner interface of YesNoPopup.

Code:
 public class YESNOPopup 
     implements Serializable, IModalPopupListener
 {
     // ------------------------------------------------------------------------
     // inner classes
     // ------------------------------------------------------------------------
     
     public static interface IYesNoListener
     {
         public void reactOnYes();
         public void reactOnNo();
     }
     
 


Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team