org.springframework.richclient.command.config
Class ToolBarCommandButtonConfigurer
java.lang.Object
org.springframework.richclient.command.config.DefaultCommandButtonConfigurer
org.springframework.richclient.command.config.ToolBarCommandButtonConfigurer
- All Implemented Interfaces:
- CommandButtonConfigurer
public class ToolBarCommandButtonConfigurer
- extends DefaultCommandButtonConfigurer
Custom CommandButtonConfigurer
for buttons on the toolbar.
Configurable Properties:
Property |
Default |
Purpose |
showText |
false |
determines whether text is shown |
textBelowIcon |
true |
indicates whether the text is shown below the icon (as is default in
most applications) |
enableShadow |
false |
toggles shadow effect on rollover. If the icon already had a rollover
icon attached, no shadow effect is applied |
- Author:
- Keith Donald, Peter De Bruycker
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ToolBarCommandButtonConfigurer
public ToolBarCommandButtonConfigurer()
isEnableShadow
public boolean isEnableShadow()
setEnableShadow
public void setEnableShadow(boolean enableShadow)
setTextBelowIcon
public void setTextBelowIcon(boolean textBelowIcon)
isTextBelowIcon
public boolean isTextBelowIcon()
setShowText
public void setShowText(boolean showText)
isShowText
public boolean isShowText()
configure
public void configure(AbstractButton button,
AbstractCommand command,
CommandFaceDescriptor faceDescriptor)
- Description copied from class:
DefaultCommandButtonConfigurer
- Configures the given button and optional command object with the properties of the given
descriptor.
- Specified by:
configure
in interface CommandButtonConfigurer
- Overrides:
configure
in class DefaultCommandButtonConfigurer
- Parameters:
button
- The button to be configured. Must not be null.command
- The command to be configured. May be null.faceDescriptor
- The object describing the visual properties of the command button.
Must not be null.
Copyright © 2004-2009 The Spring Framework. All Rights Reserved.