|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jasig.portal.container.services.information.PortletWindowStateInfo
public class PortletWindowStateInfo
Class for tracking the current and previous WindowState and PortletMode for a PortletWindow. The previous mode and state fields are automaticly updated when the current mode and state are updated. The getters/setters are synchronized since setting the previous and current is not an atomic operation.
Nested Class Summary | |
---|---|
private class |
PortletWindowStateInfo.Lock
Utility class that is used for synchornization. |
Field Summary | |
---|---|
private javax.portlet.PortletMode |
currentMode
|
private javax.portlet.WindowState |
currentState
|
private PortletWindowStateInfo.Lock |
modeLock
|
private javax.portlet.PortletMode |
previousMode
|
private javax.portlet.WindowState |
previousState
|
private PortletWindowStateInfo.Lock |
stateLock
|
Constructor Summary | |
---|---|
PortletWindowStateInfo()
|
Method Summary | |
---|---|
javax.portlet.PortletMode |
getCurrentMode()
|
javax.portlet.WindowState |
getCurrentState()
|
javax.portlet.PortletMode |
getPreviousMode()
|
javax.portlet.WindowState |
getPreviousState()
|
private void |
readObject(java.io.ObjectInputStream in)
Used by the Java serialization system to re-create this object |
void |
setCurrentMode(javax.portlet.PortletMode currentMode)
|
void |
setCurrentState(javax.portlet.WindowState currentState)
|
private javax.portlet.PortletMode |
stringToMode(java.lang.String modeName)
Utility to converting PortletMode string names to objects. |
private javax.portlet.WindowState |
stringToState(java.lang.String stateName)
Utility to converting WindowState string names to objects. |
java.lang.String |
toString()
|
private void |
writeObject(java.io.ObjectOutputStream out)
Used by the Java serialization system to write this object out. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final PortletWindowStateInfo.Lock stateLock
private final PortletWindowStateInfo.Lock modeLock
private transient javax.portlet.WindowState currentState
private transient javax.portlet.WindowState previousState
private transient javax.portlet.PortletMode currentMode
private transient javax.portlet.PortletMode previousMode
Constructor Detail |
---|
public PortletWindowStateInfo()
Method Detail |
---|
public javax.portlet.PortletMode getCurrentMode()
public javax.portlet.WindowState getCurrentState()
public javax.portlet.PortletMode getPreviousMode()
public javax.portlet.WindowState getPreviousState()
public void setCurrentMode(javax.portlet.PortletMode currentMode)
currentMode
- The currentMode to set.public void setCurrentState(javax.portlet.WindowState currentState)
currentState
- The currentState to set.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException
java.io.IOException
Serializable
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
Serializable
private javax.portlet.PortletMode stringToMode(java.lang.String modeName)
modeName
- The name of the mode.
private javax.portlet.WindowState stringToState(java.lang.String stateName)
stateName
- The name of the state.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |