|
|||||||||||
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
Supported API:true
Extendable:false
Nested Class Summary | |
(package private) class |
BaseSelector.SelectCancelPanel
|
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 static String |
BASE_RESOURCE
|
protected String |
baseSelectorTitle
|
protected boolean |
canceled
|
protected JDialog |
editorDialog
|
protected String |
errorDialogTitle
|
protected String |
id
|
protected boolean |
modelDialogFlag
|
protected boolean |
multiSelection
|
protected static ResourceBundle |
resource
|
protected Vector |
selected
|
protected SelectorListenerManager |
selectorListenerManager
|
protected StatusBarHostInterface |
statusBarHost
|
protected String |
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 | |
BaseSelector()
|
Method Summary | |
void |
addSelectorListener(SelectorEventListener obj)
Add the selector listener. |
abstract void |
addValue(Object obj)
Add the object to the selector. |
void |
clearAllStatusMessages()
|
void |
fireSelectionChangedEvent(SelectorEvent obj)
|
WTContext |
getContext()
|
abstract Object |
getFirstSelected()
Get the first selected values from the selector. |
abstract Vector |
getSelectedValues()
Get the selected values from the selector. |
protected void |
initResource()
|
boolean |
isModalDialog()
|
boolean |
isMultiSelect()
Get the multi-select mode. |
void |
removeSelectorListener(SelectorEventListener obj)
Remove the selector listener. |
abstract void |
removeValue(Object obj)
Remove the object from the selector. |
void |
setBusy(boolean busy)
|
abstract void |
setMultiSelect(boolean b)
Set the multi-select mode. |
abstract void |
setSelectedValue(Object obj)
Set the selection of the selector to the object. |
abstract void |
setSelectedValues(Vector v)
If the selector is set to have multiple selection, then the elements inside the vector will be selected in the selector. |
void |
setStatusBarHost(StatusBarHostInterface host)
Set the status bar host. |
Vector |
showAsModalSelectorDialog()
Show the selector in a modal dialog. |
Vector |
showAsModalSelectorDialog(Frame parent,
int width,
int height)
Supported API:true |
Vector |
showAsModalSelectorDialog(int width,
int height)
|
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 |
protected static final String BASE_RESOURCE
protected static ResourceBundle resource
protected String baseSelectorTitle
protected String warningDialogTitle
protected String errorDialogTitle
protected boolean modelDialogFlag
protected boolean multiSelection
protected Vector selected
protected boolean canceled
protected String id
protected StatusBarHostInterface statusBarHost
protected JDialog editorDialog
protected SelectorListenerManager selectorListenerManager
Constructor Detail |
public BaseSelector()
Method Detail |
protected void initResource()
public WTContext getContext()
public Vector showAsModalSelectorDialog()
SelectorInterface
showAsModalSelectorDialog
in interface SelectorInterface
public Vector showAsModalSelectorDialog(int width, int height)
public Vector showAsModalSelectorDialog(Frame parent, int width, int height)
parent
- frame for dialog to usewidth
- width of the dialogheight
- height of dialogpublic boolean isModalDialog()
public void setStatusBarHost(StatusBarHostInterface host)
SelectorInterface
setStatusBarHost
in interface SelectorInterface
host
- public boolean isMultiSelect()
SelectorInterface
isMultiSelect
in interface SelectorInterface
public void addSelectorListener(SelectorEventListener obj)
SelectorInterface
addSelectorListener
in interface SelectorInterface
obj
- public void removeSelectorListener(SelectorEventListener obj)
SelectorInterface
removeSelectorListener
in interface SelectorInterface
obj
- public void fireSelectionChangedEvent(SelectorEvent obj)
public void setBusy(boolean busy)
public abstract void addValue(Object obj)
SelectorInterface
addValue
in interface SelectorInterface
obj
- public abstract void removeValue(Object obj)
SelectorInterface
removeValue
in interface SelectorInterface
obj
- public abstract void setSelectedValue(Object obj)
SelectorInterface
setSelectedValue
in interface SelectorInterface
obj
- public abstract void setSelectedValues(Vector v)
SelectorInterface
setSelectedValues
in interface SelectorInterface
v
- public abstract Vector getSelectedValues()
SelectorInterface
getSelectedValues
in interface SelectorInterface
public abstract Object getFirstSelected()
SelectorInterface
getFirstSelected
in interface SelectorInterface
public abstract void setMultiSelect(boolean b)
SelectorInterface
setMultiSelect
in interface SelectorInterface
b
- public void clearAllStatusMessages()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |