public class DockingUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
CONFIG_AUTOMATIC
Variable for the configuration.
|
protected static java.lang.String |
CONFIG_BUTTON_VISIBLE
Variable for the configuration.
|
protected static java.lang.String |
CONFIG_HEIGHT
Variable for the configuration.
|
protected static java.lang.String |
CONFIG_LOCATION
Variable for the configuration.
|
protected static java.lang.String |
CONFIG_MODE
Variable for the configuration.
|
protected static java.lang.String |
CONFIG_WIDTH
Variable for the configuration.
|
protected static java.lang.String |
CONFIG_WINDOW_HEIGHT
Variable for the configuration.
|
protected static java.lang.String |
CONFIG_WINDOW_LOCX
Variable for the configuration.
|
protected static java.lang.String |
CONFIG_WINDOW_LOCY
Variable for the configuration.
|
protected static java.lang.String |
CONFIG_WINDOW_MODE
Variable for the configuration.
|
protected static java.lang.String |
CONFIG_WINDOW_STATE
Variable for the configuration.
|
protected static java.lang.String |
CONFIG_WINDOW_VISIBLE
Variable for the configuration.
|
protected static java.lang.String |
CONFIG_WINDOW_WIDTH
Variable for the configuration.
|
Constructor and Description |
---|
DockingUtils()
Constructor method for i18n purposes only.
|
Modifier and Type | Method and Description |
---|---|
static void |
configure(java.lang.String id,
Configuration config,
DockingWindow window)
Restores values from persistent data stores.
|
static void |
debugPrint(DockingWindow window)
Convenience method to show the current docking window configuration.
|
static void |
doClickImmediately(javax.swing.JToggleButton button)
Alternative for the
doClick() method where events are generated immediately. |
static DockingManager |
findDockingManager(java.awt.Component comp)
Finds the docking manager for a managed component.
|
static int |
getWindowLocation(java.lang.String id,
Configuration config,
int fallback)
Convenience method to extract the location of docking windows.
|
static java.lang.String |
mapFromDockingMode(int mode)
Maps the given numerical window mode type to the corresponding text representation.
|
static void |
store(java.lang.String id,
Configuration config,
DockingWindow window)
Stores the current configuration values persistently.
|
protected static final java.lang.String CONFIG_WIDTH
protected static final java.lang.String CONFIG_HEIGHT
protected static final java.lang.String CONFIG_MODE
protected static final java.lang.String CONFIG_AUTOMATIC
protected static final java.lang.String CONFIG_BUTTON_VISIBLE
protected static final java.lang.String CONFIG_LOCATION
protected static final java.lang.String CONFIG_WINDOW_MODE
protected static final java.lang.String CONFIG_WINDOW_WIDTH
protected static final java.lang.String CONFIG_WINDOW_HEIGHT
protected static final java.lang.String CONFIG_WINDOW_LOCX
protected static final java.lang.String CONFIG_WINDOW_LOCY
protected static final java.lang.String CONFIG_WINDOW_STATE
protected static final java.lang.String CONFIG_WINDOW_VISIBLE
public DockingUtils() throws java.lang.InstantiationException
I18NExtractor
).
java.lang.InstantiationException
- Error indicationpublic static DockingManager findDockingManager(java.awt.Component comp)
comp
- The child componentnull
, if not availablepublic static void configure(java.lang.String id, Configuration config, DockingWindow window)
DockingWindow
interface are processed here.
id
- The unique identifier for the instanceconfig
- The configurationwindow
- The docking windowpublic static void store(java.lang.String id, Configuration config, DockingWindow window)
DockingWindow
interface are processed here.
id
- The unique identifier for the instanceconfig
- The configurationwindow
- The docking windowpublic static int getWindowLocation(java.lang.String id, Configuration config, int fallback)
id
- The unique identifier for the instanceconfig
- The configurationfallback
- The fallback valuepublic static java.lang.String mapFromDockingMode(int mode)
mode
- The internal valuenull
if not a valid modepublic static void debugPrint(DockingWindow window)
window
- The windowjava.lang.NullPointerException
- If a parameter is null
public static void doClickImmediately(javax.swing.JToggleButton button)
doClick()
method where events are generated immediately.
After this method has been called the ActionEvent
's have already been
generated and processed by the listeners.
button
- The buttonCopyright © 2005-2013 Leisenfels UG (haftungsbeschränkt). All rights reserved.