com.actuate.activeportal.forms
Class SkinEditorActionForm

java.lang.Object
  extended by org.apache.struts.action.ActionForm
      extended by com.actuate.activeportal.forms.BaseActionForm
          extended by com.actuate.activeportal.forms.SkinEditorActionForm
All Implemented Interfaces:
java.io.Serializable

public class SkinEditorActionForm
extends BaseActionForm

This form is used by the SkinEditor and contains all the information about the various groups defined in the skin.config file. When editting a skin, the skin.config file is loaded and represented by the SkinConfig object. Changes to skin images, colors, and fonts are stored in the "groups" property.

See Also:
Serialized Form

Constructor Summary
SkinEditorActionForm()
           
 
Method Summary
 java.lang.String getCommand()
           
 java.lang.String getDescription()
           
 GroupBean[] getGroups()
          Returns the group beans.
 GroupBean getGroups(int index)
          Returns a group bean by the index.
 java.lang.String getLoadTab()
          Returns the current UI tab to load.
 java.lang.String getName()
          Returns the skin name.
 com.actuate.activeportal.skin.SkinConfig getSkinConfig()
          Returns the skin config object.
 boolean isDoReload()
           
 boolean isHasApplyButton()
           
 boolean isHasColors()
          Test if the color tab should be displayed.
 boolean isHasFonts()
          Test if the font tab should be displayed.
 boolean isHasImages()
          Test if the images tab should be displayed.
 boolean isHasStyles()
          Test if the styles tab should be displayed.
 void reset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
           
 void setApply(java.lang.String ok)
          Sets the command to apply the skin changes
 void setCancel(java.lang.String ok)
          Sets the command to cancel skin changes
 void setCommand(java.lang.String command)
           
 void setDescription(java.lang.String description)
           
 void setDoReload(boolean b)
           
 void setGroups(GroupBean[] groups)
          Sets the group beans.
 void setGroups(int index, GroupBean group)
          Sets a group bean by the index.
 void setHasApplyButton(boolean hasApplyButton)
           
 void setHasColors(boolean hasColors)
          Sets if the color tab should be displayed.
 void setHasFonts(boolean hasFonts)
          Sets if the font tab should be displayed.
 void setHasImages(boolean hasImages)
          Sets if the images tab should be displayed.
 void setHasStyles(boolean hasStyles)
          Sets if the styles tab should be displayed.
 void setLoadTab(java.lang.String loadTab)
          Sets the current UI tab to load.
 void setName(java.lang.String name)
          Sets the skin name.
 void setOk(java.lang.String ok)
          Sets the command to save the skin changes
 void setSkinConfig(com.actuate.activeportal.skin.SkinConfig skinConfig)
          Sets the skin config object accessible in JSP pages.
 
Methods inherited from class com.actuate.activeportal.forms.BaseActionForm
fixUTF8, isPostback, setPostback
 
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SkinEditorActionForm

public SkinEditorActionForm()
Method Detail

getLoadTab

public java.lang.String getLoadTab()
Returns the current UI tab to load.


setLoadTab

public void setLoadTab(java.lang.String loadTab)
Sets the current UI tab to load.


reset

public void reset(org.apache.struts.action.ActionMapping mapping,
                  javax.servlet.http.HttpServletRequest request)
Overrides:
reset in class org.apache.struts.action.ActionForm

getName

public java.lang.String getName()
Returns the skin name.


setName

public void setName(java.lang.String name)
Sets the skin name.


getSkinConfig

public com.actuate.activeportal.skin.SkinConfig getSkinConfig()
Returns the skin config object.


setSkinConfig

public void setSkinConfig(com.actuate.activeportal.skin.SkinConfig skinConfig)
Sets the skin config object accessible in JSP pages.

Parameters:
skinConfig -

isHasColors

public boolean isHasColors()
Test if the color tab should be displayed.


isHasFonts

public boolean isHasFonts()
Test if the font tab should be displayed.


isHasImages

public boolean isHasImages()
Test if the images tab should be displayed.


isHasStyles

public boolean isHasStyles()
Test if the styles tab should be displayed.


getGroups

public GroupBean[] getGroups()
Returns the group beans.


getGroups

public GroupBean getGroups(int index)
Returns a group bean by the index.


setGroups

public void setGroups(int index,
                      GroupBean group)
Sets a group bean by the index.


setGroups

public void setGroups(GroupBean[] groups)
Sets the group beans.


setHasColors

public void setHasColors(boolean hasColors)
Sets if the color tab should be displayed.


setHasFonts

public void setHasFonts(boolean hasFonts)
Sets if the font tab should be displayed.


setHasImages

public void setHasImages(boolean hasImages)
Sets if the images tab should be displayed.


setHasStyles

public void setHasStyles(boolean hasStyles)
Sets if the styles tab should be displayed.


setOk

public void setOk(java.lang.String ok)
Sets the command to save the skin changes


setApply

public void setApply(java.lang.String ok)
Sets the command to apply the skin changes


setCancel

public void setCancel(java.lang.String ok)
Sets the command to cancel skin changes


isHasApplyButton

public boolean isHasApplyButton()
Returns:
boolean

setHasApplyButton

public void setHasApplyButton(boolean hasApplyButton)
Parameters:
hasApplyButton -

getCommand

public java.lang.String getCommand()
Returns:
the command.

getDescription

public java.lang.String getDescription()
Returns:
the description.

setDescription

public void setDescription(java.lang.String description)
Parameters:
description -

setCommand

public void setCommand(java.lang.String command)
Parameters:
command -

isDoReload

public boolean isDoReload()
Returns:
boolean

setDoReload

public void setDoReload(boolean b)
Parameters:
b -