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
FieldsModifier 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.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, ELLIPSISFields inherited from class org.eclipse.jface.window.Window
CANCEL, OK, resizeHasOccurred -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSearchDialog(org.eclipse.swt.widgets.Shell parent) Initializes a new instance of class. -
Method Summary
Modifier 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.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, shortenTextMethods 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
-
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, ornullto create a top-level shell
-
-
Method Details
-
setMessage
Sets given message for dialog label.- Parameters:
message- message to set, cannot benull
-
update
public abstract void update()Updates visual controls according to the search availability. -
updateFilterControls
Updates visual controls according to the filter data.- Parameters:
filterData- the filter data, cannot benull
-
clearInfo
public void clearInfo()Clears info. -
configureShell
protected void configureShell(org.eclipse.swt.widgets.Shell newShell) - Overrides:
configureShellin classorg.eclipse.jface.window.Window
-
createDialogArea
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent) - Overrides:
createDialogAreain classorg.eclipse.jface.dialogs.Dialog
-
createButtonsForButtonBar
protected void createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent) - Overrides:
createButtonsForButtonBarin classorg.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 benull
-
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.
-