|
From: Michael K. <ko...@us...> - 2006-09-14 12:21:29
|
Update of /cvsroot/cobricks/cobricks2/src/org/cobricks/category In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv21101/category Modified Files: Category.java CategoryPresenter.java Log Message: Index: CategoryPresenter.java =================================================================== RCS file: /cvsroot/cobricks/cobricks2/src/org/cobricks/category/CategoryPresenter.java,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- CategoryPresenter.java 13 Sep 2006 12:51:23 -0000 1.20 +++ CategoryPresenter.java 14 Sep 2006 12:21:26 -0000 1.21 @@ -278,6 +278,16 @@ return categoryManager.getCategory(catid.intValue()); } + public Category getCategory(int catid) + { + return categoryManager.getCategory(catid); + } + + public Category getCategory(Category category) + { + return category; + } + /** * This auxiliary method is used to get the category object with the given ID. Index: Category.java =================================================================== RCS file: /cvsroot/cobricks/cobricks2/src/org/cobricks/category/Category.java,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- Category.java 27 Jun 2006 10:13:12 -0000 1.16 +++ Category.java 14 Sep 2006 12:21:26 -0000 1.17 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004-2005 Cobricks Group. All rights reserved. + * Copyright (c) 2004-2006 Cobricks Group. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted under the terms of the Cobricks Software @@ -113,7 +113,7 @@ o = getAttribute("title_es"); if (o!=null) return o.toString(); - return null; + return "no title"; } |