com.partnersoft.gui
Class ComboSelectionControl

java.lang.Object
  extended by com.partnersoft.gui.ComboSelectionControl
All Implemented Interfaces:
GUIControl

public class ComboSelectionControl
extends java.lang.Object
implements GUIControl

A wrapper for JComboBox.

Author:
Paul Reavis Copyright 2004 Partner Software, Inc.

Constructor Summary
ComboSelectionControl()
           
ComboSelectionControl(javax.swing.ComboBoxModel model)
           
 
Method Summary
 void doAction()
          Subclasses should override this to take action whenever an action should occur (generally when the user hits return in the field).
 javax.swing.JComponent getGUI()
           
 javax.swing.JComboBox getJComboBox()
           
 int getSelectedIndex()
           
 java.lang.Object getSelectedItem()
           
 void selectionModified()
          Subclasses should override this to take action whenever the selection set changes.
 void setModel(javax.swing.ComboBoxModel newModel)
           
 void setOptions(java.util.ArrayList newOptions)
           
 void setOptions(java.util.List newOptions)
           
 void setOptions(java.lang.String... newOptions)
           
 void setSelectedIndex(int newIndex)
           
 void setSelectedItem(java.lang.Object newItem)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComboSelectionControl

public ComboSelectionControl()

ComboSelectionControl

public ComboSelectionControl(javax.swing.ComboBoxModel model)
Method Detail

setModel

public void setModel(javax.swing.ComboBoxModel newModel)

getSelectedIndex

public int getSelectedIndex()

setSelectedIndex

public void setSelectedIndex(int newIndex)

getSelectedItem

public java.lang.Object getSelectedItem()

setSelectedItem

public void setSelectedItem(java.lang.Object newItem)

setOptions

public void setOptions(java.util.ArrayList newOptions)

setOptions

public void setOptions(java.lang.String... newOptions)

setOptions

public void setOptions(java.util.List newOptions)

getJComboBox

public javax.swing.JComboBox getJComboBox()

getGUI

public javax.swing.JComponent getGUI()
Specified by:
getGUI in interface GUIControl

selectionModified

public void selectionModified()
Subclasses should override this to take action whenever the selection set changes.


doAction

public void doAction()
Subclasses should override this to take action whenever an action should occur (generally when the user hits return in the field).