jfreerails.client.view
Class DisplayModesComboBoxModels
java.lang.Object
jfreerails.client.view.DisplayModesComboBoxModels
- All Implemented Interfaces:
- javax.swing.ComboBoxModel, javax.swing.ListModel
public class DisplayModesComboBoxModels
- extends java.lang.Object
- implements javax.swing.ComboBoxModel
ComboBoxModel that provides access to the screen resolutions and bit depths
available.
- Author:
- Luke Lindsay
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
defaultConfiguration
private final java.awt.GraphicsConfiguration defaultConfiguration
modes
private final java.util.ArrayList<MyDisplayMode> modes
selection
private MyDisplayMode selection
DisplayModesComboBoxModels
public DisplayModesComboBoxModels()
removeDisplayModesBelow
public void removeDisplayModesBelow(int width,
int height,
int bitdepth)
- Permanently removes from the list in this object any display modes with
width, height, or bitdepth below the specified values.
getSelectedItem
public java.lang.Object getSelectedItem()
- Specified by:
getSelectedItem
in interface javax.swing.ComboBoxModel
setSelectedItem
public void setSelectedItem(java.lang.Object anItem)
- Specified by:
setSelectedItem
in interface javax.swing.ComboBoxModel
addListDataListener
public void addListDataListener(javax.swing.event.ListDataListener l)
- Specified by:
addListDataListener
in interface javax.swing.ListModel
getElementAt
public java.lang.Object getElementAt(int index)
- Specified by:
getElementAt
in interface javax.swing.ListModel
getSize
public int getSize()
- Specified by:
getSize
in interface javax.swing.ListModel
removeListDataListener
public void removeListDataListener(javax.swing.event.ListDataListener l)
- Specified by:
removeListDataListener
in interface javax.swing.ListModel