01: package org.netbeans.modules.vmd.api.screen.resource;
02:
03: import java.awt.*;
04: import java.util.Collection;
05:
06: /**
07: * Descriptor for the category which this resource belongs to.
08: * @author breh
09: *
10: */
11: public final class ScreenResourceCategoryDescriptor {
12:
13: private Image icon;
14: private String title;
15: private String tooltip;
16: private ScreenResourceOrderingController[] ordering;
17: private int order;
18:
19: public ScreenResourceCategoryDescriptor(String title, Image icon,
20: String tooltip, int order,
21: ScreenResourceOrderingController... ordering) {
22: if (ordering == null)
23: throw new NullPointerException("Null value ordering"); //NOI18N
24: this .ordering = ordering;
25: this .title = title;
26: this .icon = icon;
27: this .tooltip = tooltip;
28: this .order = order;
29: }
30:
31: /**
32: * @return the icon
33: */
34: public Image getIcon() {
35: return icon;
36: }
37:
38: /**
39: * @return the title
40: */
41: public String getTitle() {
42: return title;
43: }
44:
45: /**
46: * @return the toolTip
47: */
48: public String getToolTip() {
49: return tooltip;
50: }
51:
52: public int getOrder() {
53: return order;
54: }
55:
56: public ScreenResourceOrderingController[] getOrderingControllers() {
57: return ordering;
58: }
59:
60: }
|