|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ArchitectSwingSessionContext
The ArchitectSwingSessionContext interface specifies a set of properties and methods for creating new Architect Swing Sessions. Additionally, the session context is the gateway to information that is specific to the current user's environment (as opposed to information that is attached to specific projects, which is stored in the session).
| Field Summary | |
|---|---|
static int |
ICON_SIZE
The size, in pixels, of the icons in the toolbar. |
| Fields inherited from interface ca.sqlpower.architect.ArchitectSessionContext |
|---|
DRIVERS_URL |
| Method Summary | |
|---|---|
void |
closeAll()
Closes all sessions and terminates the VM. |
ArchitectSwingSession |
createSession()
Creates a new session within this parent context. |
ArchitectSwingSession |
createSession(ArchitectSwingSession openingSession)
Creates a new session that will have its GUI components positioned relative to the GUI components of the given ArchitectSwingSession. |
ArchitectSwingSession |
createSession(boolean showGUI)
Creates a new session within this parent context. |
ArchitectSwingSession |
createSession(java.io.InputStream in,
boolean showGUI)
Creates a new session by loading the Architect XML project description from the given input stream. |
boolean |
getExitAfterAllSessionsClosed()
Returns the current session for exiting after all sessions are closed. |
CoreUserSettings |
getUserSettings()
Gets the user settings for this session |
boolean |
isMacOSX()
Returns true iff this context is running on a Mac OS X machine. |
void |
setExitAfterAllSessionsClosed(boolean allowExit)
Optional setting which will have the context call System.exit() after there are no open sessions remaining. |
void |
showConnectionManager(java.awt.Window owner)
Shows the connection manager dialog for this context's data source collection. |
void |
showPreferenceDialog(java.awt.Window owner)
Shows the user preferences dialog for this application context. |
| Methods inherited from interface ca.sqlpower.architect.ArchitectSessionContext |
|---|
createSession, getConnections, getPlDotIni, getPlDotIniPath, getPrefs, getSessions, setPlDotIniPath |
| Field Detail |
|---|
static final int ICON_SIZE
| Method Detail |
|---|
ArchitectSwingSession createSession()
throws ArchitectException
Important note: This method must be called on the Swing Event Dispatch Thread. See SwingUtilities.invokeLater() for a way of ensuring this method is called on the proper thread.
createSession in interface ArchitectSessionContextArchitectException
ArchitectSwingSession createSession(boolean showGUI)
throws ArchitectException
Important note: If showGUI is true, this method must be called on the Swing Event Dispatch Thread. See SwingUtilities.invokeLater() for a way of ensuring this method is called on the proper thread.
showGUI - True if you want this session to have its own (visible)\
ArchitectFrame instance; false for an invisible session.
ArchitectException
ArchitectSwingSession createSession(java.io.InputStream in,
boolean showGUI)
throws ArchitectException,
java.io.IOException
in - The input stream to read the XML data fromshowGUI - True if you want this session to have its own (visible)\
ArchitectFrame instance; false for an invisible session.
ArchitectException
java.io.IOException
ArchitectSwingSession createSession(ArchitectSwingSession openingSession)
throws ArchitectException
ArchitectSwingUserSettings.
openingSession -
ArchitectExceptionboolean isMacOSX()
void closeAll()
void setExitAfterAllSessionsClosed(boolean allowExit)
The default behaviour for all context implementations must be not to terminate the VM.
allowExit - True will allow the context to terminate the VM; false
means the context will never call System.exit().boolean getExitAfterAllSessionsClosed()
setExitAfterAllSessionsClosed(boolean) for details.
void showConnectionManager(java.awt.Window owner)
owner - The owner of the dialog.void showPreferenceDialog(java.awt.Window owner)
owner - The owner of the dialogCoreUserSettings getUserSettings()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||