|
||||||||||
| 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.JInternalFrame
org.gswing.gui.GuiComponent
org.gswing.gui.ModalInternalFrame
org.gswing.gui.CandidateSelector
public class CandidateSelector
Dialog for selecting a single candidate from a list candidates from the database.
| Nested Class Summary | |
|---|---|
static class |
CandidateSelector.CandidateModel
Models the candidate list. |
| Nested classes/interfaces inherited from class javax.swing.JInternalFrame |
|---|
JInternalFrame.AccessibleJInternalFrame, JInternalFrame.JDesktopIcon |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JInternalFrame |
|---|
closable, CONTENT_PANE_PROPERTY, desktopIcon, FRAME_ICON_PROPERTY, frameIcon, GLASS_PANE_PROPERTY, iconable, IS_CLOSED_PROPERTY, IS_ICON_PROPERTY, IS_MAXIMUM_PROPERTY, IS_SELECTED_PROPERTY, isClosed, isIcon, isMaximum, isSelected, LAYERED_PANE_PROPERTY, maximizable, MENU_BAR_PROPERTY, resizable, ROOT_PANE_PROPERTY, rootPane, rootPaneCheckingEnabled, title, TITLE_PROPERTY |
| 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.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent ev)
|
void |
inform(int index,
Object value)
Call back from candidate inserter to request refresh of dialog. |
void |
keyPressed(KeyEvent arg0)
|
void |
keyReleased(KeyEvent arg0)
|
void |
keyTyped(KeyEvent ev)
|
void |
mouseClicked(MouseEvent ev)
When a candidate is double clicked select value and hide dialog. |
void |
mouseEntered(MouseEvent arg0)
|
void |
mouseExited(MouseEvent arg0)
|
void |
mousePressed(MouseEvent arg0)
|
void |
mouseReleased(MouseEvent arg0)
|
static Object |
showDialog(IFramework framework,
JInternalFrame parentGui,
IUpdateInformed callBack,
int inx,
ArrayList entries)
Pop up dialog. |
| Methods inherited from class org.gswing.gui.ModalInternalFrame |
|---|
internalFrameClosing, setVisible |
| Methods inherited from class org.gswing.gui.GuiComponent |
|---|
getDesktopManager, getFocusedComponent, getFramework, initialise, initialise, setDefaultButton, setFocusedComponent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static Object showDialog(IFramework framework,
JInternalFrame parentGui,
IUpdateInformed callBack,
int inx,
ArrayList entries)
framework - The framework reference.parentGui - The parent dialog.callBack - Object to call when something has changed.inx - Identifer for parent.entries - A list of candidates.
public void inform(int index,
Object value)
inform in interface IUpdateInformedindex - Identifier given by parent.value - Not used.public void actionPerformed(ActionEvent ev)
actionPerformed in interface ActionListeneractionPerformed in class GuiComponentpublic void keyReleased(KeyEvent arg0)
keyReleased in interface KeyListenerpublic void keyTyped(KeyEvent ev)
keyTyped in interface KeyListenerpublic void keyPressed(KeyEvent arg0)
keyPressed in interface KeyListenerpublic void mouseClicked(MouseEvent ev)
mouseClicked in interface MouseListenerpublic void mouseEntered(MouseEvent arg0)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent arg0)
mouseExited in interface MouseListenerpublic void mousePressed(MouseEvent arg0)
mousePressed in interface MouseListenerpublic void mouseReleased(MouseEvent arg0)
mouseReleased in interface MouseListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||