|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.richclient.application.config.JGoodiesLooksConfigurer
public class JGoodiesLooksConfigurer
JGoodies looks configurer bean. Allows to set various options available in the JGoodies looks library. Use this as follows:
<bean id="lookAndFeelConfigurer" class="org.springframework.richclient.application.config.JGoodiesLooksConfigurer"> <property name="popupDropShadowEnabled" value="false" /> <property name="theme"> <bean class="com.jgoodies.looks.plastic.theme.ExperienceBlue" /> </property> </bean>
Additionally the LaF FQN can be set using setLaFName(String)
. Use the static name constants defined in
JGoodies Options
to set this property. Default LaF if not specified is the Options#PLASTICXP_NAME.
It is possible to define other LaF's as well, but any other property set in this bean will not be in effect if used in that way.
If you do need to set another LaF without additional configuration use UIManagerConfigurer
and/or create a specific configurer bean for the LaF of your choice.
Constructor Summary | |
---|---|
JGoodiesLooksConfigurer()
Default constructor. |
|
JGoodiesLooksConfigurer(UIManagerConfigurer configurer)
Constructor allowing to pass your own UIManagerConfigurer. |
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
void |
set3DEnabled(boolean threeDEnabled)
|
void |
setDefaultIconSize(Dimension size)
|
void |
setFontSizeHints(com.jgoodies.looks.FontPolicy fontPolicy)
|
void |
setHighContrastFocusColorsEnabled(boolean highContrastEnabled)
|
void |
setLaFName(String laFName)
Set the FQN of the LaF to use. |
void |
setPopupDropShadowEnabled(boolean enabled)
|
void |
setTabIconsEnabled(boolean enabled)
|
void |
setTabStyle(String tabStyle)
|
void |
setTheme(com.jgoodies.looks.plastic.PlasticTheme theme)
|
void |
setUseNarrowButtons(boolean enabled)
|
void |
setUseSystemFonts(boolean enabled)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JGoodiesLooksConfigurer()
public JGoodiesLooksConfigurer(UIManagerConfigurer configurer)
configurer
- the UIManagerConfigurer to use when setting the LaF.Method Detail |
---|
public void setDefaultIconSize(Dimension size)
size
- default Dimension for the icons.Options.setDefaultIconSize(java.awt.Dimension)
public void setTheme(com.jgoodies.looks.plastic.PlasticTheme theme)
theme
- PlasticTheme to use.PlasticLookAndFeel.setPlasticTheme(com.jgoodies.looks.plastic.PlasticTheme)
public void setPopupDropShadowEnabled(boolean enabled)
enabled
- set to true if drop shadows should be used.- See Also:
Options.setPopupDropShadowEnabled(boolean)
public void setTabIconsEnabled(boolean enabled)
enabled
- set to true
if tab icons should be enabled.Options.setTabIconsEnabled(boolean)
public void setUseNarrowButtons(boolean enabled)
enabled
- set to true
if narrow buttons should be used.Options.setUseNarrowButtons(boolean)
public void setUseSystemFonts(boolean enabled)
enabled
- set to true
if narrow buttons should be used.Options.setUseSystemFonts(boolean)
public void setFontSizeHints(com.jgoodies.looks.FontPolicy fontPolicy)
fontPolicy
- the font policy.PlasticLookAndFeel.setFontPolicy(com.jgoodies.looks.FontPolicy)
public void set3DEnabled(boolean threeDEnabled)
threeDEnabled
- set to true
if 3D should be enabled.PlasticLookAndFeel.set3DEnabled(boolean)
public void setHighContrastFocusColorsEnabled(boolean highContrastEnabled)
highContrastEnabled
- set to true
if high contrast should be enabled.PlasticLookAndFeel.setHighContrastFocusColorsEnabled(boolean)
public void setTabStyle(String tabStyle)
tabStyle
- set the tab style that should be used.PlasticLookAndFeel.setTabStyle(String)
public void setLaFName(String laFName)
Set the FQN of the LaF to use. This should be on of:
Default LaF if not specified is Options#PLASTICXP_NAME. Note that you could mention any LaF FQN here, but all other options would then be ignored.
laFName
- the FQN of the LaF you want to install on the UIManagerConfigurer.public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |