Package com._1c.g5.v8.dt.qw.ui.tabs
Class AbstractLazyTab
- java.lang.Object
- 
- com._1c.g5.v8.dt.qw.ui.tabs.AbstractLazyTab
 
- 
- Direct Known Subclasses:
- AdditionallyTab,- AliasesTab,- CharacteristicsTab,- ConditionsTab,- DataCompositionTab,- GroupingsTab,- IndexTab,- JoinsTab,- OrderTab,- QueryBatchTab,- TablesAndFieldsTab,- TotalsTab
 
 public abstract class AbstractLazyTab extends Object Abstact class contains logic for creating tab item for Query Wizard. Content of the tab will be created in lazy style when tab will be activated
- 
- 
Field SummaryFields Modifier and Type Field Description protected booleaninitFlag that check tabItem was initialized or notprotected org.eclipse.core.resources.IProjectprojectActual context project of Query Builderprotected QueryWizardSourcequerySchemaSourceActualQueryWizardSourceof Query Builderprotected QueryWizardControlqueryWizardActual Query wizard controlprotected org.eclipse.swt.custom.CTabFoldertabFolderParentCTabFolderfor creating tab on itprotected org.eclipse.swt.custom.CTabItemtabItemCreatedCTabItem
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedAbstractLazyTab(QueryWizardControl queryWizard, org.eclipse.core.resources.IProject project, org.eclipse.swt.custom.CTabFolder tabFolder)Constructor.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidaddPaintListener()Adds special paint listener for draw content of the tab when it will be activated firstly.protected abstract voidcreateTabContent()Creates content of the tab item, method will be call once when tab item has not been initialized yet.org.eclipse.swt.custom.CTabItemgetTabItem()Gets createdCTabItemprotected voidinit()Initializes content of the tab itembooleanisInit()Checks that tab item was initialized or notvoidsetTabItem(org.eclipse.swt.custom.CTabItem tabItem)Sets newCTabItemfor tabprotected abstract voidsetTreeProviders()Sets content and label providers to the trees in tab itemsvoidupdateTreeProviders(QueryWizardSource querySchemaSource)Updates label and content provider for trees in tab item
 
- 
- 
- 
Field Detail- 
queryWizardprotected final QueryWizardControl queryWizard Actual Query wizard control
 - 
projectprotected final org.eclipse.core.resources.IProject project Actual context project of Query Builder
 - 
tabFolderprotected final org.eclipse.swt.custom.CTabFolder tabFolder ParentCTabFolderfor creating tab on it
 - 
tabItemprotected org.eclipse.swt.custom.CTabItem tabItem CreatedCTabItem
 - 
querySchemaSourceprotected QueryWizardSource querySchemaSource ActualQueryWizardSourceof Query Builder
 - 
initprotected boolean init Flag that check tabItem was initialized or not
 
- 
 - 
Constructor Detail- 
AbstractLazyTabprotected AbstractLazyTab(QueryWizardControl queryWizard, org.eclipse.core.resources.IProject project, org.eclipse.swt.custom.CTabFolder tabFolder) Constructor.tabItemshould be initilized in constructor.- Parameters:
- queryWizard- actual Query wizard control, cannot be- null
- project- actual context project of Query Builder, cannot be- null
- tabFolder- parent- CTabFolderfor creating tab on it, cannot be- null
 
 
- 
 - 
Method Detail- 
getTabItempublic org.eclipse.swt.custom.CTabItem getTabItem() Gets createdCTabItem- Returns:
- created CTabItem, nevernull
 
 - 
setTabItempublic void setTabItem(org.eclipse.swt.custom.CTabItem tabItem) Sets newCTabItemfor tab- Parameters:
- tabItem- new- CTabItemfor tab, cannot be- null
 
 - 
isInitpublic boolean isInit() Checks that tab item was initialized or not- Returns:
- trueif tab item was initialized,- falseotherwise
 
 - 
updateTreeProviderspublic void updateTreeProviders(QueryWizardSource querySchemaSource) Updates label and content provider for trees in tab item- Parameters:
- querySchemaSource- new- QueryWizardSourcecorresponding to the Query Builder, cannot be- null
 
 - 
addPaintListenerprotected void addPaintListener() Adds special paint listener for draw content of the tab when it will be activated firstly. Listener removes itself
 - 
initprotected void init() Initializes content of the tab item
 - 
setTreeProvidersprotected abstract void setTreeProviders() Sets content and label providers to the trees in tab items
 - 
createTabContentprotected abstract void createTabContent() Creates content of the tab item, method will be call once when tab item has not been initialized yet. Seeinit()
 
- 
 
-