users.swing
Class  UserComboBoxModel
java.lang.Object
  |
  +--javax.swing.AbstractListModel
        |
        +--users.swing.UserListModel
              |
              +--users.swing.UserComboBoxModel
- public class UserComboBoxModel- extends UserListModel- implements ComboBoxModel
A ComboBoxModel modelling a UserManager.
- Since:
- v2.0
- Version:
- 2.0 05/05/1999
- Author:
- Steffen Zschaler
- See Also:
- UserManager,- User, Serialized Form
 
 
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, 
equals, 
finalize, 
getClass, 
hashCode, 
notify, 
notifyAll, 
toString, 
wait, 
wait, 
wait | 
 
m_usrSelection
protected User m_usrSelection
- The currently selected user.
UserComboBoxModel
public UserComboBoxModel()
- Create a new UserComboBoxModel modelling the global UserManager.
UserComboBoxModel
public UserComboBoxModel(UserFilter uf,
                         Comparator cmp)
- Create a new UserComboBoxModel modelling the global UserManager.- 
- Parameters:
- uf- a filter that defines the set of users to be displayed. If- null, no filtering will
 occur.
- cmp- a Comparator that defines the order of the users to be displayed. The objects to be compared
 by this comparator will be Users. If- null, users will be ordered by their names.
 
UserComboBoxModel
public UserComboBoxModel(UserManager um)
- Create a new UserComboBoxModel modelling a given UserManager.- 
- Parameters:
- um- the UserManager to be modelled.
 
UserComboBoxModel
public UserComboBoxModel(UserManager um,
                         UserFilter uf,
                         Comparator cmp)
- Create a new UserComboBoxModel modelling a given UserManager.- 
- Parameters:
- um- the UserManager to be modelled.
- uf- a filter that defines the set of users to be displayed. If- null, no filtering will
 occur.
- cmp- a Comparator that defines the order of the users to be displayed. The objects to be compared
 by this comparator will be Users. If- null, users will be ordered by their names.
 
getSelectedItem
public Object getSelectedItem()
- Return the currently selected user.- 
- Override:
- Never.
- Specified by:
- getSelectedItem in interface ComboBoxModel
- Returns:
- the currently selected user.
 
setSelectedItem
public void setSelectedItem(Object oSelectedItem)
- Set the currently selected user, making sure that it is known to the
 UserManager. If the givenUseris not known to theUserManager,
 the selection is not altered.
- 
- Override:
- Never.
- Specified by:
- setSelectedItem in interface ComboBoxModel
- Parameters:
- oSelectedItem- the new selection.
 
updateModel
public void updateModel()
- Update the local model.- 
- Override:
- Never.
- Overrides:
- updateModel in class UserListModel