From 7991eb888f6ff1d2d2ef38daa3e3ffa2973300df Mon Sep 17 00:00:00 2001 From: hns Date: Wed, 22 Jun 2005 09:40:45 +0000 Subject: [PATCH] Add proxy method for Application.getSkin(String protoname, String skinname, Object[] skinpath) --- src/helma/framework/core/ApplicationBean.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/helma/framework/core/ApplicationBean.java b/src/helma/framework/core/ApplicationBean.java index 6f2d7a80..7c79a979 100644 --- a/src/helma/framework/core/ApplicationBean.java +++ b/src/helma/framework/core/ApplicationBean.java @@ -430,6 +430,18 @@ public class ApplicationBean implements Serializable { // add one to the number to compensate for the internal scheduler. app.setNumberOfEvaluators(n + 1); } + + /** + * Return a skin for a given object. The skin is found by determining the prototype + * to use for the object, then looking up the skin for the prototype. + */ + public Skin getSkin(String protoname, String skinname, Object[] skinpath) { + try { + return app.getSkin(protoname, skinname, skinpath); + } catch (Exception x) { + return null; + } + } /** *