|
From: Bavo De R. <ba...@us...> - 2010-08-07 21:30:44
|
Update of /cvsroot/pfc/pfc-demo/src/java/portal/demo/listbox In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv15113/src/java/portal/demo/listbox Modified Files: ListBoxDemoPanel.java ListBoxDemoInfo.java Log Message: Refactored to support generics. Added a default serialization id for all serializable classes. Index: ListBoxDemoInfo.java =================================================================== RCS file: /cvsroot/pfc/pfc-demo/src/java/portal/demo/listbox/ListBoxDemoInfo.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ListBoxDemoInfo.java 26 Jan 2005 20:15:04 -0000 1.3 --- ListBoxDemoInfo.java 7 Aug 2010 21:30:35 -0000 1.4 *************** *** 6,9 **** --- 6,11 ---- public class ListBoxDemoInfo implements DemoEntryInfo { + private static final long serialVersionUID = 1L; + public String getShortName() { Index: ListBoxDemoPanel.java =================================================================== RCS file: /cvsroot/pfc/pfc-demo/src/java/portal/demo/listbox/ListBoxDemoPanel.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** ListBoxDemoPanel.java 13 Sep 2005 11:35:26 -0000 1.7 --- ListBoxDemoPanel.java 7 Aug 2010 21:30:35 -0000 1.8 *************** *** 12,15 **** --- 12,17 ---- public class ListBoxDemoPanel extends Panel implements DemoEntry { + private static final long serialVersionUID = 1L; + public ListBoxDemoPanel() { *************** *** 26,30 **** } ! public Component getComponent() { return this; --- 28,32 ---- } ! public Component<?> getComponent() { return this; *************** *** 40,44 **** private void createListModels() { ! _doubleListModel = new DefaultListDataModel(); _doubleListModel.addElement("Jan"); _doubleListModel.addElement("Piet"); --- 42,46 ---- private void createListModels() { ! _doubleListModel = new DefaultListDataModel<String>(); _doubleListModel.addElement("Jan"); _doubleListModel.addElement("Piet"); *************** *** 59,70 **** private void createDoubleListBox() { ! _doubleList = new DoubleListBox(_doubleListModel, _doubleSelection); add(_doubleList, "DoubleListTest"); } ! private DefaultListDataModel _doubleListModel; private DefaultSelectionModel _doubleSelection; ! private DoubleListBox _doubleList; } \ No newline at end of file --- 61,72 ---- private void createDoubleListBox() { ! _doubleList = new DoubleListBox<String>(_doubleListModel, _doubleSelection); add(_doubleList, "DoubleListTest"); } ! private DefaultListDataModel<String> _doubleListModel; private DefaultSelectionModel _doubleSelection; ! private DoubleListBox<String> _doubleList; } \ No newline at end of file |