Update of /cvsroot/pfc/pfc-rt/src/java/portal/rt/comp/session
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv11634/src/java/portal/rt/comp/session
Modified Files:
SessionChooser.java
Log Message:
Refactored to support generics.
Added a default serialization id for all serializable classes.
Index: SessionChooser.java
===================================================================
RCS file: /cvsroot/pfc/pfc-rt/src/java/portal/rt/comp/session/SessionChooser.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** SessionChooser.java 13 Sep 2005 11:28:01 -0000 1.1
--- SessionChooser.java 7 Aug 2010 11:06:58 -0000 1.2
***************
*** 45,48 ****
--- 45,50 ----
public class SessionChooser extends PanelDelegator
{
+ private static final long serialVersionUID = 1L;
+
private static final Log LOGGER = LogFactory.getLog(ApplicationDesktop.class);
***************
*** 76,83 ****
new VelocityLayout("portal/comp/session/SessionChooser.vm"));
! DefaultListDataModel sessionListModel = new DefaultListDataModel();
_selectionModel = new DefaultSelectionModel(SelectionMode.SINGLE_SELECTION);
! ListBox sessionList = new ListBox(sessionListModel, _selectionModel);
sessionList.setListItemRenderer(new SessionListRenderer());
--- 78,85 ----
new VelocityLayout("portal/comp/session/SessionChooser.vm"));
! DefaultListDataModel<ISession> sessionListModel = new DefaultListDataModel<ISession>();
_selectionModel = new DefaultSelectionModel(SelectionMode.SINGLE_SELECTION);
! ListBox<ISession> sessionList = new ListBox<ISession>(sessionListModel, _selectionModel);
sessionList.setListItemRenderer(new SessionListRenderer());
***************
*** 94,97 ****
--- 96,101 ----
resumeSessionButton.setCaption("Resume Session");
resumeSessionButton.setAction(new IAction() {
+ private static final long serialVersionUID = 1L;
+
public void doAction()
{
***************
*** 103,106 ****
--- 107,112 ----
createSessionButton.setCaption("Create Session");
createSessionButton.setAction(new IAction() {
+ private static final long serialVersionUID = 1L;
+
public void doAction()
{
***************
*** 136,140 ****
private CachedServiceRef _sessionServiceRef;
! private List _sessions;
private DefaultSelectionModel _selectionModel;
--- 142,146 ----
private CachedServiceRef _sessionServiceRef;
! private List<ISession> _sessions;
private DefaultSelectionModel _selectionModel;
|