|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.beasys.commerce.portal.jspbeans.PortalAppearanceBean
The PortalAppearanceBean is used to hold property choices for portal appearance. Among these choices are portlet titlebar color, portlet title font color, portlet content background color, portal background color, portlet border appearance, and portlet banner color.
Inner Class Summary | |
class |
PortalAppearanceBean.ColorScheme
Color scheme holds a color scheme name, a titlebar color, a banner color, and a portlet content background color. |
Field Summary | |
static java.lang.String |
BANNER_BG_COLOR
Property name for portlet banner background color. |
static java.lang.String |
BLACK
Black color representation. |
static java.lang.String |
BODY_BG_COLOR
Property name for portal background color. |
static java.lang.String |
BODY_BG_COLOR_TEXT
Property name for custom-entered portal background color. |
static java.lang.String |
COLOR_WARNING
A color warning which informs the user that a color outside the standard set of 216 internet colors was chosen for a particular preference. |
static java.lang.String |
CONTENT_BG_COLOR
Property name for portlet content background color. |
static java.lang.String |
CUSTOM
Generally-used 'custom' property name. |
static java.lang.String |
GREY
Grey color representation. |
static java.lang.String |
SCHEME
Property name for portlet color scheme. |
static java.lang.String |
SHOW_BORDERS
Property name for show borders property. |
static java.lang.String |
TITLEBAR_BG_COLOR
Property name for portlet titlebar background color. |
static java.lang.String |
TITLEBAR_FONT_COLOR
Property name for portlet titlebar font color. |
static java.lang.String |
TITLEBAR_FONT_COLOR_TEXT
Property name for custom-entered portlet titlebar font color. |
static java.lang.String |
WARNING
Standard warning text |
static java.lang.String |
WHITE
White color representation. |
Constructor Summary | |
PortalAppearanceBean()
Default constructor |
Method Summary | |
java.lang.String |
getBannerBGColor()
Retrieves the current portlet banner color, as dictated by the JSP page using this bean. |
java.lang.String |
getBodyBGColor()
Retrieves the current portal background color, as dictated by the JSP page using this bean. |
java.lang.String |
getBodyBGColorText()
Retrieves the value of the custom-entered portal background color, dictated by the JSP page using this bean. |
PortalAppearanceBean.ColorScheme |
getColorScheme(java.lang.String schemeName)
Retrieves the appropriate ColorScheme object based on the
provided scheme name. |
PortalAppearanceBean.ColorScheme[] |
getColorSchemes()
Retrieves all color schemes from which a non-custom portlet scheme can be selected. |
java.lang.String |
getDefaultBannerColor()
Retrieves the default portlet banner color. |
java.lang.String |
getDefaultPortalBGColor()
Retrieves the default portal background color. |
java.lang.String |
getDefaultPortletBGColor()
Retrieves the default portlet background color. |
java.lang.String |
getDefaultShowBorders()
Retrieves the default portal setting regarding whether portlet borders are displayed at portal run-time. |
java.lang.String |
getDefaultTitleBarColor()
Retrieves the default titlebar color. |
java.lang.String |
getDefaultTitleFontColor()
Retrieves the default title font color. |
java.lang.String |
getPortletBGColor()
Retrieves the current portlet background color, as dictated by the JSP page using this bean. |
java.lang.String |
getSchemaProperty(PropertyBean aPropertyBean,
java.lang.String aPropertyName)
|
java.lang.String |
getScheme()
Retrieves the current portlet color scheme name, as dictated by the JSP page using this bean. |
java.lang.String |
getTitlebarColor()
Retrieves the current titlebar color, as dictated by the JSP page using this bean. |
java.lang.String |
getTitleFontColor()
Retrieves the current title font color, as dictated by the JSP page using this bean. |
java.lang.String |
getTitleFontColorText()
Retrieves the value of the custom-entered title font color, dictated by the JSP page using this bean. |
protected void |
loadColorSchemes()
Loads available portlet color schemes. |
void |
setBannerBGColor(java.lang.String bannerBGColor)
Sets the portlet banner color. |
void |
setBodyBGColor(java.lang.String bodyBGColor)
Sets the portal background color. |
void |
setBodyBGColorText(java.lang.String bodyBGColorText)
Sets the custom-entered title portal background color. |
void |
setPortletBGColor(java.lang.String portletBGColor)
Sets the portlet background color. |
java.lang.String |
setSchemaProperty(PropertyBean aPropertyBean,
java.lang.String aPropertyName,
java.lang.String theValue)
|
void |
setScheme(java.lang.String scheme)
Sets the portlet color scheme name. |
void |
setTitlebarColor(java.lang.String titlebarColor)
Sets the titlebar color. |
void |
setTitleFontColor(java.lang.String titleFontColor)
Sets the title font color. |
void |
setTitleFontColorText(java.lang.String titleFontColorText)
Sets the custom-entered title font color value. |
java.lang.String |
validateBodyColor()
Checks the entered portlet background color for errors. |
java.lang.String |
validateColorScheme()
Checks the entered portlet color scheme for errors. |
java.lang.String |
validateTitleFontColor()
Checks the entered title font color for errors. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String GREY
public static final java.lang.String BLACK
public static final java.lang.String WHITE
public static final java.lang.String SCHEME
public static final java.lang.String TITLEBAR_BG_COLOR
public static final java.lang.String BANNER_BG_COLOR
public static final java.lang.String CONTENT_BG_COLOR
public static final java.lang.String BODY_BG_COLOR
public static final java.lang.String BODY_BG_COLOR_TEXT
public static final java.lang.String TITLEBAR_FONT_COLOR
public static final java.lang.String TITLEBAR_FONT_COLOR_TEXT
public static final java.lang.String SHOW_BORDERS
public static final java.lang.String CUSTOM
public static final java.lang.String WARNING
public static final java.lang.String COLOR_WARNING
Constructor Detail |
public PortalAppearanceBean()
Method Detail |
public java.lang.String getDefaultShowBorders()
String
"true
" or "false
"public java.lang.String getDefaultPortletBGColor()
String
the default portlet background color.public java.lang.String getDefaultPortalBGColor()
String
the default portal background color.public java.lang.String getDefaultTitleFontColor()
String
the default title font color.public java.lang.String getDefaultTitleBarColor()
String
the default titlebar color.public java.lang.String getDefaultBannerColor()
String
the default portlet banner color.public java.lang.String getTitleFontColor()
String
the current title font colorpublic void setTitleFontColor(java.lang.String titleFontColor)
titleFontColor
- the new title font colorpublic java.lang.String getTitleFontColorText()
String
the custom-entered title font colorpublic void setTitleFontColorText(java.lang.String titleFontColorText)
titleFontColorText
- the new custom-entered title font colorpublic java.lang.String getTitlebarColor()
String
the current titlebar colorpublic void setTitlebarColor(java.lang.String titlebarColor)
titlebarColor
- the new titlebar colorpublic java.lang.String getScheme()
String
the current portlet color scheme namepublic void setScheme(java.lang.String scheme)
scheme
- the new portlet color scheme namepublic java.lang.String getBannerBGColor()
String
the current portlet banner colorpublic void setBannerBGColor(java.lang.String bannerBGColor)
bannerBGColor
- the new portlet banner colorpublic java.lang.String getPortletBGColor()
String
the current portlet background colorpublic void setPortletBGColor(java.lang.String portletBGColor)
portletBGColor
- the new portlet background colorpublic java.lang.String getBodyBGColor()
String
the current portal backgroun colorpublic void setBodyBGColor(java.lang.String bodyBGColor)
bodyBGColor
- the new portal background colorpublic java.lang.String getBodyBGColorText()
String
the custom-entered title font colorpublic void setBodyBGColorText(java.lang.String bodyBGColorText)
bodyBGColorText
- the new custom-entered portal background colorpublic java.lang.String validateTitleFontColor()
String
error message ; null
if no error.public java.lang.String validateColorScheme()
String
error message ; null
if no error.public java.lang.String validateBodyColor()
String
error message ; null
if no error.public PortalAppearanceBean.ColorScheme getColorScheme(java.lang.String schemeName)
ColorScheme
object based on the
provided scheme name.ColorScheme
the scheme associated with the provided name.public PortalAppearanceBean.ColorScheme[] getColorSchemes()
ColorScheme[]
all standardly available portlet color
schemes.protected void loadColorSchemes()
public java.lang.String getSchemaProperty(PropertyBean aPropertyBean, java.lang.String aPropertyName)
public java.lang.String setSchemaProperty(PropertyBean aPropertyBean, java.lang.String aPropertyName, java.lang.String theValue)
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |