1 package jp.ac.aiit.xdf.component.swingx;
4 import java.net.URISyntaxException;
8 import jp.ac.aiit.xdf.application.TagReferences;
9 import jp.ac.aiit.xdf.component.swing.SwingTagReferences;
10 import jp.ac.aiit.xdf.core.exceptions.UnexpectedBehaviorException;
11 import jp.ac.aiit.xdf.core.tags.TagLoader;
12 import jp.ac.aiit.xdf.core.tags.Tagdef.Tag;
14 import org.slf4j.Logger;
15 import org.slf4j.LoggerFactory;
18 * SwingX用のタグセットを提供するクラス
20 * @author Shunichi Takagi
23 public class SwingXTagReferences implements TagReferences {
24 private static final Logger log = LoggerFactory.getLogger(SwingTagReferences.class);
25 private static final String SWINGX_TAGS = "xdf-swingxtags.xml";
28 public Map<String, Tag> getDefinedTags() {
30 URL url = ClassLoader.getSystemResource(SWINGX_TAGS);
32 TagLoader loader = new TagLoader();
33 Map<String, Tag> result = loader.load(new File(url.toURI()));
36 } catch(URISyntaxException e) {
37 log.error("SwingX用タグ定義ファイルがロードできません。", e);
38 throw new UnexpectedBehaviorException("SwingX用タグ定義ファイルがロードできません。", e);
43 public String getReferenceId() {