Package jmri.util.swing
Class JCBHandle<T>
java.lang.Object
jmri.util.swing.JCBHandle<T>
- Type Parameters:
T- the class accepted by the JComboBox
Wrap an object for easier null handling in a JComboBox. ("JCB" refers to
JComboBox)
Define a
JComboBox<JCBHandle<Foo>>, then fill it with a new
JCBHandle("None string") and your new JCBHandle(foo) entries.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
item
-
label
-
-
Constructor Details
-
JCBHandle
Create a handle with a handled object.- Parameters:
t- the class accepted by the JComboBox
-
JCBHandle
Create a handle without a handled object, just a display label.- Parameters:
l- label for handle
-
-
Method Details