Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Zimlets

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-10-2007, 08:24 PM
Intermediate Member
 
Posts: 20
Default Add Button!

I want to know method that add a customize button on DwtDialog.

1- "setButtonListener(DwtDialog.OK_BUTTON, new AjxListener(this, this._OkListener)); -> it's ok.

2- "setButtonListener("example: 'confirm'", new AjxListener(this, this._OkListener)); -> but, it's error.

please, answer.
good luck!
Reply With Quote
  #2 (permalink)  
Old 10-17-2007, 06:03 PM
Member
 
Posts: 13
Default

You need to create new button object or use predefined ones like DwtDialog.CANCEL_BUTTON, DwtDialog.OK_BUTTON,DwtDialog.DISMISS_BUTTON...

you can create your own button
myButton = new DwtButton(...); and then you can set button listener on components that contains this button(for example a dialog)

dialog.setButtonListener(myButton , new AjxListener(this, this._OkListener));

Last edited by sondor; 10-18-2007 at 07:16 PM..
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.