public abstract class AbstractGriffonApplet extends javax.swing.JApplet implements GriffonApplication
GriffonApplication that runs in applet mode.javax.swing.JApplet.AccessibleJAppletjava.applet.Applet.AccessibleApplet| Modifier and Type | Field and Description |
|---|---|
protected java.util.Locale |
appLocale |
static java.lang.String[] |
EMPTY_ARGS |
protected Injector<?> |
injector |
protected java.lang.Object[] |
lock |
protected org.slf4j.Logger |
log |
protected ApplicationPhase |
phase |
protected java.util.List<ShutdownHandler> |
shutdownHandlers |
protected java.lang.Object |
shutdownLock |
protected java.lang.String[] |
startupArgs |
accessibleContext, rootPane, rootPaneCheckingEnabledBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTPROPERTY_LOCALE, PROPERTY_PHASE| Constructor and Description |
|---|
AbstractGriffonApplet() |
AbstractGriffonApplet(java.lang.String[] args) |
| Modifier and Type | Method and Description |
|---|---|
void |
addShutdownHandler(ShutdownHandler handler)
Registers a ShutdownHandler on this application
|
boolean |
canShutdown()
Queries any available ShutdownHandlers.
|
void |
destroy() |
protected void |
event(ApplicationEvent event,
java.util.List<?> args) |
ActionManager |
getActionManager() |
AddonManager |
getAddonManager() |
ApplicationClassLoader |
getApplicationClassLoader() |
protected ApplicationConfigurer |
getApplicationConfigurer() |
ArtifactManager |
getArtifactManager() |
Configuration |
getConfiguration() |
ConfigurationManager |
getConfigurationManager() |
Context |
getContext() |
EventRouter |
getEventRouter() |
Injector<?> |
getInjector() |
java.util.Locale |
getLocale()
Gets the application locale.
|
org.slf4j.Logger |
getLog()
Returns a Logger instance suitable for this application.
|
MessageSource |
getMessageSource() |
MVCGroupManager |
getMvcGroupManager() |
ApplicationPhase |
getPhase()
Returns the current phase.
|
ResourceHandler |
getResourceHandler() |
ResourceInjector |
getResourceInjector() |
ResourceResolver |
getResourceResolver() |
java.lang.String[] |
getStartupArgs()
Returns the arguments set on the command line (if any).
|
UIThreadManager |
getUIThreadManager() |
<W> WindowManager<W> |
getWindowManager() |
void |
init() |
void |
initialize()
Executes the 'Initialize' life cycle phase.
|
void |
ready()
Executes the 'Ready' life cycle phase.
|
void |
removeShutdownHandler(ShutdownHandler handler)
Removes a ShutdownHandler from this application
|
void |
setInjector(Injector<?> injector) |
void |
setLocale(java.util.Locale locale)
Sets the application locale.
|
void |
setLocaleAsString(java.lang.String locale)
Sets the application locale.
|
protected void |
setPhase(ApplicationPhase phase) |
protected void |
showStartingWindow() |
boolean |
shutdown()
Executes the 'Shutdown' life cycle phase.
|
void |
start() |
void |
startup()
Executes the 'Startup' life cycle phase.
|
void |
stop() |
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isRootPaneCheckingEnabled, paramString, remove, repaint, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, updategetAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getParameter, getParameterInfo, isActive, isValidateRoot, newAudioClip, play, play, resize, resize, setStub, showStatusadd, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateApplicationContaineraddPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListenerpublic static final java.lang.String[] EMPTY_ARGS
protected final transient java.lang.Object[] lock
protected final transient java.util.List<ShutdownHandler> shutdownHandlers
protected final java.lang.String[] startupArgs
protected final transient java.lang.Object shutdownLock
protected final transient org.slf4j.Logger log
protected java.util.Locale appLocale
protected ApplicationPhase phase
protected transient Injector<?> injector
public AbstractGriffonApplet()
public AbstractGriffonApplet(@Nonnull
java.lang.String[] args)
public void init()
init in class java.applet.Appletpublic void start()
start in class java.applet.Appletpublic void stop()
stop in class java.applet.Appletpublic void destroy()
destroy in class java.applet.Applet@Nonnull public java.util.Locale getLocale()
GriffonApplicationgetLocale in interface GriffonApplicationgetLocale in class java.applet.Appletpublic void setLocale(@Nonnull
java.util.Locale locale)
GriffonApplicationThis is a bound property.
setLocale in interface GriffonApplicationsetLocale in class java.awt.Componentlocale - the Locale value to use@Nonnull public java.lang.String[] getStartupArgs()
GriffonApplicationgetStartupArgs in interface GriffonApplication@Nonnull public org.slf4j.Logger getLog()
GriffonApplicationgetLog in interface GriffonApplicationpublic void setLocaleAsString(@Nullable
java.lang.String locale)
GriffonApplicationThis is a bound property.
setLocaleAsString in interface GriffonApplicationlocale - a literal representation of a Localepublic void addShutdownHandler(@Nonnull
ShutdownHandler handler)
GriffonApplicationaddShutdownHandler in interface GriffonApplicationhandler - the shutdown handler to be registered; null and/or
duplicated values should be ignoredpublic void removeShutdownHandler(@Nonnull
ShutdownHandler handler)
GriffonApplicationremoveShutdownHandler in interface GriffonApplicationhandler - the shutdown handler to be removed; null and/or
duplicated values should be ignored@Nonnull public ApplicationPhase getPhase()
GriffonApplicationgetPhase in interface GriffonApplicationprotected void setPhase(@Nonnull
ApplicationPhase phase)
@Nonnull public ApplicationClassLoader getApplicationClassLoader()
getApplicationClassLoader in interface GriffonApplication@Nonnull public Context getContext()
getContext in interface GriffonApplication@Nonnull public Configuration getConfiguration()
getConfiguration in interface GriffonApplication@Nonnull public ConfigurationManager getConfigurationManager()
getConfigurationManager in interface GriffonApplication@Nonnull public UIThreadManager getUIThreadManager()
getUIThreadManager in interface GriffonApplication@Nonnull public EventRouter getEventRouter()
getEventRouter in interface GriffonApplication@Nonnull public ArtifactManager getArtifactManager()
getArtifactManager in interface GriffonApplication@Nonnull public ActionManager getActionManager()
getActionManager in interface GriffonApplication@Nonnull public AddonManager getAddonManager()
getAddonManager in interface GriffonApplication@Nonnull public MVCGroupManager getMvcGroupManager()
getMvcGroupManager in interface GriffonApplication@Nonnull public MessageSource getMessageSource()
getMessageSource in interface GriffonApplication@Nonnull public ResourceResolver getResourceResolver()
getResourceResolver in interface GriffonApplication@Nonnull public ResourceHandler getResourceHandler()
getResourceHandler in interface GriffonApplication@Nonnull public ResourceInjector getResourceInjector()
getResourceInjector in interface GriffonApplication@Nonnull public Injector<?> getInjector()
getInjector in interface GriffonApplicationpublic void setInjector(@Nonnull
Injector<?> injector)
@Nonnull public <W> WindowManager<W> getWindowManager()
getWindowManager in interface GriffonApplicationprotected ApplicationConfigurer getApplicationConfigurer()
public void initialize()
GriffonApplicationinitialize in interface GriffonApplicationpublic void ready()
GriffonApplicationready in interface GriffonApplicationprotected void showStartingWindow()
public boolean canShutdown()
GriffonApplicationcanShutdown in interface GriffonApplicationpublic boolean shutdown()
GriffonApplicationshutdown in interface GriffonApplicationpublic void startup()
GriffonApplicationstartup in interface GriffonApplicationprotected void event(@Nonnull
ApplicationEvent event,
@Nullable
java.util.List<?> args)