|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsemorg.gui.list.ListWindow
semorg.gui.list.ClientListWindow
public class ClientListWindow
Provides the list window for client data records. This class can be
instantiated as normal list windows using the menu the MainWindow as
well as popup list windows by the controls AssociationTabControl and
ForeignKeyConstraintSelector.
| Field Summary | |
|---|---|
static ListWindow |
instance
A static instance of the actual list window. |
| Fields inherited from class semorg.gui.list.ListWindow |
|---|
chooseButton, columns, deleteItem, editItem, filter, filterItem, mainTable, mainTableViewer, newItem, shell, sortString, toolBar |
| Constructor Summary | |
|---|---|
ClientListWindow()
Instantiates a new list window. |
|
ClientListWindow(AssociationTabControl caller)
Instantiates a new list window as a popup. |
|
ClientListWindow(ForeignKeyConstraintSelector caller)
Instantiates a new list window as a popup. |
|
| Method Summary | |
|---|---|
protected void |
createChooseButtonListener(AssociationTabControl caller)
Creates a SelectionListener for the choose button which passes the SimpleIDKeys of the selected elements to the calling AssociationTabControl by invoking the method addSelectedIds of the caller instance. |
protected void |
createChooseButtonListener(ForeignKeyConstraintSelector caller)
Adds a listener to the mainTableViewer which inserts the doubleclicked item into the calling ForeignKeyConstraintSelector instance. |
protected void |
createSpecializedMainTableListener()
Adds a listener to the mainTableViewer which opens a edit dialog to edit the doubleclicked item. |
protected void |
createSpecializedMainTableListener(AssociationTabControl caller)
Adds a listener to the mainTableViewer which inserts the doubleclicked item into the calling AssociationTabControl instance. |
protected void |
createSpecializedMainTableListener(ForeignKeyConstraintSelector caller)
Adds a listener to the mainTableViewer which inserts the doubleclicked item into the calling ForeignKeyConstraintSelector instance |
protected void |
createSpecializedToolBarListeners()
Creates listeners for the toolbar buttons ListWindow.editItem,
ListWindow.newItem and ListWindow.deleteItem which provide the functionality
of the buttons. |
static void |
createWindow(org.eclipse.swt.widgets.Shell parent)
Creates the static list window instance. |
protected Object |
getTableInputFromDB()
Returns a vector of table class instances which will be displayed in the GUI table of the list window. |
static void |
openList()
Opens the shell of the static list window instance. |
| Methods inherited from class semorg.gui.list.ListWindow |
|---|
addUpdateListener, createListToolbarBasics, createTableBasics, setActive, setVisible, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static ListWindow instance
ClientWindow.
| Constructor Detail |
|---|
public ClientListWindow()
public ClientListWindow(AssociationTabControl caller)
caller - the ForeignKeyConstraintSelector instance which
wants to create this list windowpublic ClientListWindow(ForeignKeyConstraintSelector caller)
caller - the AssociationTabControl instance which wants to
create this list window| Method Detail |
|---|
protected void createSpecializedMainTableListener()
createSpecializedMainTableListener in class ListWindowListWindow.createSpecializedMainTableListener()protected void createSpecializedMainTableListener(AssociationTabControl caller)
AssociationTabControl instance.
createSpecializedMainTableListener in class ListWindowcaller - the AssociationTabControl instance
which called the actual list windowListWindow.createSpecializedMainTableListener(semorg.gui.util.AssociationTabControl)protected void createSpecializedMainTableListener(ForeignKeyConstraintSelector caller)
ForeignKeyConstraintSelector instance. *
createSpecializedMainTableListener in class ListWindowcaller - the ForeignKeyConstraintSelector
instance which called the actual list windowListWindow.createSpecializedMainTableListener(semorg.gui.util.ForeignKeyConstraintSelector)protected void createSpecializedToolBarListeners()
ListWindowListWindow.editItem,
ListWindow.newItem and ListWindow.deleteItem which provide the functionality
of the buttons. These listeners opens edit windows or deleting
dialogs and invoke the deleting or creating methods.
createSpecializedToolBarListeners in class ListWindowListWindow.createSpecializedToolBarListeners()protected void createChooseButtonListener(AssociationTabControl caller)
ListWindow
createChooseButtonListener in class ListWindowcaller - the AssociationTabControl instance which called the list
window.ListWindow.createChooseButtonListener(semorg.gui.util.AssociationTabControl)protected void createChooseButtonListener(ForeignKeyConstraintSelector caller)
ForeignKeyConstraintSelector instance.
createChooseButtonListener in class ListWindowcaller - the ForeignKeyConstraintSelector instance which called the
list window.ListWindow.createSpecializedMainTableListener(semorg.gui.util.ForeignKeyConstraintSelector)public static void openList()
protected Object getTableInputFromDB()
ListWindow
getTableInputFromDB in class ListWindowListWindow.getTableInputFromDB()public static void createWindow(org.eclipse.swt.widgets.Shell parent)
parent - the parent shell.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||