public class ApplicationContextGuiFactory extends Object implements GuiFactory, org.springframework.context.ApplicationContextAware
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.context.ApplicationContext |
context
application context reference
|
| Constructor and Description |
|---|
ApplicationContextGuiFactory() |
| Modifier and Type | Method and Description |
|---|---|
static Border |
createTitledBorder(String name)
Deprecated.
use FormUtils.createTitledBorder instead.
|
org.springframework.context.ApplicationContext |
getApplicationContext() |
JComponent |
getComponent(String name)
Get a JComponent reference of named widget
|
JDialog |
getDialog(String name)
Gets a JDialog reference of named widget
|
static JFrame |
getJFrame() |
Object |
getObject(String name)
Gets a Object reference of named widget
|
Object |
getObject(String name,
Object[] args) |
JPanel |
getPanel(String name)
Get a JPanel reference of named widget.
|
View<?> |
getView(String name)
Gets a named view instance
|
<T> View<T> |
getView(String name,
Class<T> clazz)
Gets a named view instance.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
static void |
setPlasticLookAndFeel() |
protected org.springframework.context.ApplicationContext context
public JComponent getComponent(String name)
getComponent in interface GuiFactoryname - the name of componentpublic JDialog getDialog(String name)
getDialog in interface GuiFactoryname - the name of componentpublic Object getObject(String name)
getObject in interface GuiFactoryname - the name of componentpublic JPanel getPanel(String name)
getPanel in interface GuiFactoryname - the name of componentpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic org.springframework.context.ApplicationContext getApplicationContext()
public View<?> getView(String name)
GuiFactorygetView in interface GuiFactoryname - the view namepublic <T> View<T> getView(String name, Class<T> clazz)
GuiFactorygetView in interface GuiFactoryname - view nameclazz - view class templatepublic Object getObject(String name, Object[] args)
getObject in interface GuiFactorypublic static JFrame getJFrame()
public static void setPlasticLookAndFeel()
@Deprecated public static Border createTitledBorder(String name)
name - title stringCopyright © 2014 JDAL. All Rights Reserved.