Update of /var/cvs/contributions/didactor2/src/core/java/nl/didactor/component In directory james.mmbase.org:/tmp/cvs-serv3330/component
Modified Files: MMBaseComponent.java Log Message: some details See also: http://cvs.mmbase.org/viewcvs/contributions/didactor2/src/core/java/nl/didactor/component Index: MMBaseComponent.java =================================================================== RCS file: /var/cvs/contributions/didactor2/src/core/java/nl/didactor/component/MMBaseComponent.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -b -r1.1 -r1.2 --- MMBaseComponent.java 7 Aug 2008 16:33:49 -0000 1.1 +++ MMBaseComponent.java 8 Aug 2008 11:48:18 -0000 1.2 @@ -13,7 +13,7 @@ /** * The didactor component wrapping an mmbase component. * @author Michiel Meeuwissen - * @version $Id: MMBaseComponent.java,v 1.1 2008/08/07 16:33:49 michiel Exp $ + * @version $Id: MMBaseComponent.java,v 1.2 2008/08/08 11:48:18 michiel Exp $ */ public class MMBaseComponent extends nl.didactor.component.Component { @@ -71,11 +71,15 @@ } + protected org.mmbase.framework.Component getComponent() { + return ComponentRepository.getInstance().getComponent(name); + } + @Override public Map<String, String> getScopesMap() { Map<String, String> scopes = new HashMap<String, String>(); - for (Block block : ComponentRepository.getInstance().getComponent(name).getBlocks()) { + for (Block block : getComponent().getBlocks()) { CLASS: for (Block.Type type : block.getClassification()) { while (! type.getParent().getName().equals("didactor")) { @@ -93,5 +97,10 @@ return number; } + public String getTemplateBar() { + Framework fw = Framework.getInstance(); + return (String) fw.getSettingValue(getComponent().getSetting("didactor_templatebar"), fw.createSettingValueParameters()); + } + } _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs