MCPcopy Create free account
hub / github.com/PCGen/pcgen / TabInfo

Class TabInfo

code/src/java/pcgen/cdom/content/TabInfo.java:31–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29import pcgen.util.enumeration.Tab;
30
31public class TabInfo implements Loadable
32{
33
34 private URI sourceURI;
35 private String tabName = "";
36 private Tab tabID;
37 private boolean isVisible = true;
38 private File helpFile;
39 private Set<Integer> hiddenColumns;
40 private String helpContext;
41
42 @Override
43 public URI getSourceURI()
44 {
45 return sourceURI;
46 }
47
48 @Override
49 public void setSourceURI(URI source)
50 {
51 sourceURI = source;
52 }
53
54 public void setTab(Tab tab)
55 {
56 tabID = tab;
57 }
58
59 @Override
60 public void setName(String name)
61 {
62 if (!Tab.exists(name))
63 {
64 throw new IllegalArgumentException(name + " is not a valid Tab name");
65 }
66 tabID = Tab.getTab(name);
67 }
68
69 @Override
70 public String getDisplayName()
71 {
72 return tabID.toString();
73 }
74
75 @Override
76 public String getKeyName()
77 {
78 return getDisplayName();
79 }
80
81 public void setTabName(String name)
82 {
83 tabName = name;
84 }
85
86 public String getTabName()
87 {
88 return tabName;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected