|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.swing.models.TransformingComboBoxModel
public class TransformingComboBoxModel
TransformingComboBoxModel is a model that is used for instances of javax.swing.JComboBox that can use transforms derived from com.sas.util.transforms.TransformInterface.
The TransformingListModel creates a new default model which is set to be a javax.swing.DefaultComboBoxModel to be used as the model for the comboBox. No default transform is set so no transformation will take place on the items in the list unless a transform is provided.
Field Summary | |
---|---|
protected java.lang.Object |
selectedItem
Currently selected item in the comboBox |
Fields inherited from class com.sas.swing.models.TransformingListModel |
---|
model, propertyChangeSupport, transform |
Constructor Summary | |
---|---|
TransformingComboBoxModel()
Default constructor that sets a new default model |
|
TransformingComboBoxModel(javax.swing.ComboBoxModel model)
Constructor that sets the model of the comboBox |
Method Summary | |
---|---|
java.lang.Object |
getSelectedItem()
Return the selected item |
protected javax.swing.ListModel |
newDefaultModel()
Create a default model for the comboBox |
void |
setSelectedItem(java.lang.Object newSelectedItem)
Set the selectedItem |
Methods inherited from class com.sas.swing.models.TransformingListModel |
---|
addPropertyChangeListener, contentsChanged, firePropertyChange, firePropertyChange, getElementAt, getModel, getSize, getTransform, intervalAdded, intervalRemoved, removePropertyChangeListener, setModel, setTransform |
Field Detail |
---|
protected java.lang.Object selectedItem
Constructor Detail |
---|
public TransformingComboBoxModel()
public TransformingComboBoxModel(javax.swing.ComboBoxModel model)
model
- model to be setMethod Detail |
---|
protected javax.swing.ListModel newDefaultModel()
newDefaultModel
in class TransformingListModel
public java.lang.Object getSelectedItem()
getSelectedItem
in interface javax.swing.ComboBoxModel
public void setSelectedItem(java.lang.Object newSelectedItem)
setSelectedItem
in interface javax.swing.ComboBoxModel
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |