|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pietschy.command.GuiCommands
public class GuiCommands
Provides the entry point for loading command configuration and changing library defaults.
To get started using the library please see ActionCommand,
CommandGroup and CommandContainer.
load(ResourceBundle),
defaults()| Method Summary | |
|---|---|
static void |
bindAnnotatedCommands(CommandContainer container,
java.lang.Object target)
This method scans the specified target object scanning for any methods that have been annotated with either @ActionCommand
or @SwingWorkerCommand. |
static void |
bindAnnotatedCommands(javax.swing.JComponent component)
This method scans the specified component scanning for any methods that have been annotated with either @ActionCommand
or @SwingWorkerCommand. |
static void |
bindAnnotatedCommands(javax.swing.JComponent component,
java.lang.Object target)
This method scans the specified target object scanning for any methods that have been annotated with either @ActionCommand
or @SwingWorkerCommand. |
static Logger |
createLogger(java.lang.Class<? extends java.lang.Object> aClass)
Creates a logger instance for internal use by GUI Command classes. |
static Defaults |
defaults()
Gets the library defaults. |
static HoverManager |
getHoverManagerFor(java.awt.Window window)
Get the HoverManager that will fire events for command hoverings in
the specified window. |
static LoggerFactory |
getLoggerFactory()
Gets the logger factory used by the library to create internal logger instances. |
static void |
load(java.util.ResourceBundle bundle)
Loads the configuration from the specified ResourceBundle. |
static void |
load(java.lang.String bundleName)
Loads the configuration from the specified ResourceBundle using the same
semantics as ResourceBundle.getBundle(String). |
static void |
setLoggerFactory(LoggerFactory factory)
Sets the logger factory used by the library to create internal logger instances.. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Defaults defaults()
public static void load(java.util.ResourceBundle bundle)
throws ParseException
ResourceBundle.
bundle - the bundle to load.
ParseException - if there was an error loading the configuration.
public static void load(java.lang.String bundleName)
throws ParseException
ResourceBundle using the same
semantics as ResourceBundle.getBundle(String).
bundleName - the name of the bundle to load as per ResourceBundle.getBundle(String).
ParseException - if there was an error loading the configuration.
public static void bindAnnotatedCommands(CommandContainer container,
java.lang.Object target)
@ActionCommand
or @SwingWorkerCommand. If
found a command is instantiated and bound to the specified container.
container - the container to bind totarget - the object containing annotated methods.
public static void bindAnnotatedCommands(javax.swing.JComponent component,
java.lang.Object target)
@ActionCommand
or @SwingWorkerCommand. If
found a command is instantiated and bound to component.
component - the containing to bind the commands to.target - the object container the annotated methods.public static void bindAnnotatedCommands(javax.swing.JComponent component)
@ActionCommand
or @SwingWorkerCommand. If
found a command is instantiated and bound to component.
component - the containing the annotated methods.public static HoverManager getHoverManagerFor(java.awt.Window window)
HoverManager that will fire events for command hoverings in
the specified window.
This method simply delegates to HoverManager.getInstanceFor(Window).
window - the window of interest.
public static Logger createLogger(java.lang.Class<? extends java.lang.Object> aClass)
aClass - the class
setLoggerFactory(LoggerFactory)public static void setLoggerFactory(LoggerFactory factory)
factory - public static LoggerFactory getLoggerFactory()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||