APIdia Launch Partner
Top Description Fields Constructors Methods
javax.swing.text.html

pack-priv Class OptionComboBoxModel<E>

extends DefaultComboBoxModel<E>
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Annotations
@SuppressWarnings:serial
Imports
javax.swing.*, java.io.Serializable

OptionComboBoxModel extends the capabilities of the DefaultComboBoxModel, to store the Option that is initially marked as selected. This is stored, in order to enable an accurate reset of the ComboBox that represents the SELECT form element when the user requests a clear/reset. Given that a combobox only allow for one item to be selected, the last OPTION that has the attribute set wins.
Author
Sunita Mani

Field Summary

Modifier and TypeField and Description
private Option

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Option
getInitialSelection()

Fetches the Option item that represents that was initially set to a selected state.

public void
setInitialSelection(Option option)

Stores the Option that has been marked its selected attribute set.

Inherited from javax.swing.DefaultComboBoxModel:
addAlladdAlladdElementgetElementAtgetIndexOfgetSelectedItemgetSizeinsertElementAtremoveAllElementsremoveElementremoveElementAtsetSelectedItem

Field Detail

selectedOptionback to summary
private Option selectedOption

Constructor Detail

OptionComboBoxModelback to summary
pack-priv OptionComboBoxModel()

Method Detail

getInitialSelectionback to summary
public Option getInitialSelection()

Fetches the Option item that represents that was initially set to a selected state.

setInitialSelectionback to summary
public void setInitialSelection(Option option)

Stores the Option that has been marked its selected attribute set.