@deafwave/osrs-botmaker-types 0.5.17 → 0.5.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,21 +1,32 @@
|
|
|
1
|
+
/// <reference path="./JComponent.d.ts" />
|
|
2
|
+
/// <reference path="../awt/Dimension.d.ts" />
|
|
3
|
+
|
|
1
4
|
declare namespace javax.swing {
|
|
2
|
-
export class JComboBox {
|
|
3
|
-
constructor(items
|
|
5
|
+
export class JComboBox extends javax.swing.JComponent {
|
|
6
|
+
constructor(items?: string[]);
|
|
7
|
+
|
|
8
|
+
// Selection methods
|
|
4
9
|
setSelectedItem(item: string): void;
|
|
5
10
|
getSelectedItem(): string;
|
|
6
11
|
setSelectedIndex(index: number): void;
|
|
7
12
|
getSelectedIndex(): number;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
addActionListener(listener: (event: java.awt.event.ActionListener) => void): void;
|
|
11
|
-
removeActionListener(listener: (event: java.awt.event.ActionListener) => void): void;
|
|
12
|
-
addFocusListener(listener: (event: java.awt.event.FocusListener) => void): void;
|
|
13
|
-
removeFocusListener(listener: (event: java.awt.event.FocusListener) => void): void;
|
|
13
|
+
|
|
14
|
+
// Item management
|
|
14
15
|
addItem(item: string): void;
|
|
15
16
|
removeItem(item: string): void;
|
|
16
17
|
removeAllItems(): void;
|
|
17
18
|
getItemCount(): number;
|
|
18
19
|
getItemAt(index: number): string;
|
|
20
|
+
|
|
21
|
+
// Event listeners
|
|
22
|
+
addActionListener(listener: (event: java.awt.event.ActionListener) => void): void;
|
|
23
|
+
removeActionListener(listener: (event: java.awt.event.ActionListener) => void): void;
|
|
24
|
+
addFocusListener(listener: (event: java.awt.event.FocusListener) => void): void;
|
|
25
|
+
removeFocusListener(listener: (event: java.awt.event.FocusListener) => void): void;
|
|
26
|
+
|
|
27
|
+
// Inherited from JComponent but commonly used
|
|
28
|
+
setEnabled(enabled: boolean): void;
|
|
29
|
+
isEnabled(): boolean;
|
|
19
30
|
setPreferredSize(size: java.awt.Dimension): void;
|
|
20
31
|
setMinimumSize(dimension: java.awt.Dimension): void;
|
|
21
32
|
setMaximumSize(dimension: java.awt.Dimension): void;
|
|
@@ -1,19 +1,85 @@
|
|
|
1
|
+
/// <reference path="../awt/Component.d.ts" />
|
|
2
|
+
/// <reference path="../awt/Container.d.ts" />
|
|
3
|
+
/// <reference path="../awt/Dimension.d.ts" />
|
|
4
|
+
/// <reference path="../awt/Font.d.ts" />
|
|
5
|
+
/// <reference path="../awt/Color.d.ts" />
|
|
6
|
+
/// <reference path="../awt/Graphics2D.d.ts" />
|
|
7
|
+
/// <reference path="../awt/Insets.d.ts" />
|
|
8
|
+
|
|
1
9
|
declare namespace javax.swing {
|
|
2
|
-
export abstract class JComponent {
|
|
10
|
+
export abstract class JComponent extends java.awt.Container {
|
|
11
|
+
// Alignment constants
|
|
3
12
|
static LEFT_ALIGNMENT: number;
|
|
4
13
|
static CENTER_ALIGNMENT: number;
|
|
5
14
|
static RIGHT_ALIGNMENT: number;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
15
|
+
static TOP_ALIGNMENT: number;
|
|
16
|
+
static BOTTOM_ALIGNMENT: number;
|
|
17
|
+
|
|
18
|
+
// Size and layout methods
|
|
19
|
+
setPreferredSize(dimension: java.awt.Dimension): void;
|
|
20
|
+
getPreferredSize(): java.awt.Dimension;
|
|
21
|
+
setMinimumSize(dimension: java.awt.Dimension): void;
|
|
22
|
+
getMinimumSize(): java.awt.Dimension;
|
|
23
|
+
setMaximumSize(dimension: java.awt.Dimension): void;
|
|
24
|
+
getMaximumSize(): java.awt.Dimension;
|
|
25
|
+
setSize(width: number, height: number): void;
|
|
26
|
+
setSize(dimension: java.awt.Dimension): void;
|
|
27
|
+
getSize(): java.awt.Dimension;
|
|
28
|
+
getWidth(): number;
|
|
29
|
+
getHeight(): number;
|
|
30
|
+
|
|
31
|
+
// Alignment methods
|
|
32
|
+
setAlignmentX(alignment: number): void;
|
|
33
|
+
getAlignmentX(): number;
|
|
34
|
+
setAlignmentY(alignment: number): void;
|
|
35
|
+
getAlignmentY(): number;
|
|
36
|
+
|
|
37
|
+
// Appearance methods
|
|
38
|
+
setFont(font: java.awt.Font): void;
|
|
39
|
+
getFont(): java.awt.Font;
|
|
40
|
+
setForeground(color: java.awt.Color): void;
|
|
41
|
+
getForeground(): java.awt.Color;
|
|
42
|
+
setBackground(color: java.awt.Color): void;
|
|
43
|
+
getBackground(): java.awt.Color;
|
|
44
|
+
setOpaque(isOpaque: boolean): void;
|
|
45
|
+
isOpaque(): boolean;
|
|
46
|
+
|
|
47
|
+
// Border and insets
|
|
48
|
+
setBorder(border: any): void;
|
|
49
|
+
getBorder(): any;
|
|
50
|
+
getInsets(): java.awt.Insets;
|
|
51
|
+
|
|
52
|
+
// Painting methods
|
|
53
|
+
paint(g: java.awt.Graphics2D): void;
|
|
54
|
+
paintComponent(g: java.awt.Graphics2D): void;
|
|
55
|
+
paintBorder(g: java.awt.Graphics2D): void;
|
|
56
|
+
paintChildren(g: java.awt.Graphics2D): void;
|
|
57
|
+
repaint(): void;
|
|
58
|
+
repaint(x: number, y: number, width: number, height: number): void;
|
|
59
|
+
|
|
60
|
+
// Visibility and state
|
|
61
|
+
setVisible(visible: boolean): void;
|
|
62
|
+
isVisible(): boolean;
|
|
63
|
+
setEnabled(enabled: boolean): void;
|
|
64
|
+
isEnabled(): boolean;
|
|
65
|
+
|
|
66
|
+
// Tooltip
|
|
67
|
+
setToolTipText(text: string): void;
|
|
68
|
+
getToolTipText(): string;
|
|
69
|
+
|
|
70
|
+
// Layout validation
|
|
71
|
+
revalidate(): void;
|
|
72
|
+
validate(): void;
|
|
73
|
+
invalidate(): void;
|
|
10
74
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
75
|
+
// Focus methods
|
|
76
|
+
requestFocus(): void;
|
|
77
|
+
requestFocusInWindow(): boolean;
|
|
78
|
+
isFocusOwner(): boolean;
|
|
15
79
|
|
|
16
|
-
|
|
80
|
+
// Client properties
|
|
81
|
+
putClientProperty(key: any, value: any): void;
|
|
82
|
+
getClientProperty(key: any): any;
|
|
17
83
|
}
|
|
18
84
|
}
|
|
19
85
|
|