|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.request.resource.AbstractResource
org.apache.wicket.request.resource.DynamicImageResource
org.apache.wicket.extensions.markup.html.captcha.CaptchaImageResource
public final class CaptchaImageResource
Generates a captcha image.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.wicket.request.resource.AbstractResource |
---|
AbstractResource.ResourceResponse, AbstractResource.WriteCallback |
Nested classes/interfaces inherited from interface org.apache.wicket.request.resource.IResource |
---|
IResource.Attributes |
Constructor Summary | |
---|---|
CaptchaImageResource()
Construct. |
|
CaptchaImageResource(IModel<java.lang.String> challengeId)
Construct. |
|
CaptchaImageResource(IModel<java.lang.String> challengeId,
int fontSize,
int margin)
Construct. |
|
CaptchaImageResource(java.lang.String challengeId)
Construct. |
|
CaptchaImageResource(java.lang.String challengeId,
int fontSize,
int margin)
Construct. |
Method Summary | |
---|---|
java.lang.String |
getChallengeId()
Gets the id for the challenge. |
IModel<java.lang.String> |
getChallengeIdModel()
Gets the id for the challenge |
protected byte[] |
getImageData(IResource.Attributes attributes)
Get image data for our dynamic image resource. |
void |
invalidate()
Causes the image to be redrawn the next time its requested. |
Methods inherited from class org.apache.wicket.request.resource.DynamicImageResource |
---|
configureResponse, getFormat, newResourceResponse, setFormat, setLastModifiedTime, toImageData |
Methods inherited from class org.apache.wicket.request.resource.AbstractResource |
---|
configureCache, respond |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CaptchaImageResource()
public CaptchaImageResource(java.lang.String challengeId)
challengeId
- The id of the challengepublic CaptchaImageResource(IModel<java.lang.String> challengeId)
challengeId
- The id of the challengepublic CaptchaImageResource(IModel<java.lang.String> challengeId, int fontSize, int margin)
challengeId
- The id of the challengefontSize
- The font sizemargin
- The image's marginpublic CaptchaImageResource(java.lang.String challengeId, int fontSize, int margin)
challengeId
- The id of the challengefontSize
- The font sizemargin
- The image's marginMethod Detail |
---|
public final java.lang.String getChallengeId()
public final IModel<java.lang.String> getChallengeIdModel()
public final void invalidate()
org.apache.wicket.Resource#invalidate()
protected final byte[] getImageData(IResource.Attributes attributes)
DynamicImageResource
getImageData
in class DynamicImageResource
org.apache.wicket.markup.html.image.resource.DynamicImageResource#getImageData()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |