net.mlw.vlh.web.util
Class ImagesHomeDisplayHelper
java.lang.Object
net.mlw.vlh.web.util.ImagesHomeDisplayHelper
- All Implemented Interfaces:
- DisplayHelper
- public final class ImagesHomeDisplayHelper
- extends Object
- implements DisplayHelper
The ImagesHomeDisplayHelper can be used by adding the folloing in the spring
config file:
<bean id="myLook" singleton="true" class="net.mlw.vlh.web.ValueListConfigBean">
<property name="displayHelper">
<bean class="net.mlw.vlh.web.util.ImagesHomeDisplayHelper" />
</property>
...
</bean>
This ImagesHomeDisplayHelper simply takes the value of your key and replace
any occurrences of the text @IMAGES_HOME@
with html DisplayProvider's images home.
- Version:
- $Revision: 1.3 $ $Date: 2005/05/23 17:44:55 $
- Author:
- Andrej Zachar
Method Summary |
String |
help(javax.servlet.jsp.PageContext pageContext,
String key)
Abstracts the means by which text is displayed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IMAGES_HOME_ATTRIBUTE_KEY
public static final String IMAGES_HOME_ATTRIBUTE_KEY
- Attribute key used in pageContext to store imagesHome dir. This usage
will be 100% changed in the future!
- See Also:
- Constant Field Values
ImagesHomeDisplayHelper
public ImagesHomeDisplayHelper()
help
public String help(javax.servlet.jsp.PageContext pageContext,
String key)
- Description copied from interface:
DisplayHelper
- Abstracts the means by which text is displayed.
- Specified by:
help
in interface DisplayHelper
- Parameters:
pageContext
- The jsp PageContextkey
- The key, which could be the value to display or some sort of key
to the text value.
- Returns:
- The text value.
- See Also:
DisplayHelper.help(javax.servlet.jsp.PageContext,
java.lang.String)
Copyright © 2003-2006 mlavilson. All Rights Reserved.