|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WabitSwingSession
This defines UI components that are needed for each session. These UI pieces can be used to display or modify information in the session and its workspace.
| Method Summary | |
|---|---|
WabitSwingSessionContext |
getContext()
Returns the context this session belongs to. |
java.net.URI |
getCurrentURI()
Returns the URI that this session was most recently loaded from or saved to. |
java.io.File |
getCurrentURIAsFile()
Returns the current URI as a File object, if the current URI is not null and it actually represents a file on a locally-accessible filesystem. |
ca.sqlpower.swingui.db.DatabaseConnectionManager |
getDbConnectionManager()
Returns a connection manager that will allow users to alter the connections in this session. |
javax.swing.JTree |
getTree()
Returns the JTree that describes the given session. |
WorkspaceTreeModel |
getWorkspaceTreeModel()
Returns the tree model that is used to define the JTree in getTree(). |
boolean |
hasUnsavedChanges()
Reports whether or not any changes have been detected in this workspace since it was opened or last saved. |
void |
runInBackground(java.lang.Runnable runner)
Starts this runner on a worker thread that is registered with this swing session. |
void |
runInForeground(java.lang.Runnable runner)
The runner will be executed on the event dispatch thread. |
void |
setCurrentURI(java.net.URI uri)
Sets the URI that this session was most recently loaded from or saved to, and resets the unsaved changes flag for this session. |
| Methods inherited from interface ca.sqlpower.swingui.SwingWorkerRegistry |
|---|
registerSwingWorker, removeSwingWorker |
| Methods inherited from interface ca.sqlpower.wabit.WabitSession |
|---|
addPropertyChangeListener, addSessionLifecycleListener, close, getDataSources, getSystemWorkspace, getWorkspace, isEnterpriseServerSession, removePropertyChangeListener, removeSessionLifecycleListener |
| Methods inherited from interface ca.sqlpower.util.SPSession |
|---|
isForegroundThread |
| Method Detail |
|---|
javax.swing.JTree getTree()
WorkspaceTreeModel getWorkspaceTreeModel()
getTree().
ca.sqlpower.swingui.db.DatabaseConnectionManager getDbConnectionManager()
void setCurrentURI(java.net.URI uri)
java.net.URI getCurrentURI()
java.io.File getCurrentURIAsFile()
getCurrentURI()boolean hasUnsavedChanges()
setCurrentURI(URI)WabitSwingSessionContext getContext()
WabitSession
getContext in interface WabitSessionvoid runInForeground(java.lang.Runnable runner)
runInForeground in interface ca.sqlpower.util.SPSessionvoid runInBackground(java.lang.Runnable runner)
runInBackground in interface ca.sqlpower.util.SPSession
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||