| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.datatools.sqltools.result.internal.ui.view.ResultSection
public abstract class ResultSection
ResultSection is an UI class, which is responsible for displaying the right part of the SQL Results
 View. Four kinds of display modes are supported:
 
 So four classes are defined for each mode --- MultipleTabsGridSection,
 MultipleTabsTextSection, SingleWindowGridSection, and
 SingleWindowTextSection.
| Nested Class Summary | |
|---|---|
|  class | ResultSection.OutputThread | 
| Constructor Summary | |
|---|---|
| ResultSection(IResultInstance instance,
              ResultsViewControl resultsViewControl) | |
| Method Summary | |
|---|---|
| abstract  org.eclipse.swt.widgets.Composite | getControl()Returns the outer control of this UI section | 
|  int | getRowCount()Returns the row count of the current displaying result set. | 
| abstract  void | onInstanceFinished()Does some jobs when resultInstanceFinish event occurs for the current result instance, for example, when using single window display mode, we need to display the parameters at the end | 
| abstract  void | onInstanceReseted()Refreshes UI when resultInstanceReset event occurs for the current result instance | 
|  void | onNewItemAppended(ResultItem item,
                  int index)Shows the newly-appended result item (when resultInstanceAppended event occurs) for the current result instance | 
| abstract  void | onParametersShown(java.util.List params)Shows the parameters for the current result instance, do nothing in single window display mode, because we need to display the parameters at the end in this mode | 
|  void | showDetail(IResultInstance instance)Shows the selected instance (when user clicks the history results item). | 
|  void | showResultSet(IResultSetObject result)Sets focus to the given result set | 
|  void | showTab(int tabType)Sets focus to the given tab | 
|  void | showTab(int tabType,
        int tabNumber)Sets focus to the given message/result tab with the given number | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ResultSection(IResultInstance instance,
                     ResultsViewControl resultsViewControl)
| Method Detail | 
|---|
public abstract org.eclipse.swt.widgets.Composite getControl()
public void showDetail(IResultInstance instance)
instance - the selected result instance
public void onNewItemAppended(ResultItem item,
                              int index)
item - the newly-appended result itemindex - the index of this itempublic abstract void onParametersShown(java.util.List params)
params - the parameterspublic abstract void onInstanceFinished()
public abstract void onInstanceReseted()
public void showTab(int tabType)
tabType - the type of the tab to be set focusResultsViewUIAccessor.STATUS_TAB, 
ResultsViewUIAccessor.PARAM_TAB, 
ResultsViewUIAccessor.MESSAGE_TAB, 
ResultsViewUIAccessor.RESULT_TABpublic void showResultSet(IResultSetObject result)
result - the result set
public void showTab(int tabType,
                    int tabNumber)
tabType - the type of the tab to be set focustabNumber - the number of the tab for the given typeResultsViewUIAccessor.MESSAGE_TAB, 
ResultsViewUIAccessor.RESULT_TABpublic int getRowCount()
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||