| java.lang.Object org.isqlviewer.swing.SwingUtilities
SwingUtilities | final public class SwingUtilities (Code) | | Customized swing utilities for iSQL-Viewer.
author: Mark A. Kobold version: 1.0 |
Method Summary | |
public static void | beep() | public static void | centerFrameOnScreen(JFrame frame) | public static KeyStroke | createKeyStroke(int VK, int Mask) Utility method for creating KeyStrokes. | public static int | getCaretCol(int idx, JTextComponent comp) Method getCaretCol. | public static int | getCaretRow(int idx, JTextComponent comp) Method getCaretRow. | public static KeyStroke | getKeyStroke(String s) Keystroke parsing code.
This code is identical to the Java Keystroke parsing code with one small exception that it will interpet meta as
the the menu command mask e.g. | protected static int | getLineOfOffset(int offset, Document doc) | public static KeyStroke | getLocalKeyStroke(ResourceBundle bundle, String str) Creates a KeyStroke from a ResourceBundle string.
See Also: SwingUtilities.getKeyStroke(String) Parameters: bundle - to load the localized text from. Parameters: str - ResourceBundle key. | public static File | getSystemFile(Component owner, int mode, FileFilter[] filters) Consistent way to chosing a file to open with JFileChooser.
See Also: JFileChooser.setFileSelectionMode(int) See Also: SwingUtilities.getSystemFiles(Component,int) Parameters: owner - to show the component relative to. Parameters: mode - selection mode for the JFileChooser. | public static File | getSystemFile(Component owner, int mode) | public static File[] | getSystemFiles(Component owner, int mode, FileFilter[] filters) Consistent way to chosing multiple files to open with JFileChooser.
See Also: JFileChooser.setFileSelectionMode(int) See Also: SwingUtilities.getSystemFiles(Component,int) Parameters: owner - to show the component relative to. Parameters: mode - selection mode for the JFileChooser. | public static File[] | getSystemFiles(Component owner, int mode) | public static Boolean | isFrameModified(RootPaneContainer frame) | public static boolean | isMacOS() | public static Icon | loadIconResource(String img) | public static Icon | loadIconResource(String img, int size) | public static Icon | loadIconResource(Class owner, String img) | public static Icon | loadIconResource(Class owner, String img, int size) | public static void | replaceDocumentContent(Document document, String content) | public static File | saveSystemFile(Component owner, FileFilter[] filters) Consistent way to chosing a file to save to with JFileChooser.
Parameters: owner - to show the component relative to. | public static File | saveSystemFile(Component owner) | public static File[] | saveSystemFiles(Component owner) Consistent way to chosing multiple files to save with JFileChooser.
See Also: SwingUtilities.saveSystemFile(Component) Parameters: owner - to show the component relative to. | public static void | setFrameModified(RootPaneContainer frame, Boolean flag) | public static void | setFrameModified(RootPaneContainer frame, boolean flag) | public static void | setPreferredGeometry(JFrame frame) |
MENU_SHORTCUT_MASK | final public static int MENU_SHORTCUT_MASK(Code) | | |
WINDOW_MODIFIED | final public static String WINDOW_MODIFIED(Code) | | |
beep | public static void beep()(Code) | | |
centerFrameOnScreen | public static void centerFrameOnScreen(JFrame frame)(Code) | | |
createKeyStroke | public static KeyStroke createKeyStroke(int VK, int Mask)(Code) | | Utility method for creating KeyStrokes.
Synonym for 'KeyStroke.getKeyStroke(vk, mask, false)'
Parameters: VK - constant for the Key Parameters: Mask - standared input mask KeyStroke based on the given parameters. |
getKeyStroke | public static KeyStroke getKeyStroke(String s)(Code) | | Keystroke parsing code.
This code is identical to the Java Keystroke parsing code with one small exception that it will interpet meta as
the the menu command mask e.g. command for Mac OS X, and CTRL for linux and windows.
See Also: KeyStroke.getKeyStroke(java.lang.String) |
getLocalKeyStroke | public static KeyStroke getLocalKeyStroke(ResourceBundle bundle, String str)(Code) | | Creates a KeyStroke from a ResourceBundle string.
See Also: SwingUtilities.getKeyStroke(String) Parameters: bundle - to load the localized text from. Parameters: str - ResourceBundle key. KeyStroke for the resource string can be null if not a valid keystroke. |
isMacOS | public static boolean isMacOS()(Code) | | |
replaceDocumentContent | public static void replaceDocumentContent(Document document, String content)(Code) | | |
saveSystemFile | public static File saveSystemFile(Component owner, FileFilter[] filters)(Code) | | Consistent way to chosing a file to save to with JFileChooser.
Parameters: owner - to show the component relative to. File based on the user selection can be null. |
saveSystemFiles | public static File[] saveSystemFiles(Component owner)(Code) | | Consistent way to chosing multiple files to save with JFileChooser.
See Also: SwingUtilities.saveSystemFile(Component) Parameters: owner - to show the component relative to. File[] based on the user selection can be null. |
setPreferredGeometry | public static void setPreferredGeometry(JFrame frame)(Code) | | |
|
|