|
Arch4J 1.1 | |||||||||
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 | +--org.arch4j.ui.components.HelpDialog
Generic help facility. Nothing fancy--just a JDialog that displays HTML text. Callers are expected to use getDefault() to get an instance and use either of setHelpText() or setHelpTextURL() to provide help text. showDialog() will display the modal dialog. implements Reusable
Field Summary | |
protected JButton |
m_closeButton
|
protected JEditorPane |
m_helpText
|
protected String |
m_helpTextURLBase
URL Base for all URLs used to display help text. |
Fields inherited from class javax.swing.JDialog |
accessibleContext, rootPane, rootPaneCheckingEnabled |
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 | |
protected |
HelpDialog()
Constructor--do not use |
Method Summary | |
static HelpDialog |
getDefault()
Implementation of singleton--use this to get an instance to work with |
String |
getHelpTextURLBase()
Accessor for URL base |
void |
hideDialog()
Hide the dialog (typically used after processing is complete). |
void |
reset()
Reset attributes for next use. |
void |
setHelpText(String pHelpText)
Set Help text (HTML allowed). |
void |
setHelpTextURL(String pHelpURL)
Set Help text using a URL (HTML allowed). |
void |
setHelpTextURLBase(String pHelpTextURLBase)
Mutator for URL base |
void |
showDialog()
Once all attributes are set, use this to show the dialog. |
Methods inherited from class java.awt.Dialog |
addNotify, dispose, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected String m_helpTextURLBase
protected JEditorPane m_helpText
protected JButton m_closeButton
Constructor Detail |
protected HelpDialog()
Method Detail |
public void reset()
public void showDialog()
public void hideDialog()
public void setHelpText(String pHelpText)
public String getHelpTextURLBase()
public void setHelpTextURLBase(String pHelpTextURLBase)
public void setHelpTextURL(String pHelpURL)
public static HelpDialog getDefault()
|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |