Révision 1591
tmp/org.txm.rcp/src/main/java/org/txm/rcp/swt/widget/LabeledSpinner.java (revision 1591) | ||
---|---|---|
26 | 26 |
|
27 | 27 |
|
28 | 28 |
/** |
29 |
* The spinner |
|
29 |
* The spinner.
|
|
30 | 30 |
*/ |
31 | 31 |
protected Spinner spinner; |
32 | 32 |
|
... | ... | |
34 | 34 |
|
35 | 35 |
/** |
36 | 36 |
* |
37 |
* @param parent |
|
38 |
* @param editor |
|
39 |
* @param label |
|
40 |
* @param spinner |
|
41 |
* @param labelText |
|
42 |
* @param spinnerTooltip |
|
43 |
* @param autoCompute |
|
37 | 44 |
*/ |
38 | 45 |
public LabeledSpinner(Composite parent, TXMEditor editor, Label label, Spinner spinner, String labelText, String spinnerTooltip, boolean autoCompute) { |
39 | 46 |
this.label = label; |
... | ... | |
66 | 73 |
this.spinner.addModifyListener(listener); |
67 | 74 |
} |
68 | 75 |
|
76 |
/** |
|
77 |
* |
|
78 |
* @param parent |
|
79 |
* @param editor |
|
80 |
* @param label |
|
81 |
* @param spinner |
|
82 |
* @param labelText |
|
83 |
*/ |
|
69 | 84 |
public LabeledSpinner(Composite parent, TXMEditor editor, Label label, Spinner spinner, String labelText) { |
70 | 85 |
this(parent, editor, label, spinner, labelText, null, false); |
71 | 86 |
} |
72 | 87 |
|
73 |
|
|
88 |
/** |
|
89 |
* |
|
90 |
* @param parent |
|
91 |
* @param editor |
|
92 |
* @param labelText |
|
93 |
* @param spinnerTooltip |
|
94 |
*/ |
|
74 | 95 |
public LabeledSpinner(Composite parent, TXMEditor editor, String labelText, String spinnerTooltip) { |
75 | 96 |
this(parent, editor, null, null, labelText, spinnerTooltip, false); |
76 | 97 |
} |
77 | 98 |
|
78 |
|
|
99 |
/** |
|
100 |
* |
|
101 |
* @param parent |
|
102 |
* @param editor |
|
103 |
* @param labelText |
|
104 |
*/ |
|
79 | 105 |
public LabeledSpinner(Composite parent, TXMEditor editor, String labelText) { |
80 | 106 |
this(parent, editor, labelText, null); |
81 | 107 |
} |
82 | 108 |
|
83 | 109 |
/** |
110 |
* Gets the label composite. |
|
84 | 111 |
* @return the label |
85 | 112 |
*/ |
86 | 113 |
public Label getLabel() { |
... | ... | |
89 | 116 |
|
90 | 117 |
|
91 | 118 |
/** |
119 |
* Gets the spinner composite. |
|
92 | 120 |
* @return the spinner |
93 | 121 |
*/ |
94 | 122 |
public Spinner getSpinner() { |
Formats disponibles : Unified diff