Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

com.gentleware.services.swingx

Class XDialog

com.gentleware.services.swingx.XDialog
All known Subclassifier:
MessageFrame


public class XDialog


PoseidonDialog extends JDialog to provide updating of title when locale changes, a possibility to get all dialogs and some bug fixes.

Authors:
Stephen Kelvin


 Attribute Summary
private static Set  _dialogs
 
private static Localizer.Listener  _localeListener
 
private static boolean  _staticInitializationDone
 
private String  _titlePrefix
 
arrow_up
 

 Association Summary
private JButton  _defaultButton
 
private ResourceId  _resourceId
 
public XPagesDialog  xPagesDialog
 
arrow_up
 

 Constructor Summary
public   XDialog()
Construct a dialog with no owner or title  
public   XDialog(Frame owner)
Construct a non-modal dialog with the given owner and no title  
public   XDialog(Frame owner, boolean modal)
Construct a dialog with the given owner and no title  
public   XDialog(Frame owner, ResourceId resourceId)
Construct a non-modal dialog with the given owner. 
public   XDialog(Frame owner, ResourceId resourceId, boolean modal)
Construct a dialog with the given owner. 
public   XDialog(Frame owner, ResourceId resourceId, boolean modal, String titlePrefix)
Construct a dialog with the given owner. 
public   XDialog(Dialog owner, ResourceId resourceId, boolean modal, String titlePrefix)
Construct a dialog with the given owner. 
public   XDialog(Dialog owner)
Construct a non-modal dialog with the given owner and no title  
public   XDialog(Dialog owner, boolean modal)
Construct a dialog with the given owner and no title  
public   XDialog(Dialog owner, ResourceId resourceId)
Construct a dialog with the given owner. 
public   XDialog(Dialog owner, ResourceId resourceId, boolean modal)
Construct a dialog with the given owner. 
arrow_up
 

 Method Summary
public static XDialog[]   getDialogs()
Used when the Look and Feel is changed to update all components in each dialog. 
protected void   localeSwitched()
Whenever the locale (language) is changed update the title  
public void   pack()
Fix behaviour of pack() under Linux and JDK 1.3 when dialog is not resizable  
protected void   poseidonDialogInit(ResourceId resourceId)
Common initialization routine for the plethora of constructors  
public void   setDefaultButton(JButton button)
Width JDK 1.4.0_01 on Linux the default button gets lost when a dialog is disposed and shown again. 
public void   show()
Overridden to update the default button whenever the dialog is shown (again)  
private void   updateTitle()
Update the title from the stored resource name and key (if any). 
public void   updateUI()
Called when the current Look and Feel was changed. 
arrow_up
 

Tagged Values
static false
 

 Attribute Detail

_dialogs

private static Set _dialogs

arrow_up


_localeListener

private static Localizer.Listener _localeListener

arrow_up


_staticInitializationDone

private static boolean _staticInitializationDone

arrow_up


_titlePrefix

private String _titlePrefix

arrow_up
 Association Detail

_defaultButton

private JButton _defaultButton

arrow_up


_resourceId

private ResourceId _resourceId

arrow_up


xPagesDialog

public XPagesDialog xPagesDialog

arrow_up
 Constructor Detail

XDialog

public XDialog XDialog()


Construct a dialog with no owner or title  
Returns:
arrow_up


XDialog

public XDialog XDialog(Frame owner)


Construct a non-modal dialog with the given owner and no title  
Parameters:
owner -
Returns:
arrow_up


XDialog

public XDialog XDialog(Frame owner, boolean modal)


Construct a dialog with the given owner and no title  
Parameters:
owner -
modal -
Returns:
arrow_up


XDialog

public XDialog XDialog(Frame owner, ResourceId resourceId)


Construct a non-modal dialog with the given owner. Set the title from the given resource name and key. Title will be updated when language is changed.  
Parameters:
owner -
resourceId - the dialog's title will be read using this resource bundle and key
Returns:
arrow_up


XDialog

public XDialog XDialog(Frame owner, ResourceId resourceId, boolean modal)


Construct a dialog with the given owner. Set the title from the given resource name and key. Title will be updated when language is changed.  
Parameters:
owner -
resourceId - the dialog's title will be read using this resource bundle and key
modal -
Returns:
arrow_up


XDialog

public XDialog XDialog(Frame owner, ResourceId resourceId, boolean modal, String titlePrefix)


Construct a dialog with the given owner. Set the title from the given resource name and key. Title will be updated when language is changed.  
Parameters:
owner -
resourceId - the dialog's title will be read using this resource bundle and key
modal -
titlePrefix -
Returns:
arrow_up


XDialog

public XDialog XDialog(Dialog owner, ResourceId resourceId, boolean modal, String titlePrefix)


Construct a dialog with the given owner. Set the title from the given resource name and key. Title will be updated when language is changed.  
Parameters:
owner -
resourceId - the dialog's title will be read using this resource bundle and key
modal -
titlePrefix -
Returns:
arrow_up


XDialog

public XDialog XDialog(Dialog owner)


Construct a non-modal dialog with the given owner and no title  
Parameters:
owner -
Returns:
arrow_up


XDialog

public XDialog XDialog(Dialog owner, boolean modal)


Construct a dialog with the given owner and no title  
Parameters:
owner -
modal -
Returns:
arrow_up


XDialog

public XDialog XDialog(Dialog owner, ResourceId resourceId)


Construct a dialog with the given owner. Set the title from the given resource name and key. Title will be updated when language is changed.  
Parameters:
owner -
resourceId - the dialog's title will be read using this resource bundle and key
Returns:
arrow_up


XDialog

public XDialog XDialog(Dialog owner, ResourceId resourceId, boolean modal)


Construct a dialog with the given owner. Set the title from the given resource name and key. Title will be updated when language is changed.  
Parameters:
owner -
resourceId - the dialog's title will be read using this resource bundle and key
modal -
Returns:
arrow_up
 Method Detail

getDialogs

public static XDialog[] getDialogs()


Used when the Look and Feel is changed to update all components in each dialog.  
Returns:
arrow_up


localeSwitched

protected void localeSwitched()


Whenever the locale (language) is changed update the title  
arrow_up


pack

public void pack()


Fix behaviour of pack() under Linux and JDK 1.3 when dialog is not resizable  
arrow_up


poseidonDialogInit

protected void poseidonDialogInit(ResourceId resourceId)


Common initialization routine for the plethora of constructors  
Parameters:
resourceId -
arrow_up


setDefaultButton

public void setDefaultButton(JButton button)


Width JDK 1.4.0_01 on Linux the default button gets lost when a dialog is disposed and shown again. (Don't know how other platforms behave.) So we remember the default button and update it each time.  
Parameters:
button -
arrow_up


show

public void show()


Overridden to update the default button whenever the dialog is shown (again)  
arrow_up


updateTitle

private void updateTitle()


Update the title from the stored resource name and key (if any).  
arrow_up


updateUI

public void updateUI()


Called when the current Look and Feel was changed.  
arrow_up
Created  2004 - 10 - 21

    Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

Generated with Poseidon for UMLTM.
Poseidon is a registered trademark of Gentleware AG in Germany, USA and other countries. Copyright 2003-2004 Gentleware AG, Schanzenstr. 70, 20357 Hamburg, Germany. All Rights Reserved.

UML is a trademark or registered trademark of Object Management Group, Inc. in the U.S. and other countries.