public class DefaultToolsSwingManager extends java.lang.Object implements ToolsSwingManager
COLOR_ACTIVECAPTION, COLOR_ACTIVECAPTIONBORDER, COLOR_ACTIVECAPTIONTEXT, COLOR_BUTTON_BACKGROUND, COLOR_BUTTON_DARKSHADOW, COLOR_BUTTON_DISABLEDTEXT, COLOR_BUTTON_FOREGROUND, COLOR_BUTTON_HIGHLIGHT, COLOR_BUTTON_LIGHT, COLOR_BUTTON_SELECT, COLOR_BUTTON_SHADOW, COLOR_CHECKBOX_BACKGROUND, COLOR_CHECKBOX_DISABLEDTEXT, COLOR_CHECKBOX_FOREGROUND, COLOR_CHECKBOX_SELECT, COLOR_CHECKBOXMENUITEM_ACCELERATORFOREGROUND, COLOR_CHECKBOXMENUITEM_ACCELERATORSELECTIONFOREGROUND, COLOR_CHECKBOXMENUITEM_BACKGROUND, COLOR_CHECKBOXMENUITEM_DISABLEDBACKGROUND, COLOR_CHECKBOXMENUITEM_DISABLEDFOREGROUND, COLOR_CHECKBOXMENUITEM_FOREGROUND, COLOR_CHECKBOXMENUITEM_SELECTIONBACKGROUND, COLOR_CHECKBOXMENUITEM_SELECTIONFOREGROUND, COLOR_COLORCHOOSER_BACKGROUND, COLOR_COLORCHOOSER_FOREGROUND, COLOR_COLORCHOOSER_SWATCHESDEFAULTRECENTCOLOR, COLOR_COMBOBOX_BACKGROUND, COLOR_COMBOBOX_BUTTONBACKGROUND, COLOR_COMBOBOX_BUTTONDARKSHADOW, COLOR_COMBOBOX_BUTTONHIGHLIGHT, COLOR_COMBOBOX_BUTTONSHADOW, COLOR_COMBOBOX_DISABLEDBACKGROUND, COLOR_COMBOBOX_DISABLEDFOREGROUND, COLOR_COMBOBOX_FOREGROUND, COLOR_COMBOBOX_SELECTIONBACKGROUND, COLOR_COMBOBOX_SELECTIONFOREGROUND, COLOR_CONTROL, COLOR_CONTROLDKSHADOW, COLOR_CONTROLHIGHLIGHT, COLOR_CONTROLLTHIGHLIGHT, COLOR_CONTROLSHADOW, COLOR_CONTROLTEXT, COLOR_DESKTOP, COLOR_DESKTOP_BACKGROUND, COLOR_EDITORPANE_BACKGROUND, COLOR_EDITORPANE_CARETFOREGROUND, COLOR_EDITORPANE_FOREGROUND, COLOR_EDITORPANE_INACTIVEBACKGROUND, COLOR_EDITORPANE_INACTIVEFOREGROUND, COLOR_EDITORPANE_SELECTIONBACKGROUND, COLOR_EDITORPANE_SELECTIONFOREGROUND, COLOR_FOCUS_COLOR, COLOR_FORMATTEDTEXTFIELD_BACKGROUND, COLOR_FORMATTEDTEXTFIELD_CARETFOREGROUND, COLOR_FORMATTEDTEXTFIELD_FOREGROUND, COLOR_FORMATTEDTEXTFIELD_INACTIVEBACKGROUND, COLOR_FORMATTEDTEXTFIELD_INACTIVEFOREGROUND, COLOR_FORMATTEDTEXTFIELD_SELECTIONBACKGROUND, COLOR_FORMATTEDTEXTFIELD_SELECTIONFOREGROUND, COLOR_INACTIVECAPTION, COLOR_INACTIVECAPTIONBORDER, COLOR_INACTIVECAPTIONTEXT, COLOR_INFO, COLOR_INFOTEXT, COLOR_INTERNALFRAME_ACTIVETITLEBACKGROUND, COLOR_INTERNALFRAME_ACTIVETITLEFOREGROUND, COLOR_INTERNALFRAME_BACKGROUND, COLOR_INTERNALFRAME_BORDERCOLOR, COLOR_INTERNALFRAME_BORDERDARKSHADOW, COLOR_INTERNALFRAME_BORDERHIGHLIGHT, COLOR_INTERNALFRAME_BORDERLIGHT, COLOR_INTERNALFRAME_BORDERSHADOW, COLOR_INTERNALFRAME_INACTIVETITLEBACKGROUND, COLOR_INTERNALFRAME_INACTIVETITLEFOREGROUND, COLOR_INTERNALFRAME_OPTIONDIALOGBACKGROUND, COLOR_INTERNALFRAME_PALETTEBACKGROUND, COLOR_LABEL_BACKGROUND, COLOR_LABEL_DISABLEDFOREGROUND, COLOR_LABEL_DISABLEDSHADOW, COLOR_LABEL_FOREGROUND, COLOR_LIST_BACKGROUND, COLOR_LIST_FOREGROUND, COLOR_LIST_SELECTIONBACKGROUND, COLOR_LIST_SELECTIONFOREGROUND, COLOR_MENU, COLOR_MENU_ACCELERATORFOREGROUND, COLOR_MENU_ACCELERATORSELECTIONFOREGROUND, COLOR_MENU_BACKGROUND, COLOR_MENU_DISABLEDBACKGROUND, COLOR_MENU_DISABLEDFOREGROUND, COLOR_MENU_FOREGROUND, COLOR_MENU_SELECTIONBACKGROUND, COLOR_MENU_SELECTIONFOREGROUND, COLOR_MENUBAR_BACKGROUND, COLOR_MENUBAR_DISABLEDBACKGROUND, COLOR_MENUBAR_DISABLEDFOREGROUND, COLOR_MENUBAR_FOREGROUND, COLOR_MENUBAR_HIGHLIGHT, COLOR_MENUBAR_SELECTIONBACKGROUND, COLOR_MENUBAR_SELECTIONFOREGROUND, COLOR_MENUBAR_SHADOW, COLOR_MENUITEM_ACCELERATORFOREGROUND, COLOR_MENUITEM_ACCELERATORSELECTIONFOREGROUND, COLOR_MENUITEM_BACKGROUND, COLOR_MENUITEM_DISABLEDBACKGROUND, COLOR_MENUITEM_DISABLEDFOREGROUND, COLOR_MENUITEM_FOREGROUND, COLOR_MENUITEM_SELECTIONBACKGROUND, COLOR_MENUITEM_SELECTIONFOREGROUND, COLOR_MENUTEXT, COLOR_OPTIONPANE_BACKGROUND, COLOR_OPTIONPANE_FOREGROUND, COLOR_OPTIONPANE_MESSAGEFOREGROUND, COLOR_PANEL_BACKGROUND, COLOR_PANEL_FOREGROUND, COLOR_PASSWORDFIELD_BACKGROUND, COLOR_PASSWORDFIELD_CARETFOREGROUND, COLOR_PASSWORDFIELD_FOREGROUND, COLOR_PASSWORDFIELD_INACTIVEBACKGROUND, COLOR_PASSWORDFIELD_INACTIVEFOREGROUND, COLOR_PASSWORDFIELD_SELECTIONBACKGROUND, COLOR_PASSWORDFIELD_SELECTIONFOREGROUND, COLOR_POPUPMENU_BACKGROUND, COLOR_POPUPMENU_FOREGROUND, COLOR_POPUPMENU_SELECTIONBACKGROUND, COLOR_POPUPMENU_SELECTIONFOREGROUND, COLOR_PROGRESSBAR_BACKGROUND, COLOR_PROGRESSBAR_FOREGROUND, COLOR_PROGRESSBAR_SELECTIONBACKGROUND, COLOR_PROGRESSBAR_SELECTIONFOREGROUND, COLOR_RADIOBUTTON_BACKGROUND, COLOR_RADIOBUTTON_DARKSHADOW, COLOR_RADIOBUTTON_DISABLEDTEXT, COLOR_RADIOBUTTON_FOREGROUND, COLOR_RADIOBUTTON_HIGHLIGHT, COLOR_RADIOBUTTON_LIGHT, COLOR_RADIOBUTTON_SELECT, COLOR_RADIOBUTTON_SHADOW, COLOR_RADIOBUTTONMENUITEM_ACCELERATORFOREGROUND, COLOR_RADIOBUTTONMENUITEM_ACCELERATORSELECTIONFOREGROUND, COLOR_RADIOBUTTONMENUITEM_BACKGROUND, COLOR_RADIOBUTTONMENUITEM_DISABLEDBACKGROUND, COLOR_RADIOBUTTONMENUITEM_DISABLEDFOREGROUND, COLOR_RADIOBUTTONMENUITEM_FOREGROUND, COLOR_RADIOBUTTONMENUITEM_SELECTIONBACKGROUND, COLOR_RADIOBUTTONMENUITEM_SELECTIONFOREGROUND, COLOR_SCROLLBAR, COLOR_SCROLLBAR_BACKGROUND, COLOR_SCROLLBAR_FOREGROUND, COLOR_SCROLLBAR_THUMB, COLOR_SCROLLBAR_THUMBDARKSHADOW, COLOR_SCROLLBAR_THUMBHIGHLIGHT, COLOR_SCROLLBAR_THUMBSHADOW, COLOR_SCROLLBAR_TRACK, COLOR_SCROLLBAR_TRACKHIGHLIGHT, COLOR_SCROLLPANE_BACKGROUND, COLOR_SCROLLPANE_FOREGROUND, COLOR_SEPARATOR_FOREGROUND, COLOR_SEPARATOR_HIGHLIGHT, COLOR_SEPARATOR_SHADOW, COLOR_SLIDER_BACKGROUND, COLOR_SLIDER_FOCUS, COLOR_SLIDER_FOREGROUND, COLOR_SLIDER_HIGHLIGHT, COLOR_SLIDER_SHADOW, COLOR_SLIDER_TICKCOLOR, COLOR_SPINNER_BACKGROUND, COLOR_SPINNER_FOREGROUND, COLOR_SPLITPANE_BACKGROUND, COLOR_SPLITPANE_DARKSHADOW, COLOR_SPLITPANE_HIGHLIGHT, COLOR_SPLITPANE_SHADOW, COLOR_SPLITPANEDIVIDER_DRAGGINGCOLOR, COLOR_TABBEDPANE_BACKGROUND, COLOR_TABBEDPANE_DARKSHADOW, COLOR_TABBEDPANE_FOCUS, COLOR_TABBEDPANE_FOREGROUND, COLOR_TABBEDPANE_HIGHLIGHT, COLOR_TABBEDPANE_LIGHT, COLOR_TABBEDPANE_SHADOW, COLOR_TABLE_BACKGROUND, COLOR_TABLE_FOCUSCELLBACKGROUND, COLOR_TABLE_FOCUSCELLFOREGROUND, COLOR_TABLE_FOREGROUND, COLOR_TABLE_GRIDCOLOR, COLOR_TABLE_SELECTIONBACKGROUND, COLOR_TABLE_SELECTIONFOREGROUND, COLOR_TABLEHEADER_BACKGROUND, COLOR_TABLEHEADER_FOREGROUND, COLOR_TEXT, COLOR_TEXTAREA_BACKGROUND, COLOR_TEXTAREA_CARETFOREGROUND, COLOR_TEXTAREA_FOREGROUND, COLOR_TEXTAREA_INACTIVEBACKGROUND, COLOR_TEXTAREA_INACTIVEFOREGROUND, COLOR_TEXTAREA_SELECTIONBACKGROUND, COLOR_TEXTAREA_SELECTIONFOREGROUND, COLOR_TEXTCOMPONENT_SELECTIONBACKGROUNDINACTIVE, COLOR_TEXTFIELD_BACKGROUND, COLOR_TEXTFIELD_CARETFOREGROUND, COLOR_TEXTFIELD_DARKSHADOW, COLOR_TEXTFIELD_FOREGROUND, COLOR_TEXTFIELD_HIGHLIGHT, COLOR_TEXTFIELD_INACTIVEBACKGROUND, COLOR_TEXTFIELD_INACTIVEFOREGROUND, COLOR_TEXTFIELD_LIGHT, COLOR_TEXTFIELD_SELECTIONBACKGROUND, COLOR_TEXTFIELD_SELECTIONFOREGROUND, COLOR_TEXTFIELD_SHADOW, COLOR_TEXTHIGHLIGHT, COLOR_TEXTHIGHLIGHTTEXT, COLOR_TEXTINACTIVETEXT, COLOR_TEXTPANE_BACKGROUND, COLOR_TEXTPANE_CARETFOREGROUND, COLOR_TEXTPANE_FOREGROUND, COLOR_TEXTPANE_INACTIVEBACKGROUND, COLOR_TEXTPANE_INACTIVEFOREGROUND, COLOR_TEXTPANE_SELECTIONBACKGROUND, COLOR_TEXTPANE_SELECTIONFOREGROUND, COLOR_TEXTTEXT, COLOR_TITLEDBORDER_TITLECOLOR, COLOR_TOGGLEBUTTON_BACKGROUND, COLOR_TOGGLEBUTTON_DARKSHADOW, COLOR_TOGGLEBUTTON_DISABLEDTEXT, COLOR_TOGGLEBUTTON_FOREGROUND, COLOR_TOGGLEBUTTON_HIGHLIGHT, COLOR_TOGGLEBUTTON_LIGHT, COLOR_TOGGLEBUTTON_SHADOW, COLOR_TOOLBAR_BACKGROUND, COLOR_TOOLBAR_DARKSHADOW, COLOR_TOOLBAR_DOCKINGBACKGROUND, COLOR_TOOLBAR_DOCKINGFOREGROUND, COLOR_TOOLBAR_FLOATINGBACKGROUND, COLOR_TOOLBAR_FLOATINGFOREGROUND, COLOR_TOOLBAR_FOREGROUND, COLOR_TOOLBAR_HIGHLIGHT, COLOR_TOOLBAR_LIGHT, COLOR_TOOLBAR_SHADOW, COLOR_TOOLTIP_BACKGROUND, COLOR_TOOLTIP_FOREGROUND, COLOR_TREE_BACKGROUND, COLOR_TREE_FOREGROUND, COLOR_TREE_HASH, COLOR_TREE_LINE, COLOR_TREE_SELECTIONBACKGROUND, COLOR_TREE_SELECTIONBORDERCOLOR, COLOR_TREE_SELECTIONFOREGROUND, COLOR_TREE_TEXTBACKGROUND, COLOR_TREE_TEXTFOREGROUND, COLOR_VIEWPORT_BACKGROUND, COLOR_VIEWPORT_FOREGROUND, COLOR_WINDOW, COLOR_WINDOWBORDER, COLOR_WINDOWTEXT, MIMETYPE_HTML, MIMETYPE_TEXT, MIMETYPE_TSV
Constructor and Description |
---|
DefaultToolsSwingManager() |
Modifier and Type | Method and Description |
---|---|
void |
addClearButton(javax.swing.JComboBox combo) |
void |
addClearButton(javax.swing.JComboBox combo,
java.awt.event.ActionListener action) |
void |
addClearButton(javax.swing.text.JTextComponent text) |
void |
addClearButton(javax.swing.text.JTextComponent text,
java.awt.event.ActionListener action) |
void |
addClipboardObserver(java.util.Observer observer) |
void |
addLineNumbers(javax.swing.text.JTextComponent text,
javax.swing.JScrollPane scroll) |
SearchToolbar |
addSearchToolbar(javax.swing.text.JTextComponent text) |
TextComponentUndoRedoHelper |
addUndoRedoSupport(javax.swing.text.JTextComponent text) |
java.awt.Color |
alphaBlendingWithOpaqueBackground(java.awt.Color bgColor,
java.awt.Color fgColor)
Alpha blending is the process of combining a translucent foreground color with a background
https://en.wikipedia.org/wiki/Alpha_compositing#Alpha_blending
|
java.awt.image.BufferedImage |
copyBufferedImage(java.awt.image.BufferedImage img) |
ActionListenerSupport |
createActionListenerSupport() |
BookmarksController |
createBookmarksController(Bookmarks bookmarks,
javax.swing.JButton button) |
java.awt.image.BufferedImage |
createBufferedImage(int w,
int h,
int type)
Create a buffered Image of the given size and type.
|
PickerController<byte[]> |
createByteArrayPickerController(javax.swing.text.JTextComponent txtText,
javax.swing.JButton btnUpload,
javax.swing.JButton btnDownload) |
PickerController<byte[]> |
createByteArrayPickerController(javax.swing.text.JTextComponent txtText,
javax.swing.JButton btnUpload,
javax.swing.JButton btnDownload,
javax.swing.JButton btnEditAsText,
java.lang.String fileChooserID,
java.io.File initialPath) |
PickerController<byte[]> |
createByteArrayPickerController(javax.swing.text.JTextComponent txtText,
javax.swing.JButton btnUpload,
javax.swing.JButton btnDownload,
java.lang.String fileChooserID,
java.io.File initialPath) |
ChangeListenerHelper |
createChangeListenerHelper() |
CharsetPickerController |
createCharsetPickerController(javax.swing.JComboBox cboCharset) |
CharsetPickerController |
createCharsetPickerController(javax.swing.JLabel lblCharset,
javax.swing.JComboBox cboCharset) |
ColorChooserController |
createColorChooserController(javax.swing.text.JTextComponent txtLabel,
javax.swing.JButton btnShowDialog) |
ColorChooserController |
createColorChooserController(javax.swing.text.JTextComponent txtLabel,
javax.swing.JButton btnShowDialog,
javax.swing.JSlider sldAlpha) |
ColorChooserController |
createColorChooserController(javax.swing.text.JTextComponent txtLabel,
javax.swing.JButton btnShowDialog,
javax.swing.JSlider sldAlpha,
boolean allowNull) |
ColorPickerController |
createColorPickerController(javax.swing.text.JTextComponent txtLabel,
javax.swing.JButton btnShowDialog) |
ColorPickerController |
createColorPickerController(javax.swing.text.JTextComponent txtLabel,
javax.swing.JButton btnShowDialog,
javax.swing.JSlider sldAlpha) |
ColorPickerController |
createColorPickerController(javax.swing.text.JTextComponent txtLabel,
javax.swing.JButton btnShowDialog,
javax.swing.JSlider sldAlpha,
boolean allowNull) |
javax.swing.ComboBoxModel |
createComboBoxModel(javax.swing.tree.TreeModel treeModel) |
ComponentWithHistoryAndBookmarkController |
createComboBoxWithHistoryAndBookmarkController(java.lang.String name,
javax.swing.JComboBox combo) |
CompoundIcon |
createCompoundIcon(javax.swing.Icon... icons)
Contructor for creating a CompoundIcon where the icons are
layed out HORIZONTAL, the gap is 0 and the X/Y alignments will
default to CENTER.
|
CompoundIcon |
createCompoundIcon(int orientation,
javax.swing.Icon... icons)
Contructor for creating a CompoundIcon where the gap is 0 and
the X/Y alignments will default to CENTER.
|
CompoundIcon |
createCompoundIcon(int orientation,
int gap,
javax.swing.Icon... icons)
Convenience contructor for creating a CompoundIcon where the X/Y
alignments will default to CENTER.
|
CompoundIcon |
createCompoundIcon(int orientation,
int gap,
int alignmentX,
int alignmentY,
javax.swing.Icon... icons)
Create a CompoundIcon specifying all the properties.
|
DataTypePickerController |
createDataTypePickerController(javax.swing.JComboBox cboDataType,
javax.swing.JButton btnDataType,
boolean allowNull) |
DatePickerController |
createDatePickerController(javax.swing.text.JTextComponent txtDate,
javax.swing.JButton btnDate) |
DropDown |
createDropDown(javax.swing.AbstractButton button) |
DropDown |
createDropDown(javax.swing.JComboBox combo) |
DropDown |
createDropDown(javax.swing.JComponent component) |
DropDown |
createDropDown(javax.swing.JLabel label) |
DropDown |
createDropDownIcon(javax.swing.JLabel lblNull) |
FilePickerController |
createFilePickerController(javax.swing.text.JTextComponent txtFile,
javax.swing.JButton btnFile) |
FilePickerController |
createFilePickerController(javax.swing.text.JTextComponent txtFile,
javax.swing.JButton btnFile,
java.lang.String dialogTitle) |
FilePickerController |
createFilePickerController(javax.swing.text.JTextComponent txtFile,
javax.swing.JButton btnFile,
java.lang.String dialogTitle,
java.lang.String fileChooserID,
java.io.File initialPath,
boolean seticon) |
FilteredListController |
createFilteredListController(javax.swing.JList list,
javax.swing.text.JTextComponent text,
javax.swing.JButton button) |
FilteredListModel |
createFilteredListModel() |
FilteredTableModel |
createFilteredTableModel(javax.swing.table.TableModel tableModel,
int filterColumn) |
FilteredTreeController |
createFilteredTreeController(javax.swing.JTree list,
javax.swing.text.JTextComponent text,
javax.swing.JButton button) |
FilteredTreeModel |
createFilteredTreeModel(javax.swing.JTree tree) |
FolderPickerController |
createFolderPickerController(javax.swing.text.JTextComponent txtFile,
javax.swing.JButton btnFile) |
FolderPickerController |
createFolderPickerController(javax.swing.text.JTextComponent txtFile,
javax.swing.JButton btnFile,
java.lang.String dialogTitle) |
FolderPickerController |
createFolderPickerController(javax.swing.text.JTextComponent txtFile,
javax.swing.JButton btnFile,
java.lang.String dialogTitle,
java.lang.String fileChooserID,
java.io.File initialPath,
boolean seticon) |
HistoryController |
createHistoryController(History history,
javax.swing.JButton button) |
JListWithCheckbox |
createJListWithCheckbox(javax.swing.JList wrappedList) |
JWebBrowser |
createJWebBrowser() |
PickerController<java.util.Locale> |
createLocalePickerController(javax.swing.JComboBox cboLocale) |
MessageBarController |
createMessageBarController(javax.swing.JLabel txtLabel,
int timeDuration) |
SimpleImage |
createSimpleImage() |
SimpleImage |
createSimpleImage(java.lang.Object source) |
TableColumnAdjuster |
createTableColumnAdjuster(javax.swing.JTable table) |
TextFieldWithHistoryAndBookmarkController |
createTextFieldWithHistoryAndBookmarkController(java.lang.String name,
javax.swing.text.JTextComponent text,
javax.swing.JButton btnApply,
javax.swing.JButton btnHistory,
javax.swing.JButton btnBookmarks) |
javax.swing.JLabel |
createTitledSeparator(java.lang.String title) |
javax.swing.JLabel |
createTitledSeparator(java.lang.String title,
int height,
int titlePosition,
int titleJustification) |
java.awt.image.BufferedImage |
createVirtualBufferedImage(int w,
int h,
int type)
Create a file mapped buffered Image of the given size and type.
|
void |
deleteClipboardObserver(java.util.Observer observer) |
java.awt.Container |
findRootContainer(java.awt.Component c) |
java.awt.Window |
findWindow(java.awt.Component c) |
java.awt.Dimension |
getDesktopPanelSize() |
java.lang.String |
getFromClipboard() |
protected javax.swing.ImageIcon |
getIcon(java.lang.String name) |
javax.swing.JScrollPane |
getJScrollPane(javax.swing.JComponent component) |
JWebBrowserFactory |
getJWebBrowserFactory() |
java.awt.Dimension |
getMaxPhysicalSizeOfBufferedImage()
Return the max physical size of buffered image creates by this manager.
|
java.util.Collection<ViewerFactory> |
getViewerFactories() |
ViewerFactory |
getViewerFactory(java.lang.String name) |
java.awt.Color |
getWarningBackgroundColor() |
boolean |
hasClearButton(javax.swing.JComboBox combo) |
boolean |
hasClearButton(javax.swing.text.JTextComponent text) |
boolean |
isClipboardEmpty() |
boolean |
isModalDialogShowing() |
java.awt.Color |
opaqueColor(java.awt.Color src) |
void |
putInClipboard(java.lang.String data) |
void |
putInClipboard(java.lang.String data,
java.lang.String mimetype) |
void |
registerDesktopPanelSizeSupplier(java.util.function.Supplier<java.awt.Dimension> supplier) |
void |
registerJWebBrowserFactory(JWebBrowserFactory factory) |
void |
registerViewer(ViewerFactory factory) |
void |
removeBorder(javax.swing.JComponent component) |
void |
removeClearButton(javax.swing.JComboBox combo) |
void |
removeClearButton(javax.swing.text.JTextComponent text) |
void |
setDefaultPopupMenu(javax.swing.JComboBox component) |
void |
setDefaultPopupMenu(javax.swing.JComboBox component,
java.lang.String title) |
void |
setDefaultPopupMenu(javax.swing.JSpinner component,
java.lang.String title,
boolean textEditor) |
void |
setDefaultPopupMenu(javax.swing.text.JTextComponent component) |
void |
setDefaultPopupMenu(javax.swing.text.JTextComponent component,
java.lang.String title) |
void |
setDefaultPopupMenu(javax.swing.text.JTextComponent component,
java.lang.String title,
boolean textEditor) |
void |
setMaxPhysicalSizeOfBufferedImage(java.awt.Dimension dimension)
Sets the max physical size of buffered image creates by this manager.
|
void |
setTreeModel(javax.swing.JComboBox comboBox,
javax.swing.tree.TreeModel aTreeModel) |
void |
setWarningBackgroundColor(java.awt.Color warningBackgroundColor) |
java.lang.String |
showZoomDialog(java.awt.Component parent,
java.lang.String title,
java.lang.String text,
boolean editable) |
java.lang.String |
showZoomDialog(java.awt.Component parent,
java.lang.String title,
java.lang.String text,
boolean editable,
WindowManager.MODE mode) |
java.lang.String |
showZoomDialog(java.awt.Component parent,
java.lang.String title,
java.lang.String text,
boolean editable,
WindowManager.MODE mode,
java.util.List<javax.swing.Action> customActions) |
javax.swing.JSpinner |
spinnerOfIntegers(javax.swing.JSpinner spinner,
java.lang.Integer value,
int minimum,
int maximum,
int stepSize) |
javax.swing.JSpinner |
spinnerOfNumber(javax.swing.JSpinner spinner,
java.lang.Class valueClass) |
javax.swing.JSpinner |
spinnerOfNumber(javax.swing.JSpinner spinner,
java.lang.Number value) |
javax.swing.JSpinner |
spinnerOfTime(javax.swing.JSpinner spinner) |
javax.swing.JSpinner |
spinnerOfTime(javax.swing.JSpinner spinner,
java.sql.Time value) |
static java.lang.String |
toHTML(java.lang.String s) |
void |
translate(javax.swing.AbstractButton component) |
void |
translate(javax.swing.AbstractButton component,
boolean wrap) |
void |
translate(javax.swing.JComponent component) |
void |
translate(javax.swing.JComponent component,
boolean wrap) |
void |
translate(javax.swing.JLabel component) |
void |
translate(javax.swing.JLabel component,
boolean wrap) |
void |
translate(javax.swing.JTabbedPane component) |
void |
translate(javax.swing.JTabbedPane component,
boolean wrap) |
public void setWarningBackgroundColor(java.awt.Color warningBackgroundColor)
setWarningBackgroundColor
in interface ToolsSwingManager
public java.awt.Color getWarningBackgroundColor()
getWarningBackgroundColor
in interface ToolsSwingManager
public ActionListenerSupport createActionListenerSupport()
createActionListenerSupport
in interface ToolsSwingManager
public JListWithCheckbox createJListWithCheckbox(javax.swing.JList wrappedList)
createJListWithCheckbox
in interface ToolsSwingManager
public void setTreeModel(javax.swing.JComboBox comboBox, javax.swing.tree.TreeModel aTreeModel)
setTreeModel
in interface ToolsSwingManager
public javax.swing.ComboBoxModel createComboBoxModel(javax.swing.tree.TreeModel treeModel)
createComboBoxModel
in interface ToolsSwingManager
public java.awt.image.BufferedImage createBufferedImage(int w, int h, int type)
ToolsSwingManager
createBufferedImage
in interface ToolsSwingManager
w
- width in pixels of the requested imageh
- height in pixels of the requested imagetype
- image type (refers to bands, etc. see Image
setMaxPhysicalSizeOfBufferedImage
,
getMaxPhysicalSizeOfBufferedImage
public java.awt.image.BufferedImage createVirtualBufferedImage(int w, int h, int type)
ToolsSwingManager
createVirtualBufferedImage
in interface ToolsSwingManager
w
- width in pixels of the requested imageh
- height in pixels of the requested imagetype
- image type (refers to bands, etc. see Image
public java.awt.image.BufferedImage copyBufferedImage(java.awt.image.BufferedImage img)
copyBufferedImage
in interface ToolsSwingManager
public void setMaxPhysicalSizeOfBufferedImage(java.awt.Dimension dimension)
ToolsSwingManager
setMaxPhysicalSizeOfBufferedImage
in interface ToolsSwingManager
createBufferedImage
,
createVirtualBufferedImage
public java.awt.Dimension getMaxPhysicalSizeOfBufferedImage()
ToolsSwingManager
getMaxPhysicalSizeOfBufferedImage
in interface ToolsSwingManager
createBufferedImage
,
createVirtualBufferedImage
public ColorChooserController createColorChooserController(javax.swing.text.JTextComponent txtLabel, javax.swing.JButton btnShowDialog, javax.swing.JSlider sldAlpha, boolean allowNull)
createColorChooserController
in interface ToolsSwingManager
public ColorChooserController createColorChooserController(javax.swing.text.JTextComponent txtLabel, javax.swing.JButton btnShowDialog)
createColorChooserController
in interface ToolsSwingManager
public ColorChooserController createColorChooserController(javax.swing.text.JTextComponent txtLabel, javax.swing.JButton btnShowDialog, javax.swing.JSlider sldAlpha)
createColorChooserController
in interface ToolsSwingManager
public java.awt.Color alphaBlendingWithOpaqueBackground(java.awt.Color bgColor, java.awt.Color fgColor)
ToolsSwingManager
alphaBlendingWithOpaqueBackground
in interface ToolsSwingManager
public java.awt.Color opaqueColor(java.awt.Color src)
opaqueColor
in interface ToolsSwingManager
public void translate(javax.swing.JComponent component)
translate
in interface ToolsSwingManager
public void translate(javax.swing.AbstractButton component)
translate
in interface ToolsSwingManager
public void translate(javax.swing.JLabel component)
translate
in interface ToolsSwingManager
public void translate(javax.swing.JTabbedPane component)
translate
in interface ToolsSwingManager
public void translate(javax.swing.JComponent component, boolean wrap)
translate
in interface ToolsSwingManager
public void translate(javax.swing.AbstractButton component, boolean wrap)
translate
in interface ToolsSwingManager
public void translate(javax.swing.JLabel component, boolean wrap)
translate
in interface ToolsSwingManager
public void translate(javax.swing.JTabbedPane component, boolean wrap)
translate
in interface ToolsSwingManager
public static java.lang.String toHTML(java.lang.String s)
public void setDefaultPopupMenu(javax.swing.text.JTextComponent component)
setDefaultPopupMenu
in interface ToolsSwingManager
public void setDefaultPopupMenu(javax.swing.text.JTextComponent component, java.lang.String title)
setDefaultPopupMenu
in interface ToolsSwingManager
public void setDefaultPopupMenu(javax.swing.text.JTextComponent component, java.lang.String title, boolean textEditor)
setDefaultPopupMenu
in interface ToolsSwingManager
public void setDefaultPopupMenu(javax.swing.JSpinner component, java.lang.String title, boolean textEditor)
setDefaultPopupMenu
in interface ToolsSwingManager
public void setDefaultPopupMenu(javax.swing.JComboBox component)
setDefaultPopupMenu
in interface ToolsSwingManager
public void setDefaultPopupMenu(javax.swing.JComboBox component, java.lang.String title)
setDefaultPopupMenu
in interface ToolsSwingManager
public ChangeListenerHelper createChangeListenerHelper()
createChangeListenerHelper
in interface ToolsSwingManager
public ColorPickerController createColorPickerController(javax.swing.text.JTextComponent txtLabel, javax.swing.JButton btnShowDialog, javax.swing.JSlider sldAlpha, boolean allowNull)
createColorPickerController
in interface ToolsSwingManager
public ColorPickerController createColorPickerController(javax.swing.text.JTextComponent txtLabel, javax.swing.JButton btnShowDialog)
createColorPickerController
in interface ToolsSwingManager
public ColorPickerController createColorPickerController(javax.swing.text.JTextComponent txtLabel, javax.swing.JButton btnShowDialog, javax.swing.JSlider sldAlpha)
createColorPickerController
in interface ToolsSwingManager
public DatePickerController createDatePickerController(javax.swing.text.JTextComponent txtDate, javax.swing.JButton btnDate)
createDatePickerController
in interface ToolsSwingManager
public FilePickerController createFilePickerController(javax.swing.text.JTextComponent txtFile, javax.swing.JButton btnFile, java.lang.String dialogTitle, java.lang.String fileChooserID, java.io.File initialPath, boolean seticon)
createFilePickerController
in interface ToolsSwingManager
public FilePickerController createFilePickerController(javax.swing.text.JTextComponent txtFile, javax.swing.JButton btnFile)
createFilePickerController
in interface ToolsSwingManager
public PickerController<byte[]> createByteArrayPickerController(javax.swing.text.JTextComponent txtText, javax.swing.JButton btnUpload, javax.swing.JButton btnDownload, javax.swing.JButton btnEditAsText, java.lang.String fileChooserID, java.io.File initialPath)
createByteArrayPickerController
in interface ToolsSwingManager
public PickerController<byte[]> createByteArrayPickerController(javax.swing.text.JTextComponent txtText, javax.swing.JButton btnUpload, javax.swing.JButton btnDownload, java.lang.String fileChooserID, java.io.File initialPath)
createByteArrayPickerController
in interface ToolsSwingManager
public PickerController<byte[]> createByteArrayPickerController(javax.swing.text.JTextComponent txtText, javax.swing.JButton btnUpload, javax.swing.JButton btnDownload)
createByteArrayPickerController
in interface ToolsSwingManager
public FilePickerController createFilePickerController(javax.swing.text.JTextComponent txtFile, javax.swing.JButton btnFile, java.lang.String dialogTitle)
createFilePickerController
in interface ToolsSwingManager
public FolderPickerController createFolderPickerController(javax.swing.text.JTextComponent txtFile, javax.swing.JButton btnFile, java.lang.String dialogTitle, java.lang.String fileChooserID, java.io.File initialPath, boolean seticon)
createFolderPickerController
in interface ToolsSwingManager
public FolderPickerController createFolderPickerController(javax.swing.text.JTextComponent txtFile, javax.swing.JButton btnFile)
createFolderPickerController
in interface ToolsSwingManager
public FolderPickerController createFolderPickerController(javax.swing.text.JTextComponent txtFile, javax.swing.JButton btnFile, java.lang.String dialogTitle)
createFolderPickerController
in interface ToolsSwingManager
public CharsetPickerController createCharsetPickerController(javax.swing.JLabel lblCharset, javax.swing.JComboBox cboCharset)
createCharsetPickerController
in interface ToolsSwingManager
public CharsetPickerController createCharsetPickerController(javax.swing.JComboBox cboCharset)
createCharsetPickerController
in interface ToolsSwingManager
public PickerController<java.util.Locale> createLocalePickerController(javax.swing.JComboBox cboLocale)
createLocalePickerController
in interface ToolsSwingManager
public void removeBorder(javax.swing.JComponent component)
removeBorder
in interface ToolsSwingManager
public javax.swing.JScrollPane getJScrollPane(javax.swing.JComponent component)
getJScrollPane
in interface ToolsSwingManager
protected javax.swing.ImageIcon getIcon(java.lang.String name)
public void addClearButton(javax.swing.text.JTextComponent text)
addClearButton
in interface ToolsSwingManager
public void addClearButton(javax.swing.JComboBox combo)
addClearButton
in interface ToolsSwingManager
public void addClearButton(javax.swing.JComboBox combo, java.awt.event.ActionListener action)
addClearButton
in interface ToolsSwingManager
public boolean hasClearButton(javax.swing.JComboBox combo)
hasClearButton
in interface ToolsSwingManager
public void removeClearButton(javax.swing.JComboBox combo)
removeClearButton
in interface ToolsSwingManager
public boolean hasClearButton(javax.swing.text.JTextComponent text)
hasClearButton
in interface ToolsSwingManager
public void removeClearButton(javax.swing.text.JTextComponent text)
removeClearButton
in interface ToolsSwingManager
public void addClearButton(javax.swing.text.JTextComponent text, java.awt.event.ActionListener action)
addClearButton
in interface ToolsSwingManager
public java.lang.String showZoomDialog(java.awt.Component parent, java.lang.String title, java.lang.String text, boolean editable)
showZoomDialog
in interface ToolsSwingManager
public java.lang.String showZoomDialog(java.awt.Component parent, java.lang.String title, java.lang.String text, boolean editable, WindowManager.MODE mode)
showZoomDialog
in interface ToolsSwingManager
public java.lang.String showZoomDialog(java.awt.Component parent, java.lang.String title, java.lang.String text, boolean editable, WindowManager.MODE mode, java.util.List<javax.swing.Action> customActions)
showZoomDialog
in interface ToolsSwingManager
public SimpleImage createSimpleImage()
createSimpleImage
in interface ToolsSwingManager
public SimpleImage createSimpleImage(java.lang.Object source)
createSimpleImage
in interface ToolsSwingManager
public DropDown createDropDown(javax.swing.JComboBox combo)
createDropDown
in interface ToolsSwingManager
public DropDown createDropDown(javax.swing.JLabel label)
createDropDown
in interface ToolsSwingManager
public DropDown createDropDown(javax.swing.AbstractButton button)
createDropDown
in interface ToolsSwingManager
public DropDown createDropDown(javax.swing.JComponent component)
createDropDown
in interface ToolsSwingManager
public CompoundIcon createCompoundIcon(javax.swing.Icon... icons)
ToolsSwingManager
createCompoundIcon
in interface ToolsSwingManager
icons
- the Icons to be painted as part of the CompoundIconpublic CompoundIcon createCompoundIcon(int orientation, javax.swing.Icon... icons)
ToolsSwingManager
createCompoundIcon
in interface ToolsSwingManager
orientation
- the orientation used to lay out the icons for painting.
Must be one of SwingConstants.HORIZONTAL, SwingConstants.VERTICAL or STACKED.icons
- the Icons to be painted as part of the CompoundIconpublic CompoundIcon createCompoundIcon(int orientation, int gap, javax.swing.Icon... icons)
ToolsSwingManager
createCompoundIcon
in interface ToolsSwingManager
orientation
- the orientation used to lay out the icons for painting.
Must be one of SwingConstants.HORIZONTAL, SwingConstants.VERTICAL or STACKED.gap
- the gap between the iconsicons
- the Icons to be painted as part of the CompoundIconpublic CompoundIcon createCompoundIcon(int orientation, int gap, int alignmentX, int alignmentY, javax.swing.Icon... icons)
ToolsSwingManager
createCompoundIcon
in interface ToolsSwingManager
orientation
- the orientation used to lay out the icons for painting.
Must be one of SwingConstants.HORIZONTAL, SwingConstants.VERTICAL or STACKED.gap
- the gap between the iconsalignmentX
- the X alignment of the icons. Common values are SwingConstants.LEFT,
SwingConstants.CENTER, SwingConstants.RIGHT.alignmentY
- the Y alignment of the icons. Common values are SwingConstants.TOP,
SwingConstants.CENTER, SwingConstants.BOTTOM.icons
- the Icons to be painted as part of the CompoundIconpublic BookmarksController createBookmarksController(Bookmarks bookmarks, javax.swing.JButton button)
createBookmarksController
in interface ToolsSwingManager
public HistoryController createHistoryController(History history, javax.swing.JButton button)
createHistoryController
in interface ToolsSwingManager
public TextFieldWithHistoryAndBookmarkController createTextFieldWithHistoryAndBookmarkController(java.lang.String name, javax.swing.text.JTextComponent text, javax.swing.JButton btnApply, javax.swing.JButton btnHistory, javax.swing.JButton btnBookmarks)
createTextFieldWithHistoryAndBookmarkController
in interface ToolsSwingManager
public ComponentWithHistoryAndBookmarkController createComboBoxWithHistoryAndBookmarkController(java.lang.String name, javax.swing.JComboBox combo)
createComboBoxWithHistoryAndBookmarkController
in interface ToolsSwingManager
public FilteredTableModel createFilteredTableModel(javax.swing.table.TableModel tableModel, int filterColumn)
createFilteredTableModel
in interface ToolsSwingManager
public javax.swing.JLabel createTitledSeparator(java.lang.String title, int height, int titlePosition, int titleJustification)
createTitledSeparator
in interface ToolsSwingManager
public javax.swing.JLabel createTitledSeparator(java.lang.String title)
createTitledSeparator
in interface ToolsSwingManager
public FilteredListModel createFilteredListModel()
createFilteredListModel
in interface ToolsSwingManager
public FilteredTreeModel createFilteredTreeModel(javax.swing.JTree tree)
createFilteredTreeModel
in interface ToolsSwingManager
public FilteredListController createFilteredListController(javax.swing.JList list, javax.swing.text.JTextComponent text, javax.swing.JButton button)
createFilteredListController
in interface ToolsSwingManager
public FilteredTreeController createFilteredTreeController(javax.swing.JTree list, javax.swing.text.JTextComponent text, javax.swing.JButton button)
createFilteredTreeController
in interface ToolsSwingManager
public JWebBrowser createJWebBrowser()
createJWebBrowser
in interface ToolsSwingManager
public void registerJWebBrowserFactory(JWebBrowserFactory factory)
registerJWebBrowserFactory
in interface ToolsSwingManager
public JWebBrowserFactory getJWebBrowserFactory()
public DataTypePickerController createDataTypePickerController(javax.swing.JComboBox cboDataType, javax.swing.JButton btnDataType, boolean allowNull)
createDataTypePickerController
in interface ToolsSwingManager
public TableColumnAdjuster createTableColumnAdjuster(javax.swing.JTable table)
createTableColumnAdjuster
in interface ToolsSwingManager
public MessageBarController createMessageBarController(javax.swing.JLabel txtLabel, int timeDuration)
createMessageBarController
in interface ToolsSwingManager
public DropDown createDropDownIcon(javax.swing.JLabel lblNull)
createDropDownIcon
in interface ToolsSwingManager
public void putInClipboard(java.lang.String data)
putInClipboard
in interface ToolsSwingManager
public void putInClipboard(java.lang.String data, java.lang.String mimetype)
putInClipboard
in interface ToolsSwingManager
public java.lang.String getFromClipboard()
getFromClipboard
in interface ToolsSwingManager
public boolean isClipboardEmpty()
isClipboardEmpty
in interface ToolsSwingManager
public void addClipboardObserver(java.util.Observer observer)
addClipboardObserver
in interface ToolsSwingManager
public void deleteClipboardObserver(java.util.Observer observer)
deleteClipboardObserver
in interface ToolsSwingManager
public javax.swing.JSpinner spinnerOfNumber(javax.swing.JSpinner spinner, java.lang.Number value)
spinnerOfNumber
in interface ToolsSwingManager
public javax.swing.JSpinner spinnerOfNumber(javax.swing.JSpinner spinner, java.lang.Class valueClass)
spinnerOfNumber
in interface ToolsSwingManager
public javax.swing.JSpinner spinnerOfIntegers(javax.swing.JSpinner spinner, java.lang.Integer value, int minimum, int maximum, int stepSize)
spinnerOfIntegers
in interface ToolsSwingManager
public javax.swing.JSpinner spinnerOfTime(javax.swing.JSpinner spinner)
spinnerOfTime
in interface ToolsSwingManager
public javax.swing.JSpinner spinnerOfTime(javax.swing.JSpinner spinner, java.sql.Time value)
spinnerOfTime
in interface ToolsSwingManager
public java.awt.Window findWindow(java.awt.Component c)
findWindow
in interface ToolsSwingManager
public java.awt.Container findRootContainer(java.awt.Component c)
findRootContainer
in interface ToolsSwingManager
public boolean isModalDialogShowing()
isModalDialogShowing
in interface ToolsSwingManager
public void registerViewer(ViewerFactory factory)
registerViewer
in interface ToolsSwingManager
public java.util.Collection<ViewerFactory> getViewerFactories()
getViewerFactories
in interface ToolsSwingManager
public ViewerFactory getViewerFactory(java.lang.String name)
getViewerFactory
in interface ToolsSwingManager
public void addLineNumbers(javax.swing.text.JTextComponent text, javax.swing.JScrollPane scroll)
addLineNumbers
in interface ToolsSwingManager
public TextComponentUndoRedoHelper addUndoRedoSupport(javax.swing.text.JTextComponent text)
addUndoRedoSupport
in interface ToolsSwingManager
public SearchToolbar addSearchToolbar(javax.swing.text.JTextComponent text)
addSearchToolbar
in interface ToolsSwingManager
public void registerDesktopPanelSizeSupplier(java.util.function.Supplier<java.awt.Dimension> supplier)
registerDesktopPanelSizeSupplier
in interface ToolsSwingManager
public java.awt.Dimension getDesktopPanelSize()
getDesktopPanelSize
in interface ToolsSwingManager