Revision 274 trunk/org.gvsig.app.document.layout2.app/org.gvsig.app.document.layout2.app.mainplugin/src/main/java/org/gvsig/app/project/documents/layout/fframes/gui/numberFormat/CharComboBox.java
CharComboBox.java | ||
---|---|---|
60 | 60 |
} |
61 | 61 |
|
62 | 62 |
/** |
63 |
* Returns the selected char, or null if the NoneItem is
|
|
64 |
* selected.
|
|
63 |
* Returns the selected char or the NoneItem string.
|
|
64 |
* |
|
65 | 65 |
* @see javax.swing.JComboBox#getSelectedItem() |
66 | 66 |
*/ |
67 | 67 |
public String getSelectedItem() { |
... | ... | |
75 | 75 |
} |
76 | 76 |
} |
77 | 77 |
else { |
78 |
return null;
|
|
78 |
return noneItem;
|
|
79 | 79 |
} |
80 | 80 |
} |
81 | 81 |
|
... | ... | |
90 | 90 |
* |
91 | 91 |
* @param text The localized text to show as the NoneItem |
92 | 92 |
*/ |
93 |
public void setNoneItemText(String text) { |
|
93 |
public void setNoneItem(String text) { |
|
94 |
removeItem(noneItem); |
|
94 | 95 |
noneItem = text; |
96 |
addItem(text); |
|
95 | 97 |
} |
96 | 98 |
|
99 |
/** |
|
100 |
* This item represents that no item is selected |
|
101 |
*/ |
|
102 |
public String getNoneItem() { |
|
103 |
return noneItem; |
|
104 |
} |
|
97 | 105 |
|
98 | 106 |
|
99 | 107 |
|
100 | 108 |
|
101 |
|
|
102 | 109 |
|
103 | 110 |
} |
Also available in: Unified diff