Changed signature of getSkin to take a prototype name instead of a path element parameter.

This commit is contained in:
hns 2003-06-25 15:11:02 +00:00
parent ffc8956b8a
commit 89e9e1d32f

View file

@ -761,8 +761,8 @@ public final class Application implements IPathElement, Runnable {
* 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(Object object, String skinname, Object[] skinpath) {
Prototype proto = getPrototype(object);
public Skin getSkin(String protoname, String skinname, Object[] skinpath) {
Prototype proto = getPrototypeByName(protoname);
if (proto == null) {
return null;