net.sourceforge.rssowl.controller.dialog
Class FavoriteDialog
java.lang.Object
org.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
net.sourceforge.rssowl.controller.dialog.FavoriteDialog
- public class FavoriteDialog
- extends org.eclipse.jface.dialogs.Dialog
The edit favorite dialog allows to change and view settings of a favorite. It
uses the same layout as the preferences dialog with a tree on the left side
to select items.
- Version:
- 1.1.3
- Author:
- Benjamin Pasero
Nested classes inherited from class org.eclipse.jface.window.Window |
org.eclipse.jface.window.Window.IExceptionHandler |
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 |
FavoriteDialog(Favorite rssOwlFavorite,
org.eclipse.swt.widgets.Shell parentShell,
String dialogTitle)
Creates a Dialog with a tab showing different categories. |
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, setWindowManager |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
isEditFavorite
public static boolean isEditFavorite
- Flag to set if dialog is in edit or new mode
dialogMinWidth
private static final int dialogMinWidth
- Min. width of the dialog in DLUs
- See Also:
- Constant Field Values
editFavProps
private EditFavoriteProperties editFavProps
infoItem
private org.eclipse.swt.widgets.TabItem infoItem
rssOwlFavorite
private Favorite rssOwlFavorite
settingsItem
private org.eclipse.swt.widgets.TabItem settingsItem
tabFolder
private org.eclipse.swt.widgets.TabFolder tabFolder
title
private String title
FavoriteDialog
public FavoriteDialog(Favorite rssOwlFavorite,
org.eclipse.swt.widgets.Shell parentShell,
String dialogTitle)
- Creates a Dialog with a tab showing different categories. Each selected
tabitem will open a view to change some settings. Note that the dialog will
have no visual representation (no widgets) until it is told to open.
Note that the open
method blocks for input dialogs.
- Parameters:
rssOwlFavorite
- The favorite that is editedparentShell
- the parent shelldialogTitle
- the dialog title, or null
if none
getUpdatedFavorite
public Favorite getUpdatedFavorite()
- Get the updated favorite from this dialog
- Returns:
- Favorite The updated favorite
buttonPressed
protected void buttonPressed(int buttonId)
- See Also:
Dialog.buttonPressed(int)
configureShell
protected void configureShell(org.eclipse.swt.widgets.Shell shell)
- See Also:
Window.configureShell(org.eclipse.swt.widgets.Shell)
createButtonsForButtonBar
protected void createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
- See Also:
Dialog.createButtonsForButtonBar(org.eclipse.swt.widgets.Composite)
createDialogArea
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
- See Also:
Dialog.createDialogArea(org.eclipse.swt.widgets.Composite)
initializeBounds
protected void initializeBounds()
- See Also:
Dialog.initializeBounds()
initializeBounds
protected void initializeBounds(boolean updateLocation)
- Set size and location of the dialog
- Parameters:
updateLocation
- If TRUE also update the location of the dialog
setButtonLayoutData
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.
- Parameters:
button
- The button to layout
setShellStyle
protected void setShellStyle(int newShellStyle)
- See Also:
Window.setShellStyle(int)
RSSOwl - RSS / RDF / Atom Newsreader