Wednesday, April 14, 2010

DialogPanel - DialogBox Enhancement Revisit

In http://h2g2java.blessedgeek.com/2009/07/gwt-useable-closeable-scrollable.html, I had presented a skeletal to a DialogBox with a close button on its caption bar. That article explains the reason for such an effort is because the GWT architects have gone through extraordinary lengths to ensure we cannot extend the caption bar to modify its behaviour.

However the alignment of elements in the caption bar of that skeletal is simply skeletal, without CSS to align them. Therefore, I wrote an improvement that includes alignment CSS, but it is still skeletal because the background of the caption bar is transparent and that leaves it to you to filling in the background.

This improvement class DialogPanel, besides having a more presentable caption bar,
  1. uses UIBinder to define the caption bar,
  2. extends DecoratedPanel rather than extending or patching DialogBox,
  3. no longer has a ScrollPanel, because scroll feature is best left to the end-user-programmer by setWidget method.
The event handling scheme is exactly the same as in http://h2g2java.blessedgeek.com/2009/07/gwt-useable-closeable-scrollable.html, so you should refer to that article on the handling of events for DialogPanel.

The source code is found in google code repository at
  1. http://code.google.com/p/synthfuljava/source/browse/trunk/gwt/widgets/org/synthful/gwt/widgets/client/ui/DialogPanel.java and
  2. http://code.google.com/p/synthfuljava/source/browse/trunk/gwt/widgets/org/synthful/gwt/widgets/client/ui/DialogPanel-Caption.ui.xml.

My next plan is to make the DialogPanel resize-able by mouse. So, keep a lookout for its enhancement.

8 comments:

  1. Thank you for your support who has read our article. I'm very happy if you can share our article below

    Cara Mengobati Mata Merah
    Vitamin Untuk Ibu Hamil
    Cara Menghilangkan Keputihan Pada Ibu Hamil

    ReplyDelete
  2. La Nike Air Max Mujer se ha convertido en una locura internacional durante mucho tiempo.
    En los últimos tiempos, muchas marcas han lanzado su colección de Camisetas Nba 2018.
    Hay tanto camisetas caras y camisetas baratas, especialmente la Camisetas Nba Baratas.
    Con el número creciente de fanáticos locos, la Camisetas Nba no solo está pensada para los jugadores.
    Las tiendas de deportes pueden querer Comprar Camisetas De Futbol.
    Para las tiendas, puede comprar Camisetas De Futbol Baratas de China y otros países a bajo precio.
    Estos Camisetas De Futbol Baratas están hechos a medida y diseñados para dar el mejor ajuste.
    La mejor forma de Comprar Camisetas De Futbol es buscar en nuestra auténtica tienda en línea.

    ReplyDelete
  3. La Nike Air Max Mujer se ha convertido en una locura internacional durante mucho tiempo.
    En los últimos tiempos, muchas marcas han lanzado su colección de Camisetas Nba 2018.
    Hay tanto camisetas caras y camisetas baratas, especialmente la Camisetas Nba Baratas.
    Con el número creciente de fanáticos locos, la Camisetas Nba no solo está pensada para los jugadores.
    Las tiendas de deportes pueden querer Comprar Camisetas De Futbol.
    Para las tiendas, puede comprar Camisetas De Futbol Baratas de China y otros países a bajo precio.
    Estos Camisetas De Futbol Baratas están hechos a medida y diseñados para dar el mejor ajuste.
    La mejor forma de Comprar Camisetas De Futbol es buscar en nuestra auténtica tienda en línea.

    ReplyDelete
  4. Both things are possible if you carry Michael Kors Handbags Wholesale. If you are a woman who goes for innovative designs, a designer Michael Kors Bags On Sale is perfect for you. Offering a huge selection of chic purses, handbags, shoes and accessories, Michael Kors Outlet Online Store celebrates womanhood in an entirely unique way. Michael Kors Factory Outlet Online Store At Wholesale Price are one of the most sought-after handbags worldwide. We all agree that diamonds are a woman's best friend; however Official Coach Factory Outlet Online are absolutely next in line. To Coach Outlet Sale aficionados, don't fret because we have great news: a discount Official Coach Outlet Online isn't hard to find. If you are a smart shopper looking for a good buy and great deals on your next handbag purchase, you can go to Official Coach Outlet Online.

    Friendly Links: Toms Shoes Womens | Toms Clearance

    ReplyDelete