|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JOptionPane
org.vizzini.ui.AbstractOptionPane
org.vizzini.ui.AboutDialog
public class AboutDialog
Provides a dialog for displaying application information.
Resources used by this dialog:
Resource Name
"STRING_about"
"STRING_author"
"STRING_copyright"
"STRING_description"
"STRING_close"
"STRING_version"
"STRING_year"
"ICON_program"
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JOptionPane |
---|
JOptionPane.AccessibleJOptionPane |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class org.vizzini.ui.AbstractOptionPane |
---|
_title, APPLY_OPTION, CUSTOM_CANCEL_APPLY_OPTION, CUSTOM_CANCEL_OPTION, CUSTOM_OPTION, OK_CANCEL_APPLY_OPTION |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
AboutDialog(Frame frame,
String ownerTitle)
Construct the about box. |
|
AboutDialog(Frame frame,
String title,
String version,
String copyright,
String email,
String webSite,
Icon icon,
String description)
Construct the about box. |
Method Summary | |
---|---|
protected JPanel |
createContactPanel(String email,
String webSite)
Create the contact panel. |
protected JPanel |
createSystemPropertiesPanel(boolean isApplet)
Create the system properties area. |
protected JPanel |
createTopPanel(String version,
String copyright,
Icon icon)
Create the top panel. |
protected void |
fillMainPanel(JPanel mainPanel)
Fill the main panel which is placed in the message area of the option pane. |
protected String |
getTitleKey()
Return the title string key. |
protected void |
performUpdates()
Provides a hook for updating the dialog contents. |
protected void |
setTitle(String title)
Set the title of this dialog. |
Methods inherited from class org.vizzini.ui.AbstractOptionPane |
---|
applyActionPerformed, cancelActionPerformed, checkComponents, closedActionPerformed, createMainPanel, fillMainPanel, findAndSetDefaultButton, getDialog, getMainPanel, getOptionType, getOwnerTitle, getResult, init, initializeOptionStrings, isActionApproved, isDirty, noActionPerformed, okActionPerformed, processResult, setCursorBusy, setDirty, setOptionType, setOptionType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AboutDialog(Frame frame, String ownerTitle)
frame
- The owning frame.ownerTitle
- Title representing the owning application.public AboutDialog(Frame frame, String title, String version, String copyright, String email, String webSite, Icon icon, String description)
frame
- The owning frame.title
- The dialog window title.version
- A string which describes the program version.copyright
- The copyright string.email
- Email address.webSite
- Web site address.icon
- The icon to use in this dialog.description
- A description of this program.Method Detail |
---|
protected JPanel createContactPanel(String email, String webSite)
email
- Email address.webSite
- Web site address.protected JPanel createSystemPropertiesPanel(boolean isApplet)
isApplet
- Flag indicating if this is an applet.protected JPanel createTopPanel(String version, String copyright, Icon icon)
version
- A string which describes the program version.copyright
- The copyright string.icon
- The icon to use in this dialog.protected void fillMainPanel(JPanel mainPanel)
fillMainPanel
in class AbstractOptionPane
protected String getTitleKey()
getTitleKey
in class AbstractOptionPane
protected void performUpdates()
performUpdates
in class AbstractOptionPane
protected void setTitle(String title)
setTitle
in class AbstractOptionPane
title
- New title.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |