|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.fatwire.cs.ui.view.backing.helper.ScreenState
public class ScreenState
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 |
---|
public ScreenState()
Method Detail |
---|
public boolean isEditMode()
public void setEditMode()
editMode
- indicates if the screen is currently in the edit modepublic boolean isCompareMode()
public void setCompareMode(boolean compareMode)
compareMode
- indicates if the screen is currently in the compare
locales modepublic java.util.List<java.lang.String> getCompareLocales()
public void setCompareLocales(java.util.List<java.lang.String> compareLocales)
compareLocales
- contains all those locales that are currently being
comparedpublic boolean isCreateMode()
public void setCreateMode()
createMode
- indicates if the screen is currently in the create modepublic void setInspectMode()
public boolean isInspectMode()
public RenderModeEnum getState()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |