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 Summary

    Fields
    Modifier and Type
    Field
    Description
    protected boolean
    Flag that check tabItem was initialized or not
    protected final org.eclipse.core.resources.IProject
    Actual context project of Query Builder
    Actual QueryWizardSource of Query Builder
    protected final QueryWizardControl
    Actual Query wizard control
    protected final org.eclipse.swt.custom.CTabFolder
    Parent CTabFolder for creating tab on it
    protected org.eclipse.swt.custom.CTabItem
    Created CTabItem
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    AbstractLazyTab(QueryWizardControl queryWizard, org.eclipse.core.resources.IProject project, org.eclipse.swt.custom.CTabFolder tabFolder)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    Adds special paint listener for draw content of the tab when it will be activated firstly.
    protected abstract void
    Creates content of the tab item, method will be call once when tab item has not been initialized yet.
    org.eclipse.swt.custom.CTabItem
    Gets created CTabItem
    protected void
    Initializes content of the tab item
    boolean
    Checks that tab item was initialized or not
    void
    setTabItem(org.eclipse.swt.custom.CTabItem tabItem)
    Sets new CTabItem for tab
    protected abstract void
    Sets content and label providers to the trees in tab items
    void
    Updates label and content provider for trees in tab item

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • queryWizard

      protected final QueryWizardControl queryWizard
      Actual Query wizard control
    • project

      protected final org.eclipse.core.resources.IProject project
      Actual context project of Query Builder
    • tabFolder

      protected final org.eclipse.swt.custom.CTabFolder tabFolder
      Parent CTabFolder for creating tab on it
    • tabItem

      protected org.eclipse.swt.custom.CTabItem tabItem
      Created CTabItem
    • querySchemaSource

      protected QueryWizardSource querySchemaSource
      Actual QueryWizardSource of Query Builder
    • init

      protected boolean init
      Flag that check tabItem was initialized or not
  • Constructor Details

    • AbstractLazyTab

      protected AbstractLazyTab(QueryWizardControl queryWizard, org.eclipse.core.resources.IProject project, org.eclipse.swt.custom.CTabFolder tabFolder)
      Constructor. tabItem should 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 CTabFolder for creating tab on it, cannot be null
  • Method Details

    • getTabItem

      public org.eclipse.swt.custom.CTabItem getTabItem()
      Gets created CTabItem
      Returns:
      created CTabItem, never null
    • setTabItem

      public void setTabItem(org.eclipse.swt.custom.CTabItem tabItem)
      Sets new CTabItem for tab
      Parameters:
      tabItem - new CTabItem for tab, cannot be null
    • isInit

      public boolean isInit()
      Checks that tab item was initialized or not
      Returns:
      true if tab item was initialized, false otherwise
    • updateTreeProviders

      public void updateTreeProviders(QueryWizardSource querySchemaSource)
      Updates label and content provider for trees in tab item
      Parameters:
      querySchemaSource - new QueryWizardSource corresponding to the Query Builder, cannot be null
    • addPaintListener

      protected void addPaintListener()
      Adds special paint listener for draw content of the tab when it will be activated firstly. Listener removes itself
    • init

      protected void init()
      Initializes content of the tab item
    • setTreeProviders

      protected abstract void setTreeProviders()
      Sets content and label providers to the trees in tab items
    • createTabContent

      protected abstract void createTabContent()
      Creates content of the tab item, method will be call once when tab item has not been initialized yet. See init()