|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jface.window.Window org.eclipse.jface.dialogs.Dialog net.sourceforge.rssowl.controller.dialog.SearchDialog
Class displays a Dialog to search for a phrase in a newsfeed or a category of newsfeeds. Search features: Entire word only, Regard case-sensitivity, Use regular expression
Nested Class Summary |
Nested classes inherited from class org.eclipse.jface.window.Window |
org.eclipse.jface.window.Window.IExceptionHandler |
Field Summary | |
private String |
dialogMessage
|
private static int |
dialogMinWidth
Min. width of the dialog in DLUs |
private org.eclipse.swt.custom.CLabel |
errorMessageLabel
|
static String |
lastSearch
Remember the last search |
private static Vector |
lastSearches
Remember all done searches in the running session |
private org.eclipse.swt.widgets.Button |
matchCaseSensitive
|
(package private) org.eclipse.swt.widgets.Button |
okButton
|
(package private) org.eclipse.swt.widgets.Button |
onlyWholeWords
|
(package private) org.eclipse.swt.widgets.Button |
regExSearch
|
(package private) org.eclipse.swt.widgets.Combo |
searchCombo
|
private String |
title
|
private String |
value
|
static boolean |
wasSearchCaseSensitive
Remember if last search was case sensitive |
static boolean |
wasSearchRegEx
Remember if last search used RegEx |
static boolean |
wasSearchWholeWord
Remember if last search was on whole word |
Fields inherited from class org.eclipse.jface.dialogs.Dialog |
buttonBar, dialogArea, DLG_IMG_ERROR, DLG_IMG_INFO, DLG_IMG_LOCKED, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING |
Fields inherited from class org.eclipse.jface.window.Window |
CANCEL, OK |
Constructor Summary | |
SearchDialog(org.eclipse.swt.widgets.Shell parentShell,
String dialogTitle,
String dialogMessage)
Creates an input dialog with OK and Cancel buttons. |
Method Summary | |
protected void |
buttonPressed(int buttonId)
|
protected void |
configureShell(org.eclipse.swt.widgets.Shell shell)
|
protected void |
createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
|
protected org.eclipse.swt.widgets.Control |
createDialogArea(org.eclipse.swt.widgets.Composite parent)
|
String |
getValue()
Returns the string typed into this input dialog. |
protected void |
initializeBounds()
|
protected void |
setButtonLayoutData(org.eclipse.swt.widgets.Button button)
Set the layout data of the button to a GridData with appropriate widths This method was slightly modified so that it is not setting a heightHint. |
protected void |
setErrorMessage(String errorMessage)
Set / unset the warning dialogMessage on the dialog |
Methods inherited from class org.eclipse.jface.dialogs.Dialog |
applyDialogFont, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonBar, createContents, dialogFontIsDefault, getButton, getButtonBar, getCancelButton, getDialogArea, getImage, getOKButton, initializeDialogUnits, okPressed, setButtonLayoutFormData |
Methods inherited from class org.eclipse.jface.window.Window |
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getInitialLocation, getInitialSize, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, open, setBlockOnOpen, setDefaultImage, setExceptionHandler, setReturnCode, setShellStyle, setWindowManager |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static boolean wasSearchCaseSensitive
public static boolean wasSearchRegEx
public static boolean wasSearchWholeWord
private static final int dialogMinWidth
public static String lastSearch
private static final Vector lastSearches
private String dialogMessage
private org.eclipse.swt.custom.CLabel errorMessageLabel
private org.eclipse.swt.widgets.Button matchCaseSensitive
private String title
private String value
org.eclipse.swt.widgets.Button okButton
org.eclipse.swt.widgets.Button onlyWholeWords
org.eclipse.swt.widgets.Button regExSearch
org.eclipse.swt.widgets.Combo searchCombo
Constructor Detail |
public SearchDialog(org.eclipse.swt.widgets.Shell parentShell, String dialogTitle, String dialogMessage)
Note that the open
method blocks for input dialogs.
parentShell
- the parent shelldialogTitle
- the dialog title, or null
if nonedialogMessage
- the dialog dialogMessage, or null
if
noneMethod Detail |
public String getValue()
protected void buttonPressed(int buttonId)
Dialog.buttonPressed(int)
protected void configureShell(org.eclipse.swt.widgets.Shell shell)
Window.configureShell(org.eclipse.swt.widgets.Shell)
protected void createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
Dialog.createButtonsForButtonBar(org.eclipse.swt.widgets.Composite)
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
Dialog.createDialogArea(org.eclipse.swt.widgets.Composite)
protected void initializeBounds()
Dialog.initializeBounds()
protected void setButtonLayoutData(org.eclipse.swt.widgets.Button button)
button
- The button to layoutprotected void setErrorMessage(String errorMessage)
errorMessage
- The warning dialogMessage or NULL for no warning
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |