Class AbstractSearchDialog

java.lang.Object
org.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
com._1c.g5.v8.dt.common.ui.search.AbstractSearchDialog
All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider
Direct Known Subclasses:
ComparisonTreeSearchDialog, FormElementSearchDialog

public abstract class AbstractSearchDialog extends org.eclipse.jface.dialogs.Dialog
Represents a dialog for search elements.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.eclipse.jface.window.Window

    org.eclipse.jface.window.Window.IExceptionHandler
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.eclipse.swt.widgets.Button
     
    protected org.eclipse.swt.widgets.Button
     
    protected org.eclipse.swt.widgets.Button
     
    protected org.eclipse.swt.widgets.Label
     
    protected static final int
     
    protected static final int
     
    protected org.eclipse.swt.widgets.Text
     

    Fields inherited from class org.eclipse.jface.dialogs.Dialog

    blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS

    Fields inherited from class org.eclipse.jface.window.Window

    CANCEL, OK, resizeHasOccurred
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    AbstractSearchDialog(org.eclipse.swt.widgets.Shell parent)
    Initializes a new instance of class.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract void
    Changes filter input.
    void
    Clears info.
    protected void
    configureShell(org.eclipse.swt.widgets.Shell newShell)
     
    protected void
    createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
     
    protected org.eclipse.swt.widgets.Control
    createDialogArea(org.eclipse.swt.widgets.Composite parent)
     
    protected void
    createStatusArea(org.eclipse.swt.widgets.Composite parent)
    Create status area of the dialog
    protected abstract void
    doSearch(boolean backwardDirection)
    Runs search in specified direction.
    void
    setMessage(String message)
    Sets given message for dialog label.
    abstract void
    Updates visual controls according to the search availability.
    void
    Updates visual controls according to the filter data.

    Methods inherited from class org.eclipse.jface.dialogs.Dialog

    applyDialogFont, buttonPressed, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonBar, createContents, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, isResizable, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText

    Methods inherited from class org.eclipse.jface.window.Window

    canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager

    Methods inherited from class java.lang.Object

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

    • MARGIN_LARGE

      protected static final int MARGIN_LARGE
      See Also:
    • MIN_HEIGHT_FOR_INFO_AREA

      protected static final int MIN_HEIGHT_FOR_INFO_AREA
      See Also:
    • textFilter

      protected org.eclipse.swt.widgets.Text textFilter
    • buttonCaseSensitive

      protected org.eclipse.swt.widgets.Button buttonCaseSensitive
    • buttonSearch

      protected org.eclipse.swt.widgets.Button buttonSearch
    • buttonSearchBack

      protected org.eclipse.swt.widgets.Button buttonSearchBack
    • labelInfo

      protected org.eclipse.swt.widgets.Label labelInfo
  • Constructor Details

    • AbstractSearchDialog

      protected AbstractSearchDialog(org.eclipse.swt.widgets.Shell parent)
      Initializes a new instance of class.
      Parameters:
      parent - the parent shell, or null to create a top-level shell
  • Method Details

    • setMessage

      public void setMessage(String message)
      Sets given message for dialog label.
      Parameters:
      message - message to set, cannot be null
    • update

      public abstract void update()
      Updates visual controls according to the search availability.
    • updateFilterControls

      public void updateFilterControls(FilterData filterData)
      Updates visual controls according to the filter data.
      Parameters:
      filterData - the filter data, cannot be null
    • clearInfo

      public void clearInfo()
      Clears info.
    • configureShell

      protected void configureShell(org.eclipse.swt.widgets.Shell newShell)
      Overrides:
      configureShell in class org.eclipse.jface.window.Window
    • createDialogArea

      protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
      Overrides:
      createDialogArea in class org.eclipse.jface.dialogs.Dialog
    • createButtonsForButtonBar

      protected void createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
      Overrides:
      createButtonsForButtonBar in class org.eclipse.jface.dialogs.Dialog
    • createStatusArea

      protected void createStatusArea(org.eclipse.swt.widgets.Composite parent)
      Create status area of the dialog
      Parameters:
      parent - the parent composite, cannot be null
    • doSearch

      protected abstract void doSearch(boolean backwardDirection)
      Runs search in specified direction.
      Parameters:
      backwardDirection - flag indicating that search must be run in backward direction
    • changeFilter

      protected abstract void changeFilter()
      Changes filter input.