|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Window | +--java.awt.Dialog | +--javax.swing.JDialog | +--planetj.gui.CMDialogJ
This subclass of JDialog provides I18N, debug messaging support, exception handling, and cursor state handling.
Field Summary |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
CMDialogJ()
CMDialogJ constructor comment. |
|
CMDialogJ(CMFrameJ owner)
CMDialogJ constructor comment. |
|
CMDialogJ(CMFrameJ owner,
boolean modal)
CMDialogJ constructor comment. |
|
CMDialogJ(CMFrameJ owner,
String title)
CMDialogJ constructor comment. |
|
CMDialogJ(CMFrameJ owner,
String title,
boolean modal)
CMDialogJ constructor comment. |
|
CMDialogJ(Dialog owner)
Creation date: (9/25/2001 2:49:53 PM) |
|
CMDialogJ(Dialog owner,
boolean modal)
Creation date: (9/25/2001 3:16:30 PM) |
|
CMDialogJ(Dialog owner,
String title,
boolean modal)
Creation date: (9/25/2001 3:19:08 PM) |
|
CMDialogJ(Frame owner)
CMDialogJ constructor comment. |
|
CMDialogJ(Frame owner,
boolean modal)
CMDialogJ constructor comment. |
|
CMDialogJ(Frame owner,
String title)
CMDialogJ constructor comment. |
|
CMDialogJ(Frame owner,
String title,
boolean modal)
CMDialogJ constructor comment. |
Method Summary | |
void |
debugMessage(Exception e)
debugMessage method is a convenience method that delegates the message back to the MessageManager |
void |
debugMessage(String string)
debugMessage method is a convenience method that delegates the message back to the MessageManager |
void |
debugMessage(String message,
Exception e)
debugMessage method is a convenience method that delegates the message back to the MessageManager |
void |
dispose()
Overrides to ensure always on top is set to false when closed |
Dictionary |
getClientProperties()
|
int |
getTimeInMills()
Insert the method's description here. |
String |
getTranslation()
Gets the translated String. |
String |
getTranslationId()
Gets the key of the translated String. |
void |
hide()
overrides to ensure always on top is false |
boolean |
isAlwaysOnTop()
Insert the method's description here. |
static void |
main(String[] args)
main entrypoint - starts the part when it is run as an application |
static CMDialogJ |
newCMDialogJ(CMTopLevelComponent pTLC,
boolean pModal)
Creates a new CMDialogJ with a CMTopLevelComponent as a parent. |
void |
putClientProperty(Object key,
Object value)
Add an arbitrary key/value "client property" to this component. |
void |
setAlwaysOnTop(boolean newAlwaysOnTop)
Insert the method's description here. |
void |
setTimeInMills(int newTimeInMills)
Insert the method's description here. |
void |
setTitle(String key)
Overrides the superclass to set the key for the translated String. |
void |
setTranslation(String newTranslation)
Sets the String without translating it. |
void |
setVisible(boolean vis)
overrides to ensure always on top is false |
void |
show()
Center the dialog in the bounds of the parent Frame or screen so this dialog will be centered withing its parent or on the screen. |
void |
showBusyCursor()
Set the cursor to busy |
void |
showDefaultCursor()
Reset the cursor to the default |
void |
showException(CMException exception)
shows an exception dialog |
void |
showException(Throwable exception)
shows an Exception dialog |
Methods inherited from class javax.swing.JDialog |
getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, update |
Methods inherited from class java.awt.Dialog |
addNotify, getTitle, isModal, isResizable, isUndecorated, setModal, setResizable, setUndecorated |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CMDialogJ()
public CMDialogJ(Dialog owner)
owner
- java.awt.Dialogpublic CMDialogJ(Dialog owner, String title, boolean modal)
owner
- java.awt.Dialogtitle
- java.lang.Stringmodal
- booleanpublic CMDialogJ(Dialog owner, boolean modal)
owner
- java.awt.Dialogmodal
- booleanpublic CMDialogJ(Frame owner)
owner
- java.awt.Framepublic CMDialogJ(Frame owner, String title)
owner
- java.awt.Frametitle
- java.lang.Stringpublic CMDialogJ(Frame owner, String title, boolean modal)
owner
- java.awt.Frametitle
- java.lang.Stringmodal
- booleanpublic CMDialogJ(Frame owner, boolean modal)
owner
- java.awt.Framemodal
- booleanpublic CMDialogJ(CMFrameJ owner)
owner
- CMFrameJpublic CMDialogJ(CMFrameJ owner, String title)
owner
- CMFrameJtitle
- java.lang.Stringpublic CMDialogJ(CMFrameJ owner, String title, boolean modal)
owner
- CMFrameJtitle
- java.lang.Stringmodal
- booleanpublic CMDialogJ(CMFrameJ owner, boolean modal)
owner
- CMFrameJmodal
- booleanMethod Detail |
public void debugMessage(Exception e)
public void debugMessage(String string)
public void debugMessage(String message, Exception e)
public void dispose()
dispose
in class Dialog
public Dictionary getClientProperties()
putClientProperty(java.lang.Object, java.lang.Object)
,
#getClientProperty
public int getTimeInMills()
public String getTranslation()
public String getTranslationId()
public void hide()
hide
in class Dialog
public boolean isAlwaysOnTop()
public static void main(String[] args)
args
- java.lang.String[]public static CMDialogJ newCMDialogJ(CMTopLevelComponent pTLC, boolean pModal)
public final void putClientProperty(Object key, Object value)
The
If value is null this method will remove the property.
Changes to client properties are reported with PropertyChange
events. The name of the property (for the sake of PropertyChange
events) is
The clientProperty dictionary is not intended to support large
scale extensions to JComponent nor should be it considered an
alternative to subclassing when designing a new component.
get/putClientProperty
methods provide access to
a small per-instance hashtable. Callers can use get/putClientProperty
to annotate components that were created by another module, e.g. a
layout manager might store per child constraints this way. For example:
componentA.putClientProperty("to the left of", componentB);
key.toString()
.
#getClientProperty
,
Window.addPropertyChangeListener(java.beans.PropertyChangeListener)
public void setAlwaysOnTop(boolean newAlwaysOnTop)
newAlwaysOnTop
- booleanpublic void setTimeInMills(int newTimeInMills)
newTimeInMills
- intpublic void setTitle(String key)
setTitle
in class Dialog
public void setTranslation(String newTranslation)
public void setVisible(boolean vis)
setVisible
in class Component
public void show()
show
in class Dialog
public void showBusyCursor()
public void showDefaultCursor()
public void showException(Throwable exception)
public void showException(CMException exception)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |