com.fatwire.cs.ui.view.backing.helper
Class ScreenState

java.lang.Object
  extended by com.fatwire.cs.ui.view.backing.helper.ScreenState

public class ScreenState
extends java.lang.Object

This is a helper class that stores the current state of the edit screen. An instance of this is maintained in session, all actions that seek to modify the state of the screen, modify this instance in session. The instance is obtained from session and used in rendering the screen. This is made public so that it can be handled from outside of Ainspect


Constructor Summary
ScreenState()
           
 
Method Summary
 java.util.List<java.lang.String> getCompareLocales()
          Returns all those locales that are currently being compared (this will have just 1 entry in the current UI mock ups)
 RenderModeEnum getState()
          Gets the current State
 boolean isCompareMode()
          Returns if the screen is currently in the compare locales mode
 boolean isCreateMode()
          Returns if the screen is currently in the create mode
 boolean isEditMode()
          Returns if the screen is currently in the edit mode
 boolean isInspectMode()
          Returns if the screen is currently in the inspect mode
 void setCompareLocales(java.util.List<java.lang.String> compareLocales)
          Sets all those locales that are currently being compared (this will have just 1 entry in the current UI mock ups)
 void setCompareMode(boolean compareMode)
          Sets screen's compare locales mode
 void setCreateMode()
          Sets screen's the create mode
 void setEditMode()
          Sets screen's the edit mode
 void setInspectMode()
          Sets screen's the inspect mode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScreenState

public ScreenState()
Method Detail

isEditMode

public boolean isEditMode()
Returns if the screen is currently in the edit mode

Returns:
true if the screen is currently in the edit mode

setEditMode

public void setEditMode()
Sets screen's the edit mode

Parameters:
editMode - indicates if the screen is currently in the edit mode

isCompareMode

public boolean isCompareMode()
Returns if the screen is currently in the compare locales mode

Returns:
true if the screen is currently in the compare locales mode

setCompareMode

public void setCompareMode(boolean compareMode)
Sets screen's compare locales mode

Parameters:
compareMode - indicates if the screen is currently in the compare locales mode

getCompareLocales

public java.util.List<java.lang.String> getCompareLocales()
Returns all those locales that are currently being compared (this will have just 1 entry in the current UI mock ups)

Returns:
contains all those locales that are currently being compared

setCompareLocales

public void setCompareLocales(java.util.List<java.lang.String> compareLocales)
Sets all those locales that are currently being compared (this will have just 1 entry in the current UI mock ups)

Parameters:
compareLocales - contains all those locales that are currently being compared

isCreateMode

public boolean isCreateMode()
Returns if the screen is currently in the create mode

Returns:
true if the screen is currently in the create mode

setCreateMode

public void setCreateMode()
Sets screen's the create mode

Parameters:
createMode - indicates if the screen is currently in the create mode

setInspectMode

public void setInspectMode()
Sets screen's the inspect mode


isInspectMode

public boolean isInspectMode()
Returns if the screen is currently in the inspect mode

Returns:
true if the screen is currently in the create mode

getState

public RenderModeEnum getState()
Gets the current State

Returns:


Copyright (c) 2003 - 2011 FatWire Corporation All Rights Reserved.