Java 3D Desktop Environment旨在使用Java 3D来创建一个3D桌面环境。功能包括:分布式的应用程序
源代码在线查看: defaultlocaluifactory.java
package org.j3de.ui.impl;
import java.io.Serializable;
import java.net.URL;
import java.net.MalformedURLException;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.Map;
import org.w3c.dom.Node;
import org.w3c.dom.Document;
import org.j3de.exception.ExceptionHandler;
import org.j3de.ui.LocalUIFactory;
import org.j3de.ui.UIFactory;
import org.j3de.ui.impl.DefaultUIFactory;
import org.j3de.util.AbstractComponent;
import org.j3de.util.ConfigurationException;
import org.j3de.util.ConfigHelper;
public class DefaultLocalUIFactory extends AbstractComponent implements LocalUIFactory {
private URL skinURL;
private Map classMap;
public UIFactory getUIFactory() {
return new DefaultUIFactory(skinURL, classMap);
}
public void configure(Node node, Document nodeFactory) throws ConfigurationException {
super.configure(node, nodeFactory);
try {
skinURL = new URL(helper.getPropertyValue("skinURL"));
} catch (MalformedURLException e) {
ExceptionHandler.handleException(e);
throw new ConfigurationException("Unable to read Skin-URL");
}
classMap = helper.getStringMap("UIClasses");
}
}