|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
edu.wisc.ssec.mcidasv.ui.McvHelpTipDialog
public class McvHelpTipDialog
Represents a dialog that holds "help tips". This class is based
upon HelpTipDialog, but adds new functionality:
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JDialog |
|---|
JDialog.AccessibleJDialog |
| Nested classes/interfaces inherited from class java.awt.Dialog |
|---|
Dialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityType |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
private ActionListener |
actionListener
action listener |
private JLabel |
counterText
count |
private List |
helpTips
list of tips |
private int |
idx
index |
private JEditorPane |
messageText
message |
static String |
PREF_HELPTIPIDX
help tip index |
static String |
PREF_HELPTIPSHOW
help tip preference |
private XmlResourceCollection |
resources
resources |
private JCheckBox |
showCbx
checkbox |
private XmlObjectStore |
store
store |
private JLabel |
titleText
label |
| Fields inherited from class javax.swing.JDialog |
|---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Dialog |
|---|
DEFAULT_MODALITY_TYPE |
| 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 | |
|---|---|
McvHelpTipDialog(XmlResourceCollection resources,
ActionListener actionListener,
XmlObjectStore store,
Class origin,
boolean showByDefault)
Create the HelpTipDialog |
|
| Method Summary | |
|---|---|
void |
click(String url)
Handle a click on a link |
void |
close()
Close the dialog |
private String |
getMessage(Node helpTip)
Get the message for this tip |
XmlObjectStore |
getStore()
Get the persistence store |
private String |
getTitle(Node helpTip)
Get the title for this tip |
void |
hyperlinkUpdate(HyperlinkEvent e)
Handle a change to a link |
private void |
next()
Go to the next tip. |
private void |
previous()
Go to the next tip. |
private void |
random()
Go to the next tip. |
private void |
showTip()
Show the current tip. |
void |
writeShowNextTime()
Write show next time |
| Methods inherited from class java.awt.Dialog |
|---|
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setModalityType, setResizable, setTitle, setUndecorated, setVisible, show, toBack |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String PREF_HELPTIPSHOW
public static final String PREF_HELPTIPIDX
private List helpTips
private XmlResourceCollection resources
private int idx
private JLabel counterText
private JLabel titleText
private JEditorPane messageText
private JCheckBox showCbx
private XmlObjectStore store
private ActionListener actionListener
| Constructor Detail |
|---|
public McvHelpTipDialog(XmlResourceCollection resources,
ActionListener actionListener,
XmlObjectStore store,
Class origin,
boolean showByDefault)
resources - list of XML resourcesactionListener - listener for changesstore - store for persistenceorigin - calling classshowByDefault - true to show by default| Method Detail |
|---|
public void writeShowNextTime()
public void close()
public XmlObjectStore getStore()
private void previous()
private void next()
private void random()
public void hyperlinkUpdate(HyperlinkEvent e)
hyperlinkUpdate in interface HyperlinkListenere - the link's eventpublic void click(String url)
url - the link definitionprivate String getTitle(Node helpTip)
helpTip - the tip node
private String getMessage(Node helpTip)
helpTip - the tip node
private void showTip()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||