|
SalesPoint v3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.AbstractListModel users.swing.UserListModel users.swing.UserComboBoxModel
public class UserComboBoxModel
A ComboBoxModel modelling a UserManager.
UserManager
,
User
,
Serialized FormField Summary | |
---|---|
protected User |
m_usrSelection
The currently selected user. |
Fields inherited from class users.swing.UserListModel |
---|
m_cmpComparator, m_lUsers, m_ufFilter, m_um |
Fields inherited from class javax.swing.AbstractListModel |
---|
listenerList |
Constructor Summary | |
---|---|
UserComboBoxModel()
Create a new UserComboBoxModel modelling the global UserManager. |
|
UserComboBoxModel(UserFilter uf,
Comparator<User> cmp)
Create a new UserComboBoxModel modelling the global UserManager. |
|
UserComboBoxModel(UserManager um)
Create a new UserComboBoxModel modelling a given UserManager. |
|
UserComboBoxModel(UserManager um,
UserFilter uf,
Comparator<User> cmp)
Create a new UserComboBoxModel modelling a given UserManager. |
Method Summary | |
---|---|
Object |
getSelectedItem()
Return the currently selected user. |
void |
setSelectedItem(Object oSelectedItem)
Set the currently selected user, making sure that it is known to the UserManager . |
void |
updateModel()
Update the local model. |
Methods inherited from class users.swing.UserListModel |
---|
getElementAt, getSize, subscribe, unsubscribe, userAdded, userDeleted |
Methods inherited from class javax.swing.AbstractListModel |
---|
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.ListModel |
---|
addListDataListener, getElementAt, getSize, removeListDataListener |
Field Detail |
---|
protected User m_usrSelection
Constructor Detail |
---|
public UserComboBoxModel()
public UserComboBoxModel(UserFilter uf, Comparator<User> cmp)
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.public UserComboBoxModel(UserManager um)
um
- the UserManager to be modelled.public UserComboBoxModel(UserManager um, UserFilter uf, Comparator<User> cmp)
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.Method Detail |
---|
public Object getSelectedItem()
getSelectedItem
in interface ComboBoxModel
public void setSelectedItem(Object oSelectedItem)
UserManager
. If the given User
is not known to the UserManager
,
the selection is not altered.
setSelectedItem
in interface ComboBoxModel
oSelectedItem
- the new selection.public void updateModel()
updateModel
in interface HelpableListener
updateModel
in class UserListModel
|
SalesPoint v3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |