|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.rssowl.util.shop.WidgetShop
Factory class to tweak Widgets in RSSOwl
Field Summary | |
static int |
openDialogsCount
Global counter for all opened non-modal Dialogs. |
Constructor Summary | |
private |
WidgetShop()
This utility class constructor is hidden |
Method Summary | |
static Vector |
calculateStyleRanges(org.eclipse.swt.custom.StyledText textField,
Vector words,
org.eclipse.swt.graphics.Color foreground,
org.eclipse.swt.graphics.Color background,
int fontstyle,
boolean caseSensitive,
boolean underline)
From the given Vector of words calculate all StyleRanges using the Color and Font Style that is given. |
static void |
createWildCardMenu(org.eclipse.swt.widgets.Text text,
String[] wildcards)
Apply a wildcard popup menu to the text. |
static void |
highlightText(org.eclipse.swt.custom.StyledText textField,
Vector styleRanges)
Set the given StyleRanges from the Vector to the StyledText |
static void |
highlightText(org.eclipse.swt.custom.StyledText textField,
Vector words,
org.eclipse.swt.graphics.Color foreground,
org.eclipse.swt.graphics.Color background,
int fontstyle,
boolean caseSensitive,
boolean underline)
Change fontstyle / background / foreground of the given words adding a StyleRange to the given TextField. |
static void |
initMnemonics(org.eclipse.swt.widgets.Button[] buttons)
Set Mnemonics to the given Array of Buttons. |
static void |
initMnemonics(org.eclipse.swt.widgets.ToolItem[] items)
Set Mnemonics to the given Array of ToolItems. |
static boolean |
isset(org.eclipse.swt.widgets.Widget widget)
Check the given widget for being NULL or disposed. |
static boolean |
isWidget(Object obj)
Check the given Object for being a valid Widget |
static void |
setupDropSupport(org.eclipse.swt.widgets.Text text,
Runnable runOnDrop)
Setup Drop Support for the given Text Widget. |
static void |
tweakTextWidget(org.eclipse.swt.widgets.Text text)
Tweak the Text widget with adding listeners to call the selectAll() Method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static int openDialogsCount
Constructor Detail |
private WidgetShop()
Method Detail |
public static Vector calculateStyleRanges(org.eclipse.swt.custom.StyledText textField, Vector words, org.eclipse.swt.graphics.Color foreground, org.eclipse.swt.graphics.Color background, int fontstyle, boolean caseSensitive, boolean underline)
textField
- Textfield where the text is inwords
- Words to be highlightedforeground
- Color of the text-foregroundbackground
- Color of the text-backgroundfontstyle
- Fontstyle for the highlighted wordscaseSensitive
- FALSE if the case of the word to highlight should be
ignoredunderline
- If TRUE, underline the StyleRange
public static void createWildCardMenu(org.eclipse.swt.widgets.Text text, String[] wildcards)
text
- The control to append the menuwildcards
- The wildcards to add to the menupublic static void highlightText(org.eclipse.swt.custom.StyledText textField, Vector styleRanges)
textField
- Textfield where the text is instyleRanges
- Vector containing StyleRangespublic static void highlightText(org.eclipse.swt.custom.StyledText textField, Vector words, org.eclipse.swt.graphics.Color foreground, org.eclipse.swt.graphics.Color background, int fontstyle, boolean caseSensitive, boolean underline)
textField
- Textfield where the text is inwords
- Words to be highlightedforeground
- Color of the text-foregroundbackground
- Color of the text-backgroundfontstyle
- Fontstyle for the highlighted wordscaseSensitive
- FALSE if the case of the word to highlight should be
ignoredunderline
- If TRUE, underline the StyleRangepublic static void initMnemonics(org.eclipse.swt.widgets.Button[] buttons)
buttons
- The Buttonspublic static void initMnemonics(org.eclipse.swt.widgets.ToolItem[] items)
items
- The ToolItemspublic static boolean isset(org.eclipse.swt.widgets.Widget widget)
widget
- The widget to check
public static boolean isWidget(Object obj)
obj
- The Object to check
public static void setupDropSupport(org.eclipse.swt.widgets.Text text, Runnable runOnDrop)
text
- The Text Widget to enable Drop Support.runOnDrop
- The Runnable to be run after successfull Drop, or NULL.public static void tweakTextWidget(org.eclipse.swt.widgets.Text text)
text
- The Text widget to tweak
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |