|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
net.sourceforge.rssowl.controller.dialog.ToolBarDialog
public class ToolBarDialog
The ToolBar Dialog allows to customize the ToolBar. This includes the list of ToolItems to display and the order. In addition it is possible to add Separators between ToolItems. A dropdown allows to switch between "Icons and Text", "Text" and "Icons" display mode.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.eclipse.jface.window.Window |
|---|
org.eclipse.jface.window.Window.IExceptionHandler |
| Field Summary | |
|---|---|
private Button |
addSepButton
|
private static int |
APPLY_ID
Apply Button Id |
private Button |
applyButton
|
private Button |
cancelButton
|
private java.util.ArrayList |
defaultOrder
|
private static int |
DIALOG_WIDTH
Width of the dialog in DLUs |
private Button |
downButton
|
(package private) TableItem |
draggedItem
|
private DragSource |
dragSource
|
private DropTarget |
dropTarget
|
private java.util.HashMap |
itemIcons
|
(package private) Table |
itemTable
|
private Button |
okButton
|
private Quickview |
quickview
|
(package private) Button |
removeSepButton
|
private Button |
restoreDefaults
|
private static java.lang.String |
SEPARATOR_WINGS
Appended left and right to a Separator |
private Label |
separatorLabel
|
(package private) Combo |
showCombo
|
private Label |
showLabel
|
private java.lang.String |
title
|
private java.lang.String |
toolBarItems
|
private int |
toolBarMode
|
static java.lang.String |
TOOLITEM_CLOSE
ToolItem: Close |
static java.lang.String |
TOOLITEM_CLOSE_ALL
ToolItem: Close All |
static java.lang.String |
TOOLITEM_CLOSE_OTHERS
ToolItem: Close Others |
static java.lang.String |
TOOLITEM_EXPORT
ToolItem: Export |
static java.lang.String |
TOOLITEM_FAVORITES
ToolItem: Favorites |
static java.lang.String |
TOOLITEM_HISTORY
ToolItem: History |
static java.lang.String |
TOOLITEM_IMPORT
ToolItem: Import |
static java.lang.String |
TOOLITEM_MARK
ToolItem: Mark Read |
static java.lang.String |
TOOLITEM_NEW
ToolItem: New |
static java.lang.String |
TOOLITEM_NEWSTIP
ToolItem: NewsTip |
static java.lang.String |
TOOLITEM_NEXT
ToolItem: Next Message |
static java.lang.String |
TOOLITEM_NEXT_TAB
ToolItem: Next Tab |
static java.lang.String |
TOOLITEM_PREVIOUS_TAB
ToolItem: Previous Tab |
static java.lang.String |
TOOLITEM_RELOAD
ToolItem: Reload |
static java.lang.String |
TOOLITEM_SEARCH
ToolItem: Search |
static java.lang.String |
TOOLITEM_SEPARATOR
ToolItem: Separator |
static java.lang.String |
TOOLITEM_TOOLS
ToolItem: Tools |
private Button |
upButton
|
private boolean |
useSmallIcons
|
(package private) Button |
useSmallIconsCheck
|
| Fields inherited from class org.eclipse.jface.dialogs.Dialog |
|---|
blockedHandler, buttonBar, dialogArea, DLG_IMG_ERROR, 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 |
| Constructor Summary | |
|---|---|
ToolBarDialog(Quickview quickview,
Shell parentShell,
java.lang.String dialogTitle)
Initialize a new ToolBarDialog to customize the ToolBar. |
|
| Method Summary | |
|---|---|
(package private) void |
addSeparator()
Add a new Separator to the current selected Index. |
protected void |
buttonPressed(int buttonId)
|
protected void |
configureShell(Shell shell)
|
protected void |
createButtonsForButtonBar(Composite parent)
|
protected Control |
createDialogArea(Composite parent)
|
private TableItem |
createSeparator(int index)
Create a Separator as TableItem. |
void |
dispose()
Dispose the Images used for the Item Table and the DND Support. |
(package private) void |
fillTable(java.lang.String toolBarItems)
Fill the ToolBar item Table with the given Elements. |
private void |
flip(TableItem item1,
TableItem item2)
Copy all states of TableItem 1 into TableItem 2 and vice versa. |
static java.lang.String |
getDefaultToolBarItems()
Get the default ToolBar Items. |
private java.lang.String |
getItemStringValue()
Get the new ToolBar as String value. |
protected int |
getShellStyle()
|
java.lang.String |
getToolBarItems()
Get the new ToolBar Items. |
int |
getToolBarMode()
Get the new ToolBar Mode. |
private void |
initDefaultOrder()
Fill a List with the default Order of ToolItems, which are not Separators. |
protected void |
initializeBounds()
|
private void |
initItemIcons()
Fill a Map with Images that are representing the given ToolItem. |
boolean |
isUseSmallIcons()
|
(package private) void |
moveTableElementDown()
Replace the selected item with the item beyond it. |
(package private) void |
moveTableElementUp()
Replace the selected item with the item above it. |
(package private) void |
removeSeparator()
Remove the selected Separator. |
protected void |
setButtonLayoutData(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 |
setButtonLayoutData(Button button,
GridData data)
Set the layout data of the button to a GridData with appropriate heights and widths. |
void |
updateI18N()
Update translation of all String literals |
| 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, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getImage, getOKButton, initializeDialogUnits, okPressed, setBlockedHandler, setButtonLayoutFormData, shortenText |
| Methods inherited from class org.eclipse.jface.window.Window |
|---|
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getInitialLocation, getInitialSize, getLayout, getParentShell, getReturnCode, getShell, getShellListener, 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 Detail |
|---|
public static final java.lang.String TOOLITEM_CLOSE
public static final java.lang.String TOOLITEM_CLOSE_ALL
public static final java.lang.String TOOLITEM_CLOSE_OTHERS
public static final java.lang.String TOOLITEM_EXPORT
public static final java.lang.String TOOLITEM_FAVORITES
public static final java.lang.String TOOLITEM_HISTORY
public static final java.lang.String TOOLITEM_IMPORT
public static final java.lang.String TOOLITEM_MARK
public static final java.lang.String TOOLITEM_NEW
public static final java.lang.String TOOLITEM_NEWSTIP
public static final java.lang.String TOOLITEM_NEXT
public static final java.lang.String TOOLITEM_NEXT_TAB
public static final java.lang.String TOOLITEM_PREVIOUS_TAB
public static final java.lang.String TOOLITEM_RELOAD
public static final java.lang.String TOOLITEM_SEARCH
public static final java.lang.String TOOLITEM_SEPARATOR
public static final java.lang.String TOOLITEM_TOOLS
private static final int APPLY_ID
private static final int DIALOG_WIDTH
private static final java.lang.String SEPARATOR_WINGS
private Button addSepButton
private Button applyButton
private Button cancelButton
private java.util.ArrayList defaultOrder
private Button downButton
private DragSource dragSource
private DropTarget dropTarget
private java.util.HashMap itemIcons
private Button okButton
private Quickview quickview
private Button restoreDefaults
private Label separatorLabel
private Label showLabel
private java.lang.String title
private java.lang.String toolBarItems
private int toolBarMode
private Button upButton
private boolean useSmallIcons
TableItem draggedItem
Table itemTable
Button removeSepButton
Combo showCombo
Button useSmallIconsCheck
| Constructor Detail |
|---|
public ToolBarDialog(Quickview quickview,
Shell parentShell,
java.lang.String dialogTitle)
quickview - The ToolBar management control.parentShell - The parent Shell of this Dialog.dialogTitle - The Title for this Dialog.| Method Detail |
|---|
public static java.lang.String getDefaultToolBarItems()
public void dispose()
public java.lang.String getToolBarItems()
public int getToolBarMode()
public boolean isUseSmallIcons()
public void updateI18N()
ITranslatable
updateI18N in interface ITranslatableITranslatable.updateI18N()private TableItem createSeparator(int index)
index - The Index this Separator will be inserted to.
private void flip(TableItem item1,
TableItem item2)
item1 - The first item to Flip.item2 - The second item to Flip.private java.lang.String getItemStringValue()
private void initDefaultOrder()
private void initItemIcons()
protected void buttonPressed(int buttonId)
buttonPressed in class org.eclipse.jface.dialogs.DialogDialog.buttonPressed(int)protected void configureShell(Shell shell)
configureShell in class org.eclipse.jface.window.WindowWindow.configureShell(org.eclipse.swt.widgets.Shell)protected void createButtonsForButtonBar(Composite parent)
createButtonsForButtonBar in class org.eclipse.jface.dialogs.DialogDialog.createButtonsForButtonBar(org.eclipse.swt.widgets.Composite)protected Control createDialogArea(Composite parent)
createDialogArea in class org.eclipse.jface.dialogs.DialogDialog.createDialogArea(org.eclipse.swt.widgets.Composite)protected int getShellStyle()
getShellStyle in class org.eclipse.jface.window.WindowWindow.getShellStyle()protected void initializeBounds()
initializeBounds in class org.eclipse.jface.dialogs.DialogDialog.initializeBounds()protected void setButtonLayoutData(Button button)
setButtonLayoutData in class org.eclipse.jface.dialogs.Dialogbutton - The button to layout
protected void setButtonLayoutData(Button button,
GridData data)
button - The button to set the layoutdatadata - The GridData to usevoid addSeparator()
void fillTable(java.lang.String toolBarItems)
toolBarItems - A String describing the ToolBar items.void moveTableElementDown()
void moveTableElementUp()
void removeSeparator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||