|
MDACC Biostatistics |
||||||||||
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.JPanel
org.mdanderson.biostat.util.AbstractAboutPanel
org.mdanderson.biostat.util.DefaultAboutPanel
DefaultAboutPanel - Creates a generic ABOUT panel
Nested Class Summary |
Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
protected JLabel |
appNameVersionLine
|
protected JLabel |
bannerLine
|
protected JLabel |
copyrightLine
|
protected ImageIcon |
imageIcon
|
protected JLabel |
legalitiesLine
|
protected JLabel |
releaseDateLine
|
protected JLabel |
splashLabel
|
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 | |
DefaultAboutPanel()
Class constructor |
|
DefaultAboutPanel(byte[] imageBuffer)
Class constructor specifying image buffer |
|
DefaultAboutPanel(ImageIcon imageIcon)
Class constructor specifying image icon |
|
DefaultAboutPanel(String imageFileName)
Class constructor specifying image file name |
|
DefaultAboutPanel(URL imageURL)
Class constructor specifying image URL |
Method Summary | |
protected void |
addAboutPanelItems()
Adds items to about panel. |
protected JPanel |
createBannerPanel()
Creates a pane for displaying banner |
protected JPanel |
createImagePanel()
Creates a pane for displaying image |
protected JPanel |
createInfoPanel()
Creates a pane for displaying application information |
protected String |
enhanceBanner(String banner)
Enhances the original banner string. |
void |
setAppVersionLine(String appName,
String appVersion)
Sets the application name and version to be displayed |
void |
setBannerLine(String banner)
Sets the banner to be displayed |
void |
setCopyrightLine(String copyright)
Sets the copyright to be displayed |
void |
setCopyrightVisible(boolean visible)
Shows or hides the copyright information depending on the value of parameter |
void |
setLegalitiesLine(String legalities)
Sets the legal text to be displayed |
void |
setLegalitiesVisible(boolean visible)
Shows or hides the legal information depending on the value of parameter |
void |
setReleaseDateLine(Date date)
Sets the release date to be displayed |
void |
setReleaseDateLine(String date)
Sets the release date to be displayed |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected JLabel bannerLine
protected JLabel appNameVersionLine
protected JLabel copyrightLine
protected JLabel legalitiesLine
protected JLabel releaseDateLine
protected JLabel splashLabel
protected ImageIcon imageIcon
Constructor Detail |
public DefaultAboutPanel()
public DefaultAboutPanel(byte[] imageBuffer)
imageBuffer
- array of bytes specifying image bufferpublic DefaultAboutPanel(String imageFileName)
imageFileName
- name of file containing imagepublic DefaultAboutPanel(URL imageURL)
imageURL
- url of imagepublic DefaultAboutPanel(ImageIcon imageIcon)
imageIcon
- image iconMethod Detail |
public void setAppVersionLine(String appName, String appVersion)
setAppVersionLine
in interface AboutPanel
appName
- string specifying application name to be displayedappVersion
- string specifying application version to be displayedpublic void setBannerLine(String banner)
setBannerLine
in interface AboutPanel
banner
- string specifying banner text to be displayedpublic void setCopyrightLine(String copyright)
setCopyrightLine
in interface AboutPanel
copyright
- string specifying banner text to be displayedpublic void setCopyrightVisible(boolean visible)
setCopyrightVisible
in interface AboutPanel
visible
- if true, shows copyright information; otherwise, hides itpublic void setLegalitiesLine(String legalities)
setLegalitiesLine
in interface AboutPanel
legalities
- string specifying legal text to be displayedpublic void setLegalitiesVisible(boolean visible)
setLegalitiesVisible
in interface AboutPanel
visible
- if true, shows legal information; otherwise, hides itpublic void setReleaseDateLine(Date date)
setReleaseDateLine
in interface AboutPanel
date
- Date
specifying release date to be displayedpublic void setReleaseDateLine(String date)
setReleaseDateLine
in interface AboutPanel
date
- string specifying release date to be displayedprotected void addAboutPanelItems()
addAboutPanelItems
in class AbstractAboutPanel
protected JPanel createBannerPanel()
JPanel
representing banner panelprotected JPanel createImagePanel()
JPanel
representing image panelprotected JPanel createInfoPanel()
JPanel
representing application information panelprotected String enhanceBanner(String banner)
banner
- string containing banner text
|
MDACC Biostatistics |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |