|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.avalon.fortress.impl.AbstractContainer
org.apache.avalon.fortress.impl.DefaultContainer
org.apache.avalon.fortress.examples.swing.SwingContainer
Simple Fortress based container containing a Swing implementation of Hello World. This container creates a small Swing based GUI displaying a combobox of available languages from the translator component.
| Field Summary |
| Fields inherited from class org.apache.avalon.fortress.impl.AbstractContainer |
DEFAULT_ENTRY, m_classLoader, m_commandSink, m_componentContext, m_components, m_context, m_extManager, m_instrumentManager, m_loggerManager, m_mapper, m_metaManager, m_poolManager, m_serviceManager, m_shutDownOrder, SELECTOR_ENTRY |
| Fields inherited from interface org.apache.avalon.fortress.Container |
ROLE |
| Constructor Summary | |
SwingContainer()
|
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent evt)
Method called when the user changes the selected item in the combobox. |
void |
dispose()
Cleans up references to retrieved components. |
void |
initialize()
Initializes this component. |
void |
run()
|
void |
start()
Starts the component, makes GUI visible, ready for use. |
void |
stop()
Stops component, make GUI invisible, ready for decomissioning. |
| Methods inherited from class org.apache.avalon.fortress.impl.DefaultContainer |
configure, getServiceManager, interpretProxy |
| Methods inherited from class org.apache.avalon.fortress.impl.AbstractContainer |
addComponent, contextualize, createHintMap, createObjectFactory, get, getProxyManager, getRoleKey, has, provideComponentContext, provideServiceManager, service, setProxyManager |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SwingContainer()
| Method Detail |
public void initialize()
throws java.lang.Exception
initialize in interface Initializableinitialize in class AbstractContainerjava.lang.Exception - if an error occurspublic void start()
start in interface Startablepublic void run()
run in interface java.lang.Runnablepublic void stop()
stop in interface Startablepublic void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed in interface java.awt.event.ActionListenerevt - an ActionEvent instancepublic void dispose()
dispose in interface Disposabledispose in class AbstractContainer
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||