CVS: Tapestry/examples/Tutorial/src/tutorial/workbench/palette PaletteResults.java,NONE,1.1.2.1 Palette.java,1.11,1.11.2.1 Results.page,1.5.2.1,NONE Results.html,1.2.4.1,NONE Palette.page,1.4.2.1,NONE Palette.html,1.3.4.1,NONE Results.java,1.5,NONE

Howard Lewis Ship <[email protected]>
Newsgroups gmane.comp.java.tapestry.cvs
Message-ID <[email protected]>
Update of /cvsroot/tapestry/Tapestry/examples/Tutorial/src/tutorial/workbench/palette
In directory sc8-pr-cvs1:/tmp/cvs-serv10583/examples/Tutorial/src/tutorial/workbench/palette

Modified Files:
      Tag: hship-2-3
	Palette.java 
Added Files:
      Tag: hship-2-3
	PaletteResults.java 
Removed Files:
      Tag: hship-2-3
	Results.page Results.html Palette.page Palette.html 
	Results.java 
Log Message:
Reorganize the tutorials to use new 2.4 features.

--- NEW FILE: PaletteResults.java ---
package tutorial.workbench.palette;

import java.util.List;

import net.sf.tapestry.html.BasePage;

/**
 *
 *  @author Howard Lewis Ship
 *  @version $Id: PaletteResults.java,v 1.1.2.1 2003/01/02 03:15:27 hship Exp $
 *  @since 1.0.7
 *
 **/

public class PaletteResults extends BasePage
{
    private List selectedColors;

    public void initialize()
    {
        selectedColors = null;
    }

    public void setSelectedColors(List value)
    {
        selectedColors = value;
    }

    public List getSelectedColors()
    {
        return selectedColors;
    }

}
Index: Palette.java
===================================================================
RCS file: /cvsroot/tapestry/Tapestry/examples/Tutorial/src/tutorial/workbench/palette/Palette.java,v
retrieving revision 1.11
retrieving revision 1.11.2.1
diff -C2 -d -r1.11 -r1.11.2.1
*** Palette.java	27 Nov 2002 17:58:54 -0000	1.11
--- Palette.java	2 Jan 2003 03:15:27 -0000	1.11.2.1
***************
*** 28,37 ****
      private IPropertySelectionModel _sortModel;
  
!     public void detach()
      {
          _sort = SortMode.USER;
          _selectedColors = null;
- 
-         super.detach();
      }
  
--- 28,35 ----
      private IPropertySelectionModel _sortModel;
  
!     public void initialize()
      {
          _sort = SortMode.USER;
          _selectedColors = null;
      }
  
***************
*** 54,58 ****
          // the namespace id is part of the name.
  
!         Results results = (Results) cycle.getPage(getNamespace().constructQualifiedName("palette.Results"));
  
          results.setSelectedColors(_selectedColors);
--- 52,56 ----
          // the namespace id is part of the name.
  
!         PaletteResults results = (PaletteResults) cycle.getPage("PaletteResults");
  
          results.setSelectedColors(_selectedColors);

--- Results.page DELETED ---

--- Results.html DELETED ---

--- Palette.page DELETED ---

--- Palette.html DELETED ---

--- Results.java DELETED ---



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.