|
JComponentPack 1.5.0 | |||||||||
| 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
com.zfqjava.swing.JCommonPane
public class JCommonPane
JCommonPane provides some common panel.
| Nested Class Summary | |
|---|---|
protected class |
JCommonPane.AccessibleJCommonPane
This class implements accessibility support for the JCommonPane class. |
static class |
JCommonPane.BannerPanel
BannerPanel provides a common banner panel. |
static class |
JCommonPane.ImageBannerPanel
ImageBannerPanel provides a common image banner panel. |
static class |
JCommonPane.ImagePanel
ImagePanel provides a common image panel. |
| 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.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static String |
BACKGROUND_IMAGE
Key for use background image. |
static String |
BANNER_IMAGE
Key for use banner image. |
static String |
CENTER_PANEL
Key for center panel of this common pane. |
static String |
COPYRIGHT_NOTE
Key for copyright note. |
static String |
DEFAULT_BUTTON
Key for default button. |
static String |
DESCRIPTION
Key for use description. |
static String |
DIALOG
Key for the dialog. |
static String |
DIALOG_TITLE
Key for common dialog title. |
static String |
FEEDBACK_ACTION_URL
Key for the feedback action url which to post the feedback. |
static String |
FEEDBACK_CONTENT_PARAM_NAME
Key for the feedback content parameter name. |
static String |
FEEDBACK_EMAIL_PARAM_NAME
Key for the feedback email parameter name. |
static String |
FEEDBACK_REALNAME_PARAM_NAME
Key for the feedback realname parameter name. |
static String |
FEEDBACK_RECIPIENT_PARAM_NAME
Key for the feedback recipient parameter name. |
static String |
FEEDBACK_RECIPIENT_PARAM_VALUE
Key for the feedback recipient parameter value. |
static String |
FEEDBACK_SUBJECT_PARAM_NAME
Key for the feedback subject parameter name. |
static String |
FEEDBACK_SUBJECT_PARAM_VALUE
Key for the feedback subject parameter value. |
static String |
FEEDBACK_SUBJECT_SELECTED_INDEX
Key for the feedback subject selected index. |
static String |
FRAME_ICON_IMAGE
Key for frame icon image. |
static String |
HEADER
Key for use header. |
static String |
LAF_CLASS
Key for the LookAndFeel class for the LookAndFeel dialog. |
static String |
LAF_NAME
Key for the LookAndFeel name for the LookAndFeel dialog. |
static String |
LOCATION_ALWAYS_ENABLE_OK_BUTTON
Identifies whether the "Ok" button always enable. |
static String |
LOCATION_FILE
Key for the location File for Location dialog. |
static String |
LOCATION_TEXT
Key for the location text for Location dialog. |
static String |
LOCATION_URL
Key for the location URL for Location dialog. |
static String |
LOGO_ICON
Key for use logo icon. |
static String |
LOGO_TEXT
Key for use logo text. |
static String |
MINIMUM_SIZE
Key for the dialog minimum size. |
static String |
PASSWORD
Key for the login password for Login dialog. |
static String |
PRIVACY_URL
Key for the privacy url. |
static String |
PRODUCT_NAME
Key for product name. |
static String |
RETURN_MAP
Key for the return map. |
static String |
SHOW_ON_STARTUP
Key for the show on startup option for TipOfTheDay dialog. |
static String |
SIDE_IMAGE
Key for use side image. |
static String |
SPLASH_IMAGE
Key for splash image. |
static String |
TIP_BUNDLE_NAME
Key for the tip bundle name for TipOfTheDay dialog. |
static String |
TIP_CONTENT_TYPE
Key for the tip content type for TipOfTheDay dialog. |
static String |
TIP_INDEX
Key for the tip index for TipOfTheDay dialog. |
static String |
TIP_URL
Key for the tip URL for TipOfTheDay dialog. |
static String |
USERNAME
Key for the login user name for Login dialog. |
static String |
WEBSITE_LOGO
|
static String |
WEBSITE_LOGO_BACKGROUND
|
static String |
WEBSITE_LOGO_TEXT
|
static String |
WEBSITE_URL
|
static String |
WINDOW
Key for the window. |
| 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 | |
|---|---|
JCommonPane()
|
|
| Method Summary | |
|---|---|
static JComponent |
createVendorBannerPanel(Map map)
Creates a vendor banner panel. |
AccessibleContext |
getAccessibleContext()
Gets the AccessibleContext associated with this JCommonPane. |
static JCommonPane |
getCommonPane(Component centerPanel)
Returns the JCommonPane for current center panel. |
static Dimension |
getDefaultNormalSize()
Returns the default normal dialog size 400x300. |
static Dimension |
getDefaultSmallSize()
Returns the default small dialog size 320x240. |
static Dimension |
getDefaultTinySize()
Returns the default tiny dialog size 320x180. |
static JDialog |
getDialog(Component centerPanel)
Returns the dialog the current center panel after invoke showDialog
methods. |
Dimension |
getPreferredSize()
|
protected void |
paintComponent(Graphics g)
|
protected String |
paramString()
Returns a string representation of this JCommonPane. |
void |
setBackgroundImage(Image backgroundImage)
Sets the background image. |
void |
setBannerImage(Image img)
Sets the banner image. |
void |
setDescription(String description)
Sets the description. |
void |
setHeader(String header)
Sets the header. |
void |
setLogoIcon(Icon icon)
Sets the logo icon. |
void |
setLogoText(String text)
Sets the logo text. |
void |
setSideImage(Image img)
Sets the side image. |
static Map |
showAboutDialog(Component parent,
Map map)
Pops up a about dialog contains the JCommonPane and
parented to parent with the dialog having a default
title. |
static Map |
showDialog(Component parent,
Map map)
Pops up a common dialog contains the JCommonPane and
parented to parent with the dialog having a default
title. |
static Map |
showFeedbackDialog(Component parent,
Map map)
Pops up a feedback dialog contains the JCommonPane and
parented to parent with the dialog having a default
title. |
static Map |
showLocationDialog(Component parent,
Map map)
Pops up a location dialog contains the JCommonPane and
parented to parent with the dialog having a default
title. |
static Map |
showLoginDialog(Component parent,
Map map)
Pops up a login dialog contains the JCommonPane and
parented to parent with the dialog having a default
title. |
static Map |
showLookAndFeelDialog(Component parent,
Map map)
Pops up a look and feel dialog contains the JCommonPane and
parented to parent with the dialog having a default
title. |
static Map |
showSplashWindow(Component parent,
Map map)
Pops up a splash window contains the JCommonPane and
parented to parent. |
static Map |
showTipOfTheDayDialog(Component parent,
Map map)
Pops up a tip of the day dialog contains the JCommonPane and
parented to parent with the dialog having a default
title. |
void |
updateUI()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String LOGO_ICON
public static final String LOGO_TEXT
public static final String HEADER
public static final String DESCRIPTION
public static final String BANNER_IMAGE
public static final String SIDE_IMAGE
public static final String BACKGROUND_IMAGE
public static final String WINDOW
public static final String DIALOG
public static final String DIALOG_TITLE
public static final String DEFAULT_BUTTON
public static final String CENTER_PANEL
public static final String RETURN_MAP
public static final String PRODUCT_NAME
public static final String COPYRIGHT_NOTE
public static final String SPLASH_IMAGE
public static final String FRAME_ICON_IMAGE
public static final String LAF_NAME
Type: String
public static final String LAF_CLASS
Type: String
Usage: UIManager.setLookAndFeel((String)map.get(JCommonPane.LAF_CLASS));
public static final String SHOW_ON_STARTUP
Type: Boolean
public static final String TIP_URL
Type: URL
public static final String TIP_BUNDLE_NAME
Type: String
public static final String TIP_CONTENT_TYPE
Type: String
Value: text/plain text/html
public static final String TIP_INDEX
Type: Integer
public static final String LOCATION_URL
Type: java.net.URL
public static final String LOCATION_FILE
Type: java.io.File
public static final String LOCATION_TEXT
Type: String
public static final String LOCATION_ALWAYS_ENABLE_OK_BUTTON
Type: Boolean
public static final String USERNAME
Type: String
public static final String PASSWORD
Type: char[]
public static final String FEEDBACK_ACTION_URL
Type: java.net.URL
public static final String FEEDBACK_REALNAME_PARAM_NAME
Type: java.lang.String
public static final String FEEDBACK_EMAIL_PARAM_NAME
Type: java.lang.String
public static final String FEEDBACK_SUBJECT_PARAM_NAME
Type: java.lang.String
public static final String FEEDBACK_SUBJECT_PARAM_VALUE
Type: java.lang.String
public static final String FEEDBACK_CONTENT_PARAM_NAME
Type: java.lang.String
public static final String FEEDBACK_RECIPIENT_PARAM_NAME
Type: java.lang.String
public static final String FEEDBACK_RECIPIENT_PARAM_VALUE
Type: java.lang.String
public static final String FEEDBACK_SUBJECT_SELECTED_INDEX
Type: java.lang.Integer
public static final String PRIVACY_URL
Type: java.net.URL
public static final String MINIMUM_SIZE
Type: java.awt.Dimension
public static final String WEBSITE_URL
public static final String WEBSITE_LOGO
public static final String WEBSITE_LOGO_TEXT
public static final String WEBSITE_LOGO_BACKGROUND
| Constructor Detail |
|---|
public JCommonPane()
| Method Detail |
|---|
public static Dimension getDefaultTinySize()
public static Dimension getDefaultSmallSize()
public static Dimension getDefaultNormalSize()
public static JCommonPane getCommonPane(Component centerPanel)
public static JDialog getDialog(Component centerPanel)
showDialog
methods.
public void updateUI()
updateUI in class JComponent
public static Map showDialog(Component parent,
Map map)
JCommonPane and
parented to parent with the dialog having a default
title.
parent - the parent of the dialogmap - the map to use
public static Map showSplashWindow(Component parent,
Map map)
JCommonPane and
parented to parent.
parent - the parent of the windowmap - the map to use
public static Map showAboutDialog(Component parent,
Map map)
JCommonPane and
parented to parent with the dialog having a default
title.
parent - the parent of the dialogmap - the map to use
public static Map showTipOfTheDayDialog(Component parent,
Map map)
JCommonPane and
parented to parent with the dialog having a default
title.
parent - the parent of the dialogmap - the map to use
public static Map showLoginDialog(Component parent,
Map map)
JCommonPane and
parented to parent with the dialog having a default
title.
parent - the parent of the dialogmap - the map to use
public static Map showLocationDialog(Component parent,
Map map)
JCommonPane and
parented to parent with the dialog having a default
title.
parent - the parent of the dialogmap - the map to use
public static Map showLookAndFeelDialog(Component parent,
Map map)
JCommonPane and
parented to parent with the dialog having a default
title.
parent - the parent of the dialogmap - the map to use
public static Map showFeedbackDialog(Component parent,
Map map)
JCommonPane and
parented to parent with the dialog having a default
title.
parent - the parent of the dialogmap - the map to use
public void setHeader(String header)
public void setDescription(String description)
public void setLogoIcon(Icon icon)
public void setLogoText(String text)
public void setBannerImage(Image img)
public void setSideImage(Image img)
public void setBackgroundImage(Image backgroundImage)
protected void paintComponent(Graphics g)
paintComponent in class JComponentpublic Dimension getPreferredSize()
getPreferredSize in class JComponentprotected String paramString()
null.
paramString in class JComponentpublic static JComponent createVendorBannerPanel(Map map)
public AccessibleContext getAccessibleContext()
getAccessibleContext in interface AccessiblegetAccessibleContext in class JComponent
|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||