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 SummaryNested classes/interfaces inherited from class org.eclipse.jface.window.Windoworg.eclipse.jface.window.Window.IExceptionHandler
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected org.eclipse.swt.widgets.Buttonprotected org.eclipse.swt.widgets.Buttonprotected org.eclipse.swt.widgets.Buttonprotected org.eclipse.swt.widgets.Labelprotected static final intprotected static final intprotected org.eclipse.swt.widgets.TextFields inherited from class org.eclipse.jface.dialogs.DialogblockedHandler, 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, ELLIPSISFields inherited from class org.eclipse.jface.window.WindowCANCEL, OK, resizeHasOccurred
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedAbstractSearchDialog(org.eclipse.swt.widgets.Shell parent) Initializes a new instance of class.
- 
Method SummaryModifier and TypeMethodDescriptionprotected abstract voidChanges filter input.voidClears info.protected voidconfigureShell(org.eclipse.swt.widgets.Shell newShell) protected voidcreateButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent) protected org.eclipse.swt.widgets.ControlcreateDialogArea(org.eclipse.swt.widgets.Composite parent) protected voidcreateStatusArea(org.eclipse.swt.widgets.Composite parent) Create status area of the dialogprotected abstract voiddoSearch(boolean backwardDirection) Runs search in specified direction.voidsetMessage(String message) Sets given message for dialog label.abstract voidupdate()Updates visual controls according to the search availability.voidupdateFilterControls(FilterData filterData) Updates visual controls according to the filter data.Methods inherited from class org.eclipse.jface.dialogs.DialogapplyDialogFont, 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, shortenTextMethods inherited from class org.eclipse.jface.window.WindowcanHandleShellCloseEvent, 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
- 
Field Details- 
MARGIN_LARGEprotected static final int MARGIN_LARGE- See Also:
 
- 
MIN_HEIGHT_FOR_INFO_AREAprotected static final int MIN_HEIGHT_FOR_INFO_AREA- See Also:
 
- 
textFilterprotected org.eclipse.swt.widgets.Text textFilter
- 
buttonCaseSensitiveprotected org.eclipse.swt.widgets.Button buttonCaseSensitive
- 
buttonSearchprotected org.eclipse.swt.widgets.Button buttonSearch
- 
buttonSearchBackprotected org.eclipse.swt.widgets.Button buttonSearchBack
- 
labelInfoprotected org.eclipse.swt.widgets.Label labelInfo
 
- 
- 
Constructor Details- 
AbstractSearchDialogprotected AbstractSearchDialog(org.eclipse.swt.widgets.Shell parent) Initializes a new instance of class.- Parameters:
- parent- the parent shell, or- nullto create a top-level shell
 
 
- 
- 
Method Details- 
setMessageSets given message for dialog label.- Parameters:
- message- message to set, cannot be- null
 
- 
updatepublic abstract void update()Updates visual controls according to the search availability.
- 
updateFilterControlsUpdates visual controls according to the filter data.- Parameters:
- filterData- the filter data, cannot be- null
 
- 
clearInfopublic void clearInfo()Clears info.
- 
configureShellprotected void configureShell(org.eclipse.swt.widgets.Shell newShell) - Overrides:
- configureShellin class- org.eclipse.jface.window.Window
 
- 
createDialogAreaprotected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent) - Overrides:
- createDialogAreain class- org.eclipse.jface.dialogs.Dialog
 
- 
createButtonsForButtonBarprotected void createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent) - Overrides:
- createButtonsForButtonBarin class- org.eclipse.jface.dialogs.Dialog
 
- 
createStatusAreaprotected void createStatusArea(org.eclipse.swt.widgets.Composite parent) Create status area of the dialog- Parameters:
- parent- the parent composite, cannot be- null
 
- 
doSearchprotected abstract void doSearch(boolean backwardDirection) Runs search in specified direction.- Parameters:
- backwardDirection- flag indicating that search must be run in backward direction
 
- 
changeFilterprotected abstract void changeFilter()Changes filter input.
 
-