com.logicaldoc.web
Class StyleBean

java.lang.Object
  extended by com.logicaldoc.web.StyleBean

public class StyleBean
extends java.lang.Object

The StyleBean class is the backing bean which manages the demonstrations' active theme. There are currently two themes supported by the bean; XP and Royale.

The webpages' style attributes are modified by changing link in the header of the HTML document. The selectInputDate and tree components' styles are changed by changing the location of their image src directories.

Since:
3.0

Field Summary
protected static org.apache.commons.logging.Log log
           
static java.lang.String XP_BRANCH_CONTRACTED_ICON
           
static java.lang.String XP_BRANCH_EXPANDED_ICON
           
static java.lang.String XP_SPACER_ICON
           
 
Constructor Summary
StyleBean()
          Creates a new instance of the StyleBean.
 
Method Summary
 java.lang.String getCssPath()
           
 java.lang.String getCurrentStyle()
          Gets the current style.
 java.lang.String getImageDirectory()
          Gets the image directory to use for the selectinputdate and tree theming.
 java.lang.String getImagePath(java.lang.String imageName)
           
 java.lang.String getImagesPath()
           
 java.lang.String getPath(java.lang.String name)
           
 java.lang.String getProductBugs()
           
 java.lang.String getProductHelp()
           
 java.lang.String getProductName()
           
 java.lang.String getProductRelease()
           
 java.lang.String getProductUrl()
           
 java.lang.String getProductVendor()
           
 java.lang.String getProductYear()
           
 java.lang.String getSkin()
           
 java.lang.String getStyle()
          Gets the html needed to insert a valid css link tag.
 java.util.List<javax.faces.model.SelectItem> getStyleList()
          Gets a list of available theme names that can be applied.
 java.util.TimeZone getTimeZone()
           
 java.lang.String getTimeZoneID()
           
 void reload()
           
 void setCurrentStyle(java.lang.String currentStyle)
          Sets the current style of the application to one of the predetermined themes.
 void setProductBugs(java.lang.String productBugs)
           
 void setProductHelp(java.lang.String productHelp)
           
 void setProductName(java.lang.String productName)
           
 void setProductRelease(java.lang.String productRelease)
           
 void setProductUrl(java.lang.String productUrl)
           
 void setProductYear(java.lang.String productYear)
           
 void setSkin(java.lang.String skin)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log

XP_BRANCH_EXPANDED_ICON

public static final java.lang.String XP_BRANCH_EXPANDED_ICON
See Also:
Constant Field Values

XP_BRANCH_CONTRACTED_ICON

public static final java.lang.String XP_BRANCH_CONTRACTED_ICON
See Also:
Constant Field Values

XP_SPACER_ICON

public static final java.lang.String XP_SPACER_ICON
See Also:
Constant Field Values
Constructor Detail

StyleBean

public StyleBean()
Creates a new instance of the StyleBean.

Method Detail

reload

public void reload()

getProductYear

public java.lang.String getProductYear()

setProductYear

public void setProductYear(java.lang.String productYear)

getProductName

public java.lang.String getProductName()

setProductName

public void setProductName(java.lang.String productName)

getProductUrl

public java.lang.String getProductUrl()

setProductUrl

public void setProductUrl(java.lang.String productUrl)

getProductHelp

public java.lang.String getProductHelp()

setProductHelp

public void setProductHelp(java.lang.String productHelp)

getProductRelease

public java.lang.String getProductRelease()

setProductRelease

public void setProductRelease(java.lang.String productRelease)

getSkin

public java.lang.String getSkin()

setSkin

public void setSkin(java.lang.String skin)

getCurrentStyle

public java.lang.String getCurrentStyle()
Gets the current style.

Returns:
current style

setCurrentStyle

public void setCurrentStyle(java.lang.String currentStyle)
Sets the current style of the application to one of the predetermined themes.

Parameters:
currentStyle -

getStyle

public java.lang.String getStyle()
Gets the html needed to insert a valid css link tag.

Returns:
the tag information needed for a valid css link tag

getImageDirectory

public java.lang.String getImageDirectory()
Gets the image directory to use for the selectinputdate and tree theming.

Returns:
image directory used for theming

getStyleList

public java.util.List<javax.faces.model.SelectItem> getStyleList()
Gets a list of available theme names that can be applied.

Returns:
available theme list

getPath

public java.lang.String getPath(java.lang.String name)

getImagesPath

public java.lang.String getImagesPath()

getCssPath

public java.lang.String getCssPath()

getImagePath

public java.lang.String getImagePath(java.lang.String imageName)

getTimeZoneID

public java.lang.String getTimeZoneID()

getTimeZone

public java.util.TimeZone getTimeZone()

getProductVendor

public java.lang.String getProductVendor()

getProductBugs

public java.lang.String getProductBugs()

setProductBugs

public void setProductBugs(java.lang.String productBugs)


Copyright © 2008-2010 Logical Objects. All Rights Reserved.