|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
wt.clients.widgets.BaseSelector
wt.clients.csm.ranking.rankingcontext.GenericContextSelector
Nested Class Summary |
Nested classes inherited from class wt.clients.widgets.BaseSelector |
|
Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
protected JComboBox |
contextBox
|
private static String |
RANKING_RESOURCE
|
protected static ResourceBundle |
rcResource
|
private RankingService |
serviceObject
|
Fields inherited from class wt.clients.widgets.BaseSelector |
BASE_RESOURCE, baseSelectorTitle, canceled, editorDialog, errorDialogTitle, id, modelDialogFlag, multiSelection, resource, selected, selectorListenerManager, statusBarHost, warningDialogTitle |
Fields inherited from class javax.swing.JPanel |
|
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
GenericContextSelector()
|
Method Summary | |
void |
addValue(Object obj)
Add the object to the selector. |
private JComboBox |
createComboBox()
|
private void |
displayExceptionMessage(String key,
Object[] params)
Display the exception messages with the key plus the parameters. |
Object |
getFirstSelected()
Get the first selected values from the selector. |
Vector |
getSelectedValues()
Get the selected values from the selector. |
protected void |
initResource()
|
void |
removeValue(Object obj)
Remove the object from the selector. |
private void |
setComponents()
|
void |
setMultiSelect(boolean flag)
Set the multi-select mode. |
void |
setSelectedValue(Object obj)
Set the selection of the selector to the object. |
void |
setSelectedValues(Vector vect)
If the selector is set to have multiple selection, then the elements inside the vector will be selected in the selector. |
Methods inherited from class wt.clients.widgets.BaseSelector |
addSelectorListener, clearAllStatusMessages, fireSelectionChangedEvent, getContext, isModalDialog, isMultiSelect, removeSelectorListener, setBusy, setStatusBarHost, showAsModalSelectorDialog, showAsModalSelectorDialog, showAsModalSelectorDialog |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static String RANKING_RESOURCE
protected static ResourceBundle rcResource
private RankingService serviceObject
protected JComboBox contextBox
Constructor Detail |
public GenericContextSelector()
Method Detail |
protected void initResource()
initResource
in class BaseSelector
private void setComponents()
private JComboBox createComboBox()
public Object getFirstSelected()
SelectorInterface
getFirstSelected
in interface SelectorInterface
getFirstSelected
in class BaseSelector
private void displayExceptionMessage(String key, Object[] params)
key
- Key to find the string from the resource bundleparams
- Parameters passed to the value from the resource bundlepublic void addValue(Object obj)
SelectorInterface
addValue
in interface SelectorInterface
addValue
in class BaseSelector
public Vector getSelectedValues()
SelectorInterface
getSelectedValues
in interface SelectorInterface
getSelectedValues
in class BaseSelector
public void removeValue(Object obj)
SelectorInterface
removeValue
in interface SelectorInterface
removeValue
in class BaseSelector
public void setMultiSelect(boolean flag)
SelectorInterface
setMultiSelect
in interface SelectorInterface
setMultiSelect
in class BaseSelector
public void setSelectedValue(Object obj)
SelectorInterface
setSelectedValue
in interface SelectorInterface
setSelectedValue
in class BaseSelector
public void setSelectedValues(Vector vect)
SelectorInterface
setSelectedValues
in interface SelectorInterface
setSelectedValues
in class BaseSelector
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |