Class ConfigView

java.lang.Object
com.biglybt.ui.swt.views.ConfigView
All Implemented Interfaces:
ConfigSectionRepository.ConfigSectionRepositoryListener, UISWTViewEventListener, UISWTViewCoreEventListener

  • Field Details

    • LOGID

      private static final LogIDs LOGID
    • SELECT_KEY

      public static final String SELECT_KEY
      See Also:
    • TREEITEMDATA_CONFIGSECTION

      public static final String TREEITEMDATA_CONFIGSECTION
      See Also:
    • TREEITEMDATA_PANEL

      public static final String TREEITEMDATA_PANEL
      See Also:
    • TREEITEMDATA_ITEM

      public static final String TREEITEMDATA_ITEM
      See Also:
    • groupFont

      private static org.eclipse.swt.graphics.Font groupFont
    • sections

      final Map<org.eclipse.swt.widgets.TreeItem,BaseConfigSection> sections
    • sectionsCreated

      final List<BaseConfigSection> sectionsCreated
    • cConfig

      org.eclipse.swt.widgets.Composite cConfig
    • cConfigSection

      org.eclipse.swt.widgets.Composite cConfigSection
    • layoutConfigSection

      org.eclipse.swt.custom.StackLayout layoutConfigSection
    • usermodeHint

      org.eclipse.swt.widgets.Label usermodeHint
    • headerFont

      org.eclipse.swt.graphics.Font headerFont
    • filterFoundFont

      org.eclipse.swt.graphics.Font filterFoundFont
    • tree

      org.eclipse.swt.widgets.Tree tree
    • pluginSections

      ArrayList<BaseConfigSection> pluginSections
    • filterDelayTimer

      private Timer filterDelayTimer
    • filterText

      private String filterText
    • startSection

      private String startSection
    • swtView

      private UISWTView swtView
    • rebuildSectionRunnable

      ConfigSectionRebuildRunner rebuildSectionRunnable
    • insert_point_comparator

      private static Comparator<Object> insert_point_comparator
  • Constructor Details

    • ConfigView

      public ConfigView()
  • Method Details

    • getSectionContext

      public static String getSectionContext(org.eclipse.swt.widgets.Control c)
    • initialize

      private void initialize(org.eclipse.swt.widgets.Composite composite)
    • _initialize

      private void _initialize(boolean applyClose)
    • buildSection

      private void buildSection(BaseConfigSection section)
    • sectionAdded

      public void sectionAdded(BaseConfigSection section)
      Specified by:
      sectionAdded in interface ConfigSectionRepository.ConfigSectionRepositoryListener
    • sectionRemoved

      public void sectionRemoved(BaseConfigSection section)
      Specified by:
      sectionRemoved in interface ConfigSectionRepository.ConfigSectionRepositoryListener
    • setupSC

      private static void setupSC(org.eclipse.swt.custom.ScrolledComposite sc)
    • filterTree

      protected void filterTree(String text)
    • filterTree

      protected void filterTree(org.eclipse.swt.widgets.TreeItem[] items, String text, ArrayList<org.eclipse.swt.widgets.TreeItem> foundItems)
    • ensureExpandedTo

      private static void ensureExpandedTo(org.eclipse.swt.widgets.TreeItem item)
    • compositeHasText

      private static boolean compositeHasText(org.eclipse.swt.widgets.Composite composite, String text)
      Parameters:
      composite -
      text -
      Returns:
    • saveLatestSelection

      private static void saveLatestSelection(org.eclipse.swt.widgets.TreeItem item)
    • getLatestSelection

      private org.eclipse.swt.widgets.TreeItem getLatestSelection()
    • showSection

      private void showSection(org.eclipse.swt.widgets.TreeItem section, boolean focus, Map options)
    • showSectionSupport

      private boolean showSectionSupport(org.eclipse.swt.widgets.TreeItem section, boolean focus, Map options)
    • highlightText

      private void highlightText(org.eclipse.swt.widgets.Composite c, String text)
    • highlightText2

      private org.eclipse.swt.widgets.Control highlightText2(org.eclipse.swt.widgets.Composite c, String select)
    • highlightControl

      private void highlightControl(org.eclipse.swt.widgets.Control control, String text, boolean type1)
      Parameters:
      child -
      Since:
      4.5.1.1
    • ensureSectionBuilt

      private void ensureSectionBuilt(org.eclipse.swt.widgets.TreeItem treeSection, boolean recreateIfAlreadyThere)
    • buildUnavailableSection

      private static void buildUnavailableSection(org.eclipse.swt.widgets.Composite parent, int userMode, int requiredMode)
    • updateHeader

      private void updateHeader(org.eclipse.swt.widgets.TreeItem section)
    • findInsertPointFor

      private static int findInsertPointFor(String name, Object structure)
    • findTreeItem

      public org.eclipse.swt.widgets.TreeItem findTreeItem(String ID)
    • findTreeItem

      private org.eclipse.swt.widgets.TreeItem findTreeItem(org.eclipse.swt.widgets.Tree tree, String ID)
    • findTreeItem

      private static org.eclipse.swt.widgets.TreeItem findTreeItem(org.eclipse.swt.widgets.TreeItem item, String ID)
    • initSaveButton

      private void initSaveButton()
    • initApplyCloseButton

      private void initApplyCloseButton()
    • getComposite

      private org.eclipse.swt.widgets.Composite getComposite()
    • updateLanguage

      private void updateLanguage()
    • delete

      private void delete(boolean forRebuild)
    • getFullTitle

      private static String getFullTitle()
    • selectSection

      public boolean selectSection(String id, boolean focus)
    • save

      public void save()
    • dataSourceChanged

      private void dataSourceChanged(Object newDataSource)
    • informOfDuplicates

      public boolean informOfDuplicates(int type)
      Specified by:
      informOfDuplicates in interface UISWTViewEventListener
    • eventOccurred

      public boolean eventOccurred(UISWTViewEvent event)
      Description copied from interface: UISWTViewEventListener
      Triggers when an even listed in UISWTViewEvent occurs
      Specified by:
      eventOccurred in interface UISWTViewEventListener
      Parameters:
      event - event that occurred
      Returns:
      meaning dependent upon event type
    • buildScreen

      private static void buildScreen(org.eclipse.swt.widgets.Composite main_tab, Parameter[] parameters, Map<ParameterImpl,BaseSwtParameter> mapParamToSwtParam, ParameterImplListener parameterImplListener)
    • handleTabFolder

      private static org.eclipse.swt.widgets.Composite handleTabFolder(int userMode, org.eclipse.swt.widgets.Composite current_composite, Map<ParameterGroupImpl,org.eclipse.swt.widgets.Composite> group_map, Map<ParameterTabFolderImpl,org.eclipse.swt.custom.CTabFolder> tab_folder_map, Map<ParameterGroupImpl,org.eclipse.swt.widgets.Composite> tab_map, ParameterGroupImpl pg, ParameterTabFolderImpl tab_folder)