org.salespointframework.desktop
Class DatabaseConnectionForm.DatabaseConnectionFS

java.lang.Object
  extended by org.salespointframework.core.FormSheet
      extended by org.salespointframework.desktop.DatabaseConnectionForm.DatabaseConnectionFS
Enclosing class:
DatabaseConnectionForm

private class DatabaseConnectionForm.DatabaseConnectionFS
extends FormSheet

Formsheet for database management

Since:
4.0
Author:
Thomas Kissinger

Nested Class Summary
 
Nested classes/interfaces inherited from class org.salespointframework.core.FormSheet
FormSheet.FormButton
 
Field Summary
(package private)  javax.swing.JButton btActivate
           
(package private)  javax.swing.JButton btClose
           
(package private)  javax.swing.JButton btConfig
           
(package private)  javax.swing.JButton btDel
           
(package private)  javax.swing.JButton btInit
           
(package private)  javax.swing.JButton btOpen
           
(package private)  javax.swing.JList conList
           
(package private)  DatabaseConnectionModel dbcModel
           
(package private)  ImagePanel ipInfo
           
(package private)  javax.swing.JTextArea pInfo
           
 
Fields inherited from class org.salespointframework.core.FormSheet
BTNID_CANCEL, BTNID_OK, BUTTONBAR_BOTTOM, BUTTONBAR_LEFT, BUTTONBAR_NONE, BUTTONBAR_RIGHT, BUTTONBAR_TOP, m_fCancelled
 
Constructor Summary
DatabaseConnectionForm.DatabaseConnectionFS()
          default constructor
 
Method Summary
private  boolean checkForGlobalTermination()
          request termination of all running processes in Shop and logoff all users if user is comfortable with this
private  javax.swing.JComponent getDBComponent()
          build root component
 void ok()
          unsubscribe and close
private  void setInfoPanelContent(DatabaseConnectionTemplate tpl)
          set content if information panel
private  void updateButtons()
          update button state
 
Methods inherited from class org.salespointframework.core.FormSheet
addButton, addButton, addContentCreator, attach, attach, attach, buttonIterator, buttonIterator, cancel, close, copyFormSheetDnDComponents, customizeButtonbar, detachDisplay, detachProcess, detachSalesPoint, fillBtnPanel, getButton, getButtonbarPosition, getButtonsLock, getCaption, getComponent, getComponentLock, getDisplay, getDisplayLock, getDragLayer, getModalLayer, getPopupLayer, getProcess, getSalesPoint, getWrappedComponent, isCancelled, letFollowComponentOnDragLayer, paintButtonBarBackground, registerDnDComponent, removeAllButtons, removeAllDndComponents, removeButton, removeDnDComponent, setButtonbarPosition, setCaption, setComponent, setFormsheetCustomizationListener, setWaitResponse, stopFollowComponentOnDragLayer, toString, waitResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

dbcModel

DatabaseConnectionModel dbcModel

conList

javax.swing.JList conList

btActivate

javax.swing.JButton btActivate

btConfig

javax.swing.JButton btConfig

btDel

javax.swing.JButton btDel

btClose

javax.swing.JButton btClose

btOpen

javax.swing.JButton btOpen

btInit

javax.swing.JButton btInit

ipInfo

ImagePanel ipInfo

pInfo

javax.swing.JTextArea pInfo
Constructor Detail

DatabaseConnectionForm.DatabaseConnectionFS

public DatabaseConnectionForm.DatabaseConnectionFS()
default constructor

Method Detail

checkForGlobalTermination

private boolean checkForGlobalTermination()
request termination of all running processes in Shop and logoff all users if user is comfortable with this

Returns:
false, on user abort

setInfoPanelContent

private void setInfoPanelContent(DatabaseConnectionTemplate tpl)
set content if information panel

Parameters:
tpl -

ok

public void ok()
unsubscribe and close

Overrides:
ok in class FormSheet

updateButtons

private void updateButtons()
update button state


getDBComponent

private javax.swing.JComponent getDBComponent()
build root component

Returns:
root component