Statistics
| Revision:

gvsig-tools / org.gvsig.tools / library / trunk / org.gvsig.tools / org.gvsig.tools.swing / org.gvsig.tools.swing.api / src / main / java / org / gvsig / tools / swing / api / ToolsSwingManager.java @ 2847

History | View | Annotate | Download (35.8 KB)

1

    
2
package org.gvsig.tools.swing.api;
3

    
4
import java.awt.Color;
5
import java.awt.Dimension;
6
import java.awt.Image;
7
import java.awt.event.ActionListener;
8
import java.awt.image.BufferedImage;
9
import java.io.File;
10
import java.sql.Time;
11
import javax.swing.AbstractButton;
12
import javax.swing.ComboBoxModel;
13
import javax.swing.Icon;
14
import javax.swing.JButton;
15
import javax.swing.JComboBox;
16
import javax.swing.JComponent;
17
import javax.swing.JLabel;
18
import javax.swing.JList;
19
import javax.swing.JOptionPane;
20
import javax.swing.JScrollPane;
21
import javax.swing.JSlider;
22
import javax.swing.JSpinner;
23
import javax.swing.JTabbedPane;
24
import javax.swing.JTable;
25
import javax.swing.JTree;
26
import javax.swing.table.TableModel;
27
import javax.swing.text.JTextComponent;
28
import javax.swing.tree.TreeModel;
29
import org.gvsig.tools.bookmarksandhistory.Bookmarks;
30
import org.gvsig.tools.bookmarksandhistory.History;
31
import org.gvsig.tools.locator.LocatorException;
32
import org.gvsig.tools.swing.api.bookmarkshistory.BookmarksController;
33
import org.gvsig.tools.swing.api.bookmarkshistory.ComponentWithHistoryAndBookmarkController;
34
import org.gvsig.tools.swing.api.bookmarkshistory.HistoryController;
35
import org.gvsig.tools.swing.api.bookmarkshistory.TextFieldWithHistoryAndBookmarkController;
36
import org.gvsig.tools.swing.api.pickercontroller.CharsetPickerController;
37
import org.gvsig.tools.swing.api.pickercontroller.ColorPickerController;
38
import org.gvsig.tools.swing.api.pickercontroller.DataTypePickerController;
39
import org.gvsig.tools.swing.api.pickercontroller.DatePickerController;
40
import org.gvsig.tools.swing.api.pickercontroller.FilePickerController;
41
import org.gvsig.tools.swing.api.pickercontroller.FolderPickerController;
42
import org.gvsig.tools.swing.api.pickercontroller.PickerController;
43
import org.gvsig.tools.swing.api.windowmanager.WindowManager;
44

    
45
public interface ToolsSwingManager {
46

    
47
    public static final String COLOR_BUTTON_BACKGROUND = "Button.background";
48
    public static final String COLOR_BUTTON_DARKSHADOW = "Button.darkShadow";
49
    public static final String COLOR_BUTTON_DISABLEDTEXT = "Button.disabledText";
50
    public static final String COLOR_BUTTON_FOREGROUND = "Button.foreground";
51
    public static final String COLOR_BUTTON_HIGHLIGHT = "Button.highlight";
52
    public static final String COLOR_BUTTON_LIGHT = "Button.light";
53
    public static final String COLOR_BUTTON_SELECT = "Button.select";
54
    public static final String COLOR_BUTTON_SHADOW = "Button.shadow";
55
    public static final String COLOR_CHECKBOX_BACKGROUND = "CheckBox.background";
56
    public static final String COLOR_CHECKBOX_DISABLEDTEXT = "CheckBox.disabledText";
57
    public static final String COLOR_CHECKBOX_FOREGROUND = "CheckBox.foreground";
58
    public static final String COLOR_CHECKBOX_SELECT = "CheckBox.select";
59
    public static final String COLOR_CHECKBOXMENUITEM_ACCELERATORFOREGROUND = "CheckBoxMenuItem.acceleratorForeground";
60
    public static final String COLOR_CHECKBOXMENUITEM_ACCELERATORSELECTIONFOREGROUND = "CheckBoxMenuItem.acceleratorSelectionForeground";
61
    public static final String COLOR_CHECKBOXMENUITEM_BACKGROUND = "CheckBoxMenuItem.background";
62
    public static final String COLOR_CHECKBOXMENUITEM_DISABLEDBACKGROUND = "CheckBoxMenuItem.disabledBackground";
63
    public static final String COLOR_CHECKBOXMENUITEM_DISABLEDFOREGROUND = "CheckBoxMenuItem.disabledForeground";
64
    public static final String COLOR_CHECKBOXMENUITEM_FOREGROUND = "CheckBoxMenuItem.foreground";
65
    public static final String COLOR_CHECKBOXMENUITEM_SELECTIONBACKGROUND = "CheckBoxMenuItem.selectionBackground";
66
    public static final String COLOR_CHECKBOXMENUITEM_SELECTIONFOREGROUND = "CheckBoxMenuItem.selectionForeground";
67
    public static final String COLOR_COLORCHOOSER_BACKGROUND = "ColorChooser.background";
68
    public static final String COLOR_COLORCHOOSER_FOREGROUND = "ColorChooser.foreground";
69
    public static final String COLOR_COLORCHOOSER_SWATCHESDEFAULTRECENTCOLOR = "ColorChooser.swatchesDefaultRecentColor";
70
    public static final String COLOR_COMBOBOX_BACKGROUND = "ComboBox.background";
71
    public static final String COLOR_COMBOBOX_BUTTONBACKGROUND = "ComboBox.buttonBackground";
72
    public static final String COLOR_COMBOBOX_BUTTONDARKSHADOW = "ComboBox.buttonDarkShadow";
73
    public static final String COLOR_COMBOBOX_BUTTONHIGHLIGHT = "ComboBox.buttonHighlight";
74
    public static final String COLOR_COMBOBOX_BUTTONSHADOW = "ComboBox.buttonShadow";
75
    public static final String COLOR_COMBOBOX_DISABLEDBACKGROUND = "ComboBox.disabledBackground";
76
    public static final String COLOR_COMBOBOX_DISABLEDFOREGROUND = "ComboBox.disabledForeground";
77
    public static final String COLOR_COMBOBOX_FOREGROUND = "ComboBox.foreground";
78
    public static final String COLOR_COMBOBOX_SELECTIONBACKGROUND = "ComboBox.selectionBackground";
79
    public static final String COLOR_COMBOBOX_SELECTIONFOREGROUND = "ComboBox.selectionForeground";
80
    public static final String COLOR_DESKTOP_BACKGROUND = "Desktop.background";
81
    public static final String COLOR_EDITORPANE_BACKGROUND = "EditorPane.background";
82
    public static final String COLOR_EDITORPANE_CARETFOREGROUND = "EditorPane.caretForeground";
83
    public static final String COLOR_EDITORPANE_FOREGROUND = "EditorPane.foreground";
84
    public static final String COLOR_EDITORPANE_INACTIVEBACKGROUND = "EditorPane.inactiveBackground";
85
    public static final String COLOR_EDITORPANE_INACTIVEFOREGROUND = "EditorPane.inactiveForeground";
86
    public static final String COLOR_EDITORPANE_SELECTIONBACKGROUND = "EditorPane.selectionBackground";
87
    public static final String COLOR_EDITORPANE_SELECTIONFOREGROUND = "EditorPane.selectionForeground";
88
    public static final String COLOR_FOCUS_COLOR = "Focus.color";
89
    public static final String COLOR_FORMATTEDTEXTFIELD_BACKGROUND = "FormattedTextField.background";
90
    public static final String COLOR_FORMATTEDTEXTFIELD_CARETFOREGROUND = "FormattedTextField.caretForeground";
91
    public static final String COLOR_FORMATTEDTEXTFIELD_FOREGROUND = "FormattedTextField.foreground";
92
    public static final String COLOR_FORMATTEDTEXTFIELD_INACTIVEBACKGROUND = "FormattedTextField.inactiveBackground";
93
    public static final String COLOR_FORMATTEDTEXTFIELD_INACTIVEFOREGROUND = "FormattedTextField.inactiveForeground";
94
    public static final String COLOR_FORMATTEDTEXTFIELD_SELECTIONBACKGROUND = "FormattedTextField.selectionBackground";
95
    public static final String COLOR_FORMATTEDTEXTFIELD_SELECTIONFOREGROUND = "FormattedTextField.selectionForeground";
96
    public static final String COLOR_INTERNALFRAME_ACTIVETITLEBACKGROUND = "InternalFrame.activeTitleBackground";
97
    public static final String COLOR_INTERNALFRAME_ACTIVETITLEFOREGROUND = "InternalFrame.activeTitleForeground";
98
    public static final String COLOR_INTERNALFRAME_BACKGROUND = "InternalFrame.background";
99
    public static final String COLOR_INTERNALFRAME_BORDERCOLOR = "InternalFrame.borderColor";
100
    public static final String COLOR_INTERNALFRAME_BORDERDARKSHADOW = "InternalFrame.borderDarkShadow";
101
    public static final String COLOR_INTERNALFRAME_BORDERHIGHLIGHT = "InternalFrame.borderHighlight";
102
    public static final String COLOR_INTERNALFRAME_BORDERLIGHT = "InternalFrame.borderLight";
103
    public static final String COLOR_INTERNALFRAME_BORDERSHADOW = "InternalFrame.borderShadow";
104
    public static final String COLOR_INTERNALFRAME_INACTIVETITLEBACKGROUND = "InternalFrame.inactiveTitleBackground";
105
    public static final String COLOR_INTERNALFRAME_INACTIVETITLEFOREGROUND = "InternalFrame.inactiveTitleForeground";
106
    public static final String COLOR_INTERNALFRAME_OPTIONDIALOGBACKGROUND = "InternalFrame.optionDialogBackground";
107
    public static final String COLOR_INTERNALFRAME_PALETTEBACKGROUND = "InternalFrame.paletteBackground";
108
    public static final String COLOR_LABEL_BACKGROUND = "Label.background";
109
    public static final String COLOR_LABEL_DISABLEDFOREGROUND = "Label.disabledForeground";
110
    public static final String COLOR_LABEL_DISABLEDSHADOW = "Label.disabledShadow";
111
    public static final String COLOR_LABEL_FOREGROUND = "Label.foreground";
112
    public static final String COLOR_LIST_BACKGROUND = "List.background";
113
    public static final String COLOR_LIST_FOREGROUND = "List.foreground";
114
    public static final String COLOR_LIST_SELECTIONBACKGROUND = "List.selectionBackground";
115
    public static final String COLOR_LIST_SELECTIONFOREGROUND = "List.selectionForeground";
116
    public static final String COLOR_MENU_ACCELERATORFOREGROUND = "Menu.acceleratorForeground";
117
    public static final String COLOR_MENU_ACCELERATORSELECTIONFOREGROUND = "Menu.acceleratorSelectionForeground";
118
    public static final String COLOR_MENU_BACKGROUND = "Menu.background";
119
    public static final String COLOR_MENU_DISABLEDBACKGROUND = "Menu.disabledBackground";
120
    public static final String COLOR_MENU_DISABLEDFOREGROUND = "Menu.disabledForeground";
121
    public static final String COLOR_MENU_FOREGROUND = "Menu.foreground";
122
    public static final String COLOR_MENU_SELECTIONBACKGROUND = "Menu.selectionBackground";
123
    public static final String COLOR_MENU_SELECTIONFOREGROUND = "Menu.selectionForeground";
124
    public static final String COLOR_MENUBAR_BACKGROUND = "MenuBar.background";
125
    public static final String COLOR_MENUBAR_DISABLEDBACKGROUND = "MenuBar.disabledBackground";
126
    public static final String COLOR_MENUBAR_DISABLEDFOREGROUND = "MenuBar.disabledForeground";
127
    public static final String COLOR_MENUBAR_FOREGROUND = "MenuBar.foreground";
128
    public static final String COLOR_MENUBAR_HIGHLIGHT = "MenuBar.highlight";
129
    public static final String COLOR_MENUBAR_SELECTIONBACKGROUND = "MenuBar.selectionBackground";
130
    public static final String COLOR_MENUBAR_SELECTIONFOREGROUND = "MenuBar.selectionForeground";
131
    public static final String COLOR_MENUBAR_SHADOW = "MenuBar.shadow";
132
    public static final String COLOR_MENUITEM_ACCELERATORFOREGROUND = "MenuItem.acceleratorForeground";
133
    public static final String COLOR_MENUITEM_ACCELERATORSELECTIONFOREGROUND = "MenuItem.acceleratorSelectionForeground";
134
    public static final String COLOR_MENUITEM_BACKGROUND = "MenuItem.background";
135
    public static final String COLOR_MENUITEM_DISABLEDBACKGROUND = "MenuItem.disabledBackground";
136
    public static final String COLOR_MENUITEM_DISABLEDFOREGROUND = "MenuItem.disabledForeground";
137
    public static final String COLOR_MENUITEM_FOREGROUND = "MenuItem.foreground";
138
    public static final String COLOR_MENUITEM_SELECTIONBACKGROUND = "MenuItem.selectionBackground";
139
    public static final String COLOR_MENUITEM_SELECTIONFOREGROUND = "MenuItem.selectionForeground";
140
    public static final String COLOR_OPTIONPANE_BACKGROUND = "OptionPane.background";
141
    public static final String COLOR_OPTIONPANE_FOREGROUND = "OptionPane.foreground";
142
    public static final String COLOR_OPTIONPANE_MESSAGEFOREGROUND = "OptionPane.messageForeground";
143
    public static final String COLOR_PANEL_BACKGROUND = "Panel.background";
144
    public static final String COLOR_PANEL_FOREGROUND = "Panel.foreground";
145
    public static final String COLOR_PASSWORDFIELD_BACKGROUND = "PasswordField.background";
146
    public static final String COLOR_PASSWORDFIELD_CARETFOREGROUND = "PasswordField.caretForeground";
147
    public static final String COLOR_PASSWORDFIELD_FOREGROUND = "PasswordField.foreground";
148
    public static final String COLOR_PASSWORDFIELD_INACTIVEBACKGROUND = "PasswordField.inactiveBackground";
149
    public static final String COLOR_PASSWORDFIELD_INACTIVEFOREGROUND = "PasswordField.inactiveForeground";
150
    public static final String COLOR_PASSWORDFIELD_SELECTIONBACKGROUND = "PasswordField.selectionBackground";
151
    public static final String COLOR_PASSWORDFIELD_SELECTIONFOREGROUND = "PasswordField.selectionForeground";
152
    public static final String COLOR_POPUPMENU_BACKGROUND = "PopupMenu.background";
153
    public static final String COLOR_POPUPMENU_FOREGROUND = "PopupMenu.foreground";
154
    public static final String COLOR_POPUPMENU_SELECTIONBACKGROUND = "PopupMenu.selectionBackground";
155
    public static final String COLOR_POPUPMENU_SELECTIONFOREGROUND = "PopupMenu.selectionForeground";
156
    public static final String COLOR_PROGRESSBAR_BACKGROUND = "ProgressBar.background";
157
    public static final String COLOR_PROGRESSBAR_FOREGROUND = "ProgressBar.foreground";
158
    public static final String COLOR_PROGRESSBAR_SELECTIONBACKGROUND = "ProgressBar.selectionBackground";
159
    public static final String COLOR_PROGRESSBAR_SELECTIONFOREGROUND = "ProgressBar.selectionForeground";
160
    public static final String COLOR_RADIOBUTTON_BACKGROUND = "RadioButton.background";
161
    public static final String COLOR_RADIOBUTTON_DARKSHADOW = "RadioButton.darkShadow";
162
    public static final String COLOR_RADIOBUTTON_DISABLEDTEXT = "RadioButton.disabledText";
163
    public static final String COLOR_RADIOBUTTON_FOREGROUND = "RadioButton.foreground";
164
    public static final String COLOR_RADIOBUTTON_HIGHLIGHT = "RadioButton.highlight";
165
    public static final String COLOR_RADIOBUTTON_LIGHT = "RadioButton.light";
166
    public static final String COLOR_RADIOBUTTON_SELECT = "RadioButton.select";
167
    public static final String COLOR_RADIOBUTTON_SHADOW = "RadioButton.shadow";
168
    public static final String COLOR_RADIOBUTTONMENUITEM_ACCELERATORFOREGROUND = "RadioButtonMenuItem.acceleratorForeground";
169
    public static final String COLOR_RADIOBUTTONMENUITEM_ACCELERATORSELECTIONFOREGROUND = "RadioButtonMenuItem.acceleratorSelectionForeground";
170
    public static final String COLOR_RADIOBUTTONMENUITEM_BACKGROUND = "RadioButtonMenuItem.background";
171
    public static final String COLOR_RADIOBUTTONMENUITEM_DISABLEDBACKGROUND = "RadioButtonMenuItem.disabledBackground";
172
    public static final String COLOR_RADIOBUTTONMENUITEM_DISABLEDFOREGROUND = "RadioButtonMenuItem.disabledForeground";
173
    public static final String COLOR_RADIOBUTTONMENUITEM_FOREGROUND = "RadioButtonMenuItem.foreground";
174
    public static final String COLOR_RADIOBUTTONMENUITEM_SELECTIONBACKGROUND = "RadioButtonMenuItem.selectionBackground";
175
    public static final String COLOR_RADIOBUTTONMENUITEM_SELECTIONFOREGROUND = "RadioButtonMenuItem.selectionForeground";
176
    public static final String COLOR_SCROLLBAR_BACKGROUND = "ScrollBar.background";
177
    public static final String COLOR_SCROLLBAR_FOREGROUND = "ScrollBar.foreground";
178
    public static final String COLOR_SCROLLBAR_THUMB = "ScrollBar.thumb";
179
    public static final String COLOR_SCROLLBAR_THUMBDARKSHADOW = "ScrollBar.thumbDarkShadow";
180
    public static final String COLOR_SCROLLBAR_THUMBHIGHLIGHT = "ScrollBar.thumbHighlight";
181
    public static final String COLOR_SCROLLBAR_THUMBSHADOW = "ScrollBar.thumbShadow";
182
    public static final String COLOR_SCROLLBAR_TRACK = "ScrollBar.track";
183
    public static final String COLOR_SCROLLBAR_TRACKHIGHLIGHT = "ScrollBar.trackHighlight";
184
    public static final String COLOR_SCROLLPANE_BACKGROUND = "ScrollPane.background";
185
    public static final String COLOR_SCROLLPANE_FOREGROUND = "ScrollPane.foreground";
186
    public static final String COLOR_SEPARATOR_FOREGROUND = "Separator.foreground";
187
    public static final String COLOR_SEPARATOR_HIGHLIGHT = "Separator.highlight";
188
    public static final String COLOR_SEPARATOR_SHADOW = "Separator.shadow";
189
    public static final String COLOR_SLIDER_BACKGROUND = "Slider.background";
190
    public static final String COLOR_SLIDER_FOCUS = "Slider.focus";
191
    public static final String COLOR_SLIDER_FOREGROUND = "Slider.foreground";
192
    public static final String COLOR_SLIDER_HIGHLIGHT = "Slider.highlight";
193
    public static final String COLOR_SLIDER_SHADOW = "Slider.shadow";
194
    public static final String COLOR_SLIDER_TICKCOLOR = "Slider.tickColor";
195
    public static final String COLOR_SPINNER_BACKGROUND = "Spinner.background";
196
    public static final String COLOR_SPINNER_FOREGROUND = "Spinner.foreground";
197
    public static final String COLOR_SPLITPANE_BACKGROUND = "SplitPane.background";
198
    public static final String COLOR_SPLITPANE_DARKSHADOW = "SplitPane.darkShadow";
199
    public static final String COLOR_SPLITPANE_HIGHLIGHT = "SplitPane.highlight";
200
    public static final String COLOR_SPLITPANE_SHADOW = "SplitPane.shadow";
201
    public static final String COLOR_SPLITPANEDIVIDER_DRAGGINGCOLOR = "SplitPaneDivider.draggingColor";
202
    public static final String COLOR_TABBEDPANE_BACKGROUND = "TabbedPane.background";
203
    public static final String COLOR_TABBEDPANE_DARKSHADOW = "TabbedPane.darkShadow";
204
    public static final String COLOR_TABBEDPANE_FOCUS = "TabbedPane.focus";
205
    public static final String COLOR_TABBEDPANE_FOREGROUND = "TabbedPane.foreground";
206
    public static final String COLOR_TABBEDPANE_HIGHLIGHT = "TabbedPane.highlight";
207
    public static final String COLOR_TABBEDPANE_LIGHT = "TabbedPane.light";
208
    public static final String COLOR_TABBEDPANE_SHADOW = "TabbedPane.shadow";
209
    public static final String COLOR_TABLE_BACKGROUND = "Table.background";
210
    public static final String COLOR_TABLE_FOCUSCELLBACKGROUND = "Table.focusCellBackground";
211
    public static final String COLOR_TABLE_FOCUSCELLFOREGROUND = "Table.focusCellForeground";
212
    public static final String COLOR_TABLE_FOREGROUND = "Table.foreground";
213
    public static final String COLOR_TABLE_GRIDCOLOR = "Table.gridColor";
214
    public static final String COLOR_TABLE_SELECTIONBACKGROUND = "Table.selectionBackground";
215
    public static final String COLOR_TABLE_SELECTIONFOREGROUND = "Table.selectionForeground";
216
    public static final String COLOR_TABLEHEADER_BACKGROUND = "TableHeader.background";
217
    public static final String COLOR_TABLEHEADER_FOREGROUND = "TableHeader.foreground";
218
    public static final String COLOR_TEXTAREA_BACKGROUND = "TextArea.background";
219
    public static final String COLOR_TEXTAREA_CARETFOREGROUND = "TextArea.caretForeground";
220
    public static final String COLOR_TEXTAREA_FOREGROUND = "TextArea.foreground";
221
    public static final String COLOR_TEXTAREA_INACTIVEBACKGROUND = "TextArea.inactiveBackground";
222
    public static final String COLOR_TEXTAREA_INACTIVEFOREGROUND = "TextArea.inactiveForeground";
223
    public static final String COLOR_TEXTAREA_SELECTIONBACKGROUND = "TextArea.selectionBackground";
224
    public static final String COLOR_TEXTAREA_SELECTIONFOREGROUND = "TextArea.selectionForeground";
225
    public static final String COLOR_TEXTCOMPONENT_SELECTIONBACKGROUNDINACTIVE = "TextComponent.selectionBackgroundInactive";
226
    public static final String COLOR_TEXTFIELD_BACKGROUND = "TextField.background";
227
    public static final String COLOR_TEXTFIELD_CARETFOREGROUND = "TextField.caretForeground";
228
    public static final String COLOR_TEXTFIELD_DARKSHADOW = "TextField.darkShadow";
229
    public static final String COLOR_TEXTFIELD_FOREGROUND = "TextField.foreground";
230
    public static final String COLOR_TEXTFIELD_HIGHLIGHT = "TextField.highlight";
231
    public static final String COLOR_TEXTFIELD_INACTIVEBACKGROUND = "TextField.inactiveBackground";
232
    public static final String COLOR_TEXTFIELD_INACTIVEFOREGROUND = "TextField.inactiveForeground";
233
    public static final String COLOR_TEXTFIELD_LIGHT = "TextField.light";
234
    public static final String COLOR_TEXTFIELD_SELECTIONBACKGROUND = "TextField.selectionBackground";
235
    public static final String COLOR_TEXTFIELD_SELECTIONFOREGROUND = "TextField.selectionForeground";
236
    public static final String COLOR_TEXTFIELD_SHADOW = "TextField.shadow";
237
    public static final String COLOR_TEXTPANE_BACKGROUND = "TextPane.background";
238
    public static final String COLOR_TEXTPANE_CARETFOREGROUND = "TextPane.caretForeground";
239
    public static final String COLOR_TEXTPANE_FOREGROUND = "TextPane.foreground";
240
    public static final String COLOR_TEXTPANE_INACTIVEBACKGROUND = "TextPane.inactiveBackground";
241
    public static final String COLOR_TEXTPANE_INACTIVEFOREGROUND = "TextPane.inactiveForeground";
242
    public static final String COLOR_TEXTPANE_SELECTIONBACKGROUND = "TextPane.selectionBackground";
243
    public static final String COLOR_TEXTPANE_SELECTIONFOREGROUND = "TextPane.selectionForeground";
244
    public static final String COLOR_TITLEDBORDER_TITLECOLOR = "TitledBorder.titleColor";
245
    public static final String COLOR_TOGGLEBUTTON_BACKGROUND = "ToggleButton.background";
246
    public static final String COLOR_TOGGLEBUTTON_DARKSHADOW = "ToggleButton.darkShadow";
247
    public static final String COLOR_TOGGLEBUTTON_DISABLEDTEXT = "ToggleButton.disabledText";
248
    public static final String COLOR_TOGGLEBUTTON_FOREGROUND = "ToggleButton.foreground";
249
    public static final String COLOR_TOGGLEBUTTON_HIGHLIGHT = "ToggleButton.highlight";
250
    public static final String COLOR_TOGGLEBUTTON_LIGHT = "ToggleButton.light";
251
    public static final String COLOR_TOGGLEBUTTON_SHADOW = "ToggleButton.shadow";
252
    public static final String COLOR_TOOLBAR_BACKGROUND = "ToolBar.background";
253
    public static final String COLOR_TOOLBAR_DARKSHADOW = "ToolBar.darkShadow";
254
    public static final String COLOR_TOOLBAR_DOCKINGBACKGROUND = "ToolBar.dockingBackground";
255
    public static final String COLOR_TOOLBAR_DOCKINGFOREGROUND = "ToolBar.dockingForeground";
256
    public static final String COLOR_TOOLBAR_FLOATINGBACKGROUND = "ToolBar.floatingBackground";
257
    public static final String COLOR_TOOLBAR_FLOATINGFOREGROUND = "ToolBar.floatingForeground";
258
    public static final String COLOR_TOOLBAR_FOREGROUND = "ToolBar.foreground";
259
    public static final String COLOR_TOOLBAR_HIGHLIGHT = "ToolBar.highlight";
260
    public static final String COLOR_TOOLBAR_LIGHT = "ToolBar.light";
261
    public static final String COLOR_TOOLBAR_SHADOW = "ToolBar.shadow";
262
    public static final String COLOR_TOOLTIP_BACKGROUND = "ToolTip.background";
263
    public static final String COLOR_TOOLTIP_FOREGROUND = "ToolTip.foreground";
264
    public static final String COLOR_TREE_BACKGROUND = "Tree.background";
265
    public static final String COLOR_TREE_FOREGROUND = "Tree.foreground";
266
    public static final String COLOR_TREE_HASH = "Tree.hash";
267
    public static final String COLOR_TREE_LINE = "Tree.line";
268
    public static final String COLOR_TREE_SELECTIONBACKGROUND = "Tree.selectionBackground";
269
    public static final String COLOR_TREE_SELECTIONBORDERCOLOR = "Tree.selectionBorderColor";
270
    public static final String COLOR_TREE_SELECTIONFOREGROUND = "Tree.selectionForeground";
271
    public static final String COLOR_TREE_TEXTBACKGROUND = "Tree.textBackground";
272
    public static final String COLOR_TREE_TEXTFOREGROUND = "Tree.textForeground";
273
    public static final String COLOR_VIEWPORT_BACKGROUND = "Viewport.background";
274
    public static final String COLOR_VIEWPORT_FOREGROUND = "Viewport.foreground";
275
    public static final String COLOR_ACTIVECAPTION = "activeCaption";
276
    public static final String COLOR_ACTIVECAPTIONBORDER = "activeCaptionBorder";
277
    public static final String COLOR_ACTIVECAPTIONTEXT = "activeCaptionText";
278
    public static final String COLOR_CONTROL = "control";
279
    public static final String COLOR_CONTROLDKSHADOW = "controlDkShadow";
280
    public static final String COLOR_CONTROLHIGHLIGHT = "controlHighlight";
281
    public static final String COLOR_CONTROLLTHIGHLIGHT = "controlLtHighlight";
282
    public static final String COLOR_CONTROLSHADOW = "controlShadow";
283
    public static final String COLOR_CONTROLTEXT = "controlText";
284
    public static final String COLOR_DESKTOP = "desktop";
285
    public static final String COLOR_INACTIVECAPTION = "inactiveCaption";
286
    public static final String COLOR_INACTIVECAPTIONBORDER = "inactiveCaptionBorder";
287
    public static final String COLOR_INACTIVECAPTIONTEXT = "inactiveCaptionText";
288
    public static final String COLOR_INFO = "info";
289
    public static final String COLOR_INFOTEXT = "infoText";
290
    public static final String COLOR_MENU = "menu";
291
    public static final String COLOR_MENUTEXT = "menuText";
292
    public static final String COLOR_SCROLLBAR = "scrollbar";
293
    public static final String COLOR_TEXT = "text";
294
    public static final String COLOR_TEXTHIGHLIGHT = "textHighlight";
295
    public static final String COLOR_TEXTHIGHLIGHTTEXT = "textHighlightText";
296
    public static final String COLOR_TEXTINACTIVETEXT = "textInactiveText";
297
    public static final String COLOR_TEXTTEXT = "textText";
298
    public static final String COLOR_WINDOW = "window";
299
    public static final String COLOR_WINDOWBORDER = "windowBorder";
300
    public static final String COLOR_WINDOWTEXT = "windowText";
301

    
302
    public void setWarningBackgroundColor(Color warningBackgroundColor);
303
    
304
    public Color getWarningBackgroundColor();
305
    
306
    public ActionListenerSupport createActionListenerSupport();
307

    
308
    public JListWithCheckbox createJListWithCheckbox(JList wrappedList);
309

    
310
    public void setTreeModel(JComboBox comboBox, TreeModel aTreeModel);
311

    
312
    public ComboBoxModel createComboBoxModel(TreeModel treeModel);
313

    
314
    /**
315
     * @param txtLabel
316
     * @param btnShowDialog
317
     * @param sldAlpha
318
     * @param allowNull
319
     * @return 
320
     * @deprecated use createColorPickerController
321
     */
322
    public ColorChooserController createColorChooserController(JTextComponent txtLabel, JButton btnShowDialog, JSlider sldAlpha, boolean allowNull);
323
    /**
324
     * @param txtLabel
325
     * @param btnShowDialog
326
     * @return 
327
     * @deprecated use createColorPickerController
328
     */
329
    public ColorChooserController createColorChooserController(JTextComponent txtLabel, JButton btnShowDialog);
330
    /**
331
     * @param txtLabel
332
     * @param btnShowDialog
333
     * @param sldAlpha
334
     * @return 
335
     * @deprecated use createColorPickerController
336
     */
337
    public ColorChooserController createColorChooserController(JTextComponent txtLabel, JButton btnShowDialog, JSlider sldAlpha);
338
    
339
    
340
    /**
341
     * Create a buffered Image of the given size and type.
342
     * In this context, buffered image means editable image (admits setRGB etc)
343
     * If the size is bigger of max physical size of buffered image, creates a file mapped buffered Image.
344
     *
345
     * @param w width in pixels of the requested image
346
     * @param h height in pixels of the requested image
347
     * @param type image type (refers to bands, etc. see {@link Image}
348
     * @return a buffered (editable) image of the desired size and type
349
     * @see setMaxPhysicalSizeOfBufferedImage
350
     * @see getMaxPhysicalSizeOfBufferedImage
351
     *
352
     */
353
    public BufferedImage createBufferedImage(int w, int h, int type);
354

    
355

    
356
    /**
357
     * Create a file mapped buffered Image of the given size and type.
358
     * In this context, buffered image means editable image (admits setRGB etc)
359
     *
360
     * @param w width in pixels of the requested image
361
     * @param h height in pixels of the requested image
362
     * @param type image type (refers to bands, etc. see {@link Image}
363
     * @return a buffered (editable) image of the desired size and type
364
     */
365
    public BufferedImage createVirtualBufferedImage(int w, int h, int type);
366

    
367
    public BufferedImage copyBufferedImage(BufferedImage img);
368

    
369
    /**
370
     * Sets the max physical size of buffered image creates by this manager.
371
     *
372
     * @param dimension
373
     * @see createBufferedImage
374
     * @see createVirtualBufferedImage
375
     */
376
    public void setMaxPhysicalSizeOfBufferedImage(Dimension dimension);
377

    
378
    /**
379
     * Return the max physical size of buffered image creates by this manager.
380
     *
381
     * @return
382
     * @see createBufferedImage
383
     * @see createVirtualBufferedImage
384
     */
385
    public Dimension getMaxPhysicalSizeOfBufferedImage();
386

    
387
    /**
388
     * Alpha blending is the process of combining a translucent foreground color with a background 
389
     * 
390
     * https://en.wikipedia.org/wiki/Alpha_compositing#Alpha_blending
391
     * 
392
     * @param bgColor
393
     * @param fgColor
394
     * @return 
395
     */    
396
    public Color alphaBlendingWithOpaqueBackground(Color bgColor, Color fgColor);
397
    
398
    public Color opaqueColor(Color src);
399

    
400
    public void translate(JComponent component);
401
    
402
    public void translate(AbstractButton component);
403

    
404
    public void translate(JLabel component);
405
    
406
    public void translate(JTabbedPane component);
407

    
408
    public void translate(JComponent component, boolean wrap);
409
    
410
    public void translate(AbstractButton component, boolean wrap);
411

    
412
    public void translate(JLabel component, boolean wrap);
413
    
414
    public void translate(JTabbedPane component, boolean wrap);
415

    
416
    public void setDefaultPopupMenu(final JTextComponent component);
417
    
418
    public void setDefaultPopupMenu(final JComboBox component);
419

    
420
    public void setDefaultPopupMenu(final JTextComponent component, String title);    
421

    
422
    public void setDefaultPopupMenu(final JComboBox component, String title);    
423

    
424
    public ChangeListenerHelper createChangeListenerHelper();
425
    
426
    public ColorPickerController createColorPickerController(JTextComponent txtLabel, JButton btnShowDialog, JSlider sldAlpha, boolean allowNull);
427
    
428
    public ColorPickerController createColorPickerController(JTextComponent txtLabel, JButton btnShowDialog);
429
    
430
    public ColorPickerController createColorPickerController(JTextComponent txtLabel, JButton btnShowDialog, JSlider sldAlpha);
431
    
432
    public DatePickerController createDatePickerController(JTextComponent txtDate, JButton btnDate);
433

    
434
    public FilePickerController createFilePickerController(JTextComponent txtFile, JButton btnFile, String dialogTitle, String fileChooserID, File initialPath, boolean seticon);
435

    
436
    public FilePickerController createFilePickerController(JTextComponent txtFile, JButton btnFile);
437

    
438
    public FilePickerController createFilePickerController(JTextComponent txtFile, JButton btnFile, String dialogTitle);
439

    
440
    public FolderPickerController createFolderPickerController(JTextComponent txtFile, JButton btnFile, String dialogTitle, String fileChooserID, File initialPath, boolean seticon);
441

    
442
    public FolderPickerController createFolderPickerController(JTextComponent txtFile, JButton btnFile);
443

    
444
    public FolderPickerController createFolderPickerController(JTextComponent txtFile, JButton btnFile, String dialogTitle);
445

    
446
    public PickerController<byte[]> createByteArrayPickerController(JTextComponent txtText, JButton btnUpload, JButton btnDownload, JButton btnEditAsText, String fileChooserID, File initialPath);
447

    
448
    public PickerController<byte[]> createByteArrayPickerController(JTextComponent txtText, JButton btnUpload, JButton btnDownload, String fileChooserID, File initialPath);
449

    
450
    public PickerController<byte[]> createByteArrayPickerController(JTextComponent txtText, JButton btnUpload, JButton btnDownload);
451

    
452
    public CharsetPickerController createCharsetPickerController(JLabel lblCharset, JComboBox cboCharset);
453

    
454
    public void removeBorder(JComponent component);
455
    
456
    public JScrollPane getJScrollPane(JComponent component);
457
    
458
    public void addClearButton(final JTextComponent text,  final ActionListener action);
459

    
460
    public void addClearButton(final JTextComponent text);
461

    
462
    public void addClearButton(JComboBox combo);
463
    
464
    public void addClearButton(JComboBox combo, final ActionListener action);
465
    
466
    public boolean hasClearButton(final JComboBox combo);
467
    
468
    public boolean hasClearButton(final JTextComponent text);
469
    
470
    public void removeClearButton(final JComboBox combo);
471
    
472
    public void removeClearButton(final JTextComponent text);
473
    
474
    public SimpleImage createSimpleImage();
475
    
476
    public SimpleImage createSimpleImage(Object source);
477
    
478
    public DropDown createDropDown(JComboBox combo);
479
    
480
    public DropDown createDropDown(JLabel label);
481

    
482
    public DropDown createDropDown(AbstractButton button);
483

    
484
    public DropDown createDropDown(JComponent component);
485
    
486
    /**
487
     * Contructor for creating a CompoundIcon where the icons are
488
     * layed out HORIZONTAL, the gap is 0 and the X/Y alignments will
489
     * default to CENTER.
490
     *
491
     * @param icons the Icons to be painted as part of the CompoundIcon
492
     * 
493
     * @return the CompoundIcon
494
     */
495
    public CompoundIcon createCompoundIcon(Icon... icons);
496

    
497
    /**
498
     * Contructor for creating a CompoundIcon where the gap is 0 and
499
     * the X/Y alignments will default to CENTER.
500
     *
501
     * @param orientation the orientation used to lay out the icons for painting. 
502
     * Must be one of SwingConstants.HORIZONTAL, SwingConstants.VERTICAL or STACKED.
503
     * @param icons the Icons to be painted as part of the CompoundIcon
504
     * 
505
     * @return the CompoundIcon
506
     */
507
    public CompoundIcon createCompoundIcon(int orientation, Icon... icons);
508

    
509
    /**
510
     * Convenience contructor for creating a CompoundIcon where the X/Y
511
     * alignments will default to CENTER.
512
     *
513
     * @param orientation the orientation used to lay out the icons for painting. 
514
     * Must be one of SwingConstants.HORIZONTAL, SwingConstants.VERTICAL or STACKED.
515
     * @param gap the gap between the icons
516
     * @param icons the Icons to be painted as part of the CompoundIcon
517
     * 
518
     * @return the CompoundIcon
519
     */
520
    public CompoundIcon createCompoundIcon(int orientation, int gap, Icon... icons);
521

    
522
    /**
523
     * Create a CompoundIcon specifying all the properties.
524
     *
525
     * @param orientation the orientation used to lay out the icons for painting. 
526
     * Must be one of SwingConstants.HORIZONTAL, SwingConstants.VERTICAL or STACKED.
527
     * @param gap the gap between the icons
528
     * @param alignmentX the X alignment of the icons. Common values are SwingConstants.LEFT,
529
     * SwingConstants.CENTER, SwingConstants.RIGHT.
530
     * @param alignmentY the Y alignment of the icons. Common values are SwingConstants.TOP,
531
     * SwingConstants.CENTER, SwingConstants.BOTTOM.
532
     * @param icons the Icons to be painted as part of the CompoundIcon
533
     * 
534
     * @return the CompoundIcon
535
     */
536
    public CompoundIcon createCompoundIcon(int orientation, int gap, int alignmentX, int alignmentY, Icon... icons);
537
    
538
    public BookmarksController createBookmarksController(Bookmarks bookmarks, JButton button);
539
    
540
    public HistoryController createHistoryController(History history, JButton button);
541

    
542
    public FilteredTableModel createFilteredTableModel(TableModel model, int filterColumn);
543

    
544
    public TextFieldWithHistoryAndBookmarkController createTextFieldWithHistoryAndBookmarkController(String name, JTextComponent text, JButton btnApply, JButton btnHistory, JButton btnBookmarks);
545

    
546
    public ComponentWithHistoryAndBookmarkController createComboBoxWithHistoryAndBookmarkController(String name, JComboBox combo);
547
    
548
    public FilteredListModel createFilteredListModel();
549
    
550
    public FilteredTreeModel createFilteredTreeModel(JTree tree);
551
    
552
    public FilteredListController createFilteredListController(JList list, JTextComponent text, JButton button);
553
    
554
    public FilteredTreeController createFilteredTreeController(JTree list, JTextComponent text, JButton button);
555
    
556
    public JLabel createTitledSeparator(String title, int height, int titlePosition, int titleJustification);
557

    
558
    public JLabel createTitledSeparator(String title);
559

    
560
    public JWebBrowser createJWebBrowser();
561
    
562
    public void registerJWebBrowserFactory(JWebBrowserFactory factory);
563
    
564
    public DataTypePickerController createDataTypePickerController(JComboBox cboDataType, JButton btnDataType, boolean allowNull);
565
    
566
    public TableColumnAdjuster createTableColumnAdjuster(JTable table);
567
    
568
    public MessageBarController createMessageBarController(JLabel txtLabel, int timeDuration);
569
    
570
    public String showZoomDialog(java.awt.Component parent, String title, String text, boolean editable);
571

    
572
    public String showZoomDialog(java.awt.Component parent, String title, String text, boolean editable, WindowManager.MODE mode);
573

    
574
    public DropDown createDropDownIcon(JLabel lblNull);
575
    
576
    public void putInClipboard(String data);
577
    
578
    public String getFromClipboard();
579

    
580
    public boolean isClipboardEmpty();
581
    
582
    public void addClipboardObserver(java.util.Observer observer);
583
    
584
    public void deleteClipboardObserver(java.util.Observer observer);
585
    
586
    public JSpinner spinnerOfNumber(JSpinner spinner, Number value);
587
    
588
    public JSpinner spinnerOfNumber(JSpinner spinner, Class valueClass);
589
    
590
    public JSpinner spinnerOfIntegers(JSpinner spinner, Integer value, int minimum, int maximum, int stepSize);
591
    
592
    public JSpinner spinnerOfTime(JSpinner spinner);
593
    
594
    public JSpinner spinnerOfTime(JSpinner spinner, Time value);
595

    
596
    public java.awt.Window findWindow(java.awt.Component c);
597
    
598
    public boolean isModalDialogShowing();
599
    
600
}