getReadOnlyTableOutputClassName() Normally we display data using the class selected by the user in the
Session Preferences, but there are occasions in which the application
needs to override the user selection and explicitly use either a read-only
or an editable table.
getSQLResultsOutputClassName() Get the type of output display selected by the user in the
Session Properties, which may be text, read-only table, or editable table;
the caller must be able to handle any of those (especially editable).
Force a re-build of the GUI when a user makes a table
temporarily editable. The situation is that the current
SessionProperties _tableContentsClassName is a read-only
class (either table or text) and the user has requested that
the information be made editable.
This can only be requested in the ContentsTab
and only when the sqlResults is read-only.
We make the table editable by:
- setting the underlying data model (e.g. ContentsTab) so that it
internally overrides the SessionProperties when getting the
output class name, and
- telling the listeners that the SessionProperties have changed.
This function is called by the underlying data model to tell the
listeners to update the GUI. This is done by pretending that the
SessionPropertied have just changed from being EDITABLE_TABLE to
some read-only class. (We know that the current value of the
_tableContentsClassName is a read-only class.)
This is not a very nice way to cause the interface to be updated,
but it was the simplest one that I could find. GWG 10/30/02
CB TODO: (Move this elsewhere).
Get the name of the read-only form of the user-selected preference,
which may be TEXT or READ_ONLY_TABLE. The user may have selected
EDITABLE_TABLE, but the caller wants to get the read-only version
(because it does not know how to handle and changes the user makes,
e.g. because the data represents a multi-table join).
Normally we display data using the class selected by the user in the
Session Preferences, but there are occasions in which the application
needs to override the user selection and explicitly use either a read-only
or an editable table. These functions provide access to those class names.
Get the type of output display selected by the user in the
Session Properties, which may be text, read-only table, or editable table;
the caller must be able to handle any of those (especially editable).
public void setSQLResultsOutputClassName(String value)(Code)
Set the type of output display to user selection, which may be
text, read-only table, or editable table. This is called
when the user makes a selection, and also when loading the
preferences object from the saved data during Squirrel startup.
setSQLResultsTabPlacement
public void setSQLResultsTabPlacement(int value)(Code)
setSQLShareHistory
public void setSQLShareHistory(boolean data)(Code)
Set whether this session shares its SQL History with other sessions.
Parameters: data - true if this session shares its history.
setSQLStatementSeparator
public void setSQLStatementSeparator(String value)(Code)
Set the string used to separate multiple SQL statements. Possible
examples are ";" or "GO";
Parameters: value - Separator string.
setSchemaPrefixList
public synchronized void setSchemaPrefixList(String data)(Code)
Set the comma-separated list of schema prefixes to display in the object tree.
setShowResultsMetaData
public synchronized void setShowResultsMetaData(boolean data)(Code)
Set true if sql results meta data should be loaded.
setShowRowCount
public synchronized void setShowRowCount(boolean data)(Code)
Specify whether row count should be displayed for every table in
object tree.
Parameters: data - true fi row count should be displayedelse false.