to.etc.domui.parts
Class PropBtnPart
java.lang.Object
to.etc.domui.parts.PropBtnPart
- All Implemented Interfaces:
- IBufferedPartFactory, IPartFactory
public class PropBtnPart
- extends java.lang.Object
- implements IBufferedPartFactory
A generated button image from a button definition file. This works like
the normal button part but uses a property file (web or application resource) to
define the button's layout and colors. The only parameters that are specified
by the user of the button are the button's text and an optional button icon. All
other thingies come from a resource file.
- Author:
- Frits Jalvingh
Created on Jul 21, 2008
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropBtnPart
public PropBtnPart()
decodeKey
public java.lang.Object decodeKey(java.lang.String rurl,
IExtendedParameterInfo info)
throws java.lang.Exception
- Decode the parameters for this button thingy.
- Specified by:
decodeKey
in interface IBufferedPartFactory
- Returns:
-
- Throws:
java.lang.Exception
- See Also:
to.etc.domui.server.parts.IBufferedPartFactory#decodeKey(java.lang.String, to.etc.domui.server.IParameterInfo)
generate
public void generate(@Nonnull
PartResponse pr,
@Nonnull
DomApplication da,
@Nonnull
java.lang.Object key,
@Nonnull
IResourceDependencyList rdl)
throws java.lang.Exception
- Generate the button class.
- Specified by:
generate
in interface IBufferedPartFactory
da
- The Application on behalf of which this resource is generated.key
- The key, as specified by decodeKey.rdl
- When running in development mode, each file resource used should be added
to this list. The buffer code will use that list to check whether a source
for this thing has changed; if so it will be re-generated. This causes runtime
editability for parameter files of any buffered thingydoo.
- Throws:
java.lang.Exception
- See Also:
to.etc.domui.server.parts.IBufferedPartFactory#generate(java.io.OutputStream, to.etc.domui.server.DomApplication, java.lang.Object)