968b70916a3da1b83d4c6609fa03bf592aa7dc4f
[jalviewjs.git] / site / j2s / jssun / awt / shell / ShellFolderColumnInfo.js
1 Clazz.declarePackage ("jssun.awt.shell");
2 c$ = Clazz.decorateAsClass (function () {
3 this.title = null;
4 this.width = null;
5 this.visible = false;
6 this.alignment = null;
7 this.sortOrder = null;
8 this.comparator = null;
9 this.compareByColumn = false;
10 Clazz.instantialize (this, arguments);
11 }, jssun.awt.shell, "ShellFolderColumnInfo");
12 Clazz.makeConstructor (c$, 
13 function (title, width, alignment, visible, sortOrder, comparator, compareByColumn) {
14 this.title = title;
15 this.width = width;
16 this.alignment = alignment;
17 this.visible = visible;
18 this.sortOrder = sortOrder;
19 this.comparator = comparator;
20 this.compareByColumn = compareByColumn;
21 }, "~S,Integer,Integer,~B,javax.swing.SortOrder,java.util.Comparator,~B");
22 Clazz.makeConstructor (c$, 
23 function (title, width, alignment, visible, sortOrder, comparator) {
24 this.construct (title, width, alignment, visible, sortOrder, comparator, false);
25 }, "~S,Integer,Integer,~B,javax.swing.SortOrder,java.util.Comparator");
26 Clazz.makeConstructor (c$, 
27 function (title, width, alignment, visible) {
28 this.construct (title, new Integer (width), new Integer (alignment), visible, null, null);
29 }, "~S,~N,~N,~B");
30 Clazz.defineMethod (c$, "getTitle", 
31 function () {
32 return this.title;
33 });
34 Clazz.defineMethod (c$, "setTitle", 
35 function (title) {
36 this.title = title;
37 }, "~S");
38 Clazz.defineMethod (c$, "getWidth", 
39 function () {
40 return this.width;
41 });
42 Clazz.defineMethod (c$, "setWidth", 
43 function (width) {
44 this.width = width;
45 }, "Integer");
46 Clazz.defineMethod (c$, "getAlignment", 
47 function () {
48 return this.alignment;
49 });
50 Clazz.defineMethod (c$, "setAlignment", 
51 function (alignment) {
52 this.alignment = alignment;
53 }, "Integer");
54 Clazz.defineMethod (c$, "isVisible", 
55 function () {
56 return this.visible;
57 });
58 Clazz.defineMethod (c$, "setVisible", 
59 function (visible) {
60 this.visible = visible;
61 }, "~B");
62 Clazz.defineMethod (c$, "getSortOrder", 
63 function () {
64 return this.sortOrder;
65 });
66 Clazz.defineMethod (c$, "setSortOrder", 
67 function (sortOrder) {
68 this.sortOrder = sortOrder;
69 }, "javax.swing.SortOrder");
70 Clazz.defineMethod (c$, "getComparator", 
71 function () {
72 return this.comparator;
73 });
74 Clazz.defineMethod (c$, "setComparator", 
75 function (comparator) {
76 this.comparator = comparator;
77 }, "java.util.Comparator");
78 Clazz.defineMethod (c$, "isCompareByColumn", 
79 function () {
80 return this.compareByColumn;
81 });
82 Clazz.defineMethod (c$, "setCompareByColumn", 
83 function (compareByColumn) {
84 this.compareByColumn = compareByColumn;
85 }, "~B");