|
jacquard 1.12.0 by The Web Engineering Factory and Toolworks | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.co.weft.htform.ResourceConsumerImpl
uk.co.weft.domutil.NodeGeneratorImpl
uk.co.weft.htform.Widget
uk.co.weft.htform.DoubleWidget
A widget which constrains entry to floating point numbers -- if JavaScript allows. All the intelligence for this is in the JavaScript, q.v.
| Field Summary | |
static int |
DW_SIZE
my size |
| Fields inherited from class uk.co.weft.htform.Widget |
ACTIONCSSCLASS, akprompt, attrs, CONTEXTATTRIBUTESSUFFIX, cssClass, DANGEROUSCSSCLASS, debug, DEFAULTTOKEN, dflt, form, generateAs, GENERATEASHTML, GENERATEASXFORM, GENERATEASXML, help, HELPTOKEN, immutable, ISIMMUTABLETOKEN, ISMANDATORYTOKEN, mandatory, MANDATORYCSSCLASS, maxVisibleSize, name, NAMETOKEN, OPTIONALCSSCLASS, PREVIOUSVALUESUFFIX, prompt, PROMPTTOKEN, size, SIZETOKEN, type, TYPETOKEN |
| Fields inherited from class uk.co.weft.domutil.NodeGeneratorImpl |
namespaceURI |
| Fields inherited from class uk.co.weft.htform.ResourceConsumerImpl |
resourceBundleName |
| Fields inherited from interface uk.co.weft.domutil.NodeGenerator |
NAMESPACEURIMAGICTOKEN |
| Fields inherited from interface uk.co.weft.htform.ResourceConsumer |
RESOURCEBUNDLEMAGICTOKEN |
| Constructor Summary | |
DoubleWidget()
If you use this constructor, you are strongly advised to use the init() method. |
|
DoubleWidget(java.lang.String myname)
minimum initialisation is I must have a name |
|
DoubleWidget(java.lang.String myname,
java.lang.String myprompt)
name and prompt is better |
|
DoubleWidget(java.lang.String myname,
java.lang.String myprompt,
java.lang.String myhelp)
name, prompt and helptext is better still. |
|
| Method Summary | |
int |
getWidth(Context context)
Specialisation: |
protected void |
preProcess(Context context)
Check that the value, if present, is parsable as a floating point number. |
java.lang.String |
scriptRequest(Context context)
A double widget does nothing clever without it's script |
| Methods inherited from class uk.co.weft.htform.Widget |
clone, generate, generateAttributes, generateAttributes, generateHTML, generateHTMLPrompt, generateInnerHTML, generateValue, generateXML, getContextAttribute, getCssClass, getHeight, getHelp, getName, getPrompt, getTabPlaces, getType, init, layout, layout, layout, layout, layoutAttribute, layoutAttributes, layoutValue, makeReady, maybeLayout, maybeLayout, onloadRequest, onloadRequest, postProcess, scriptRequest, setAttribute, setContextAttribute, setCssClass, setDebug, setDefault, setHelp, setImmutable, setMandatory, setMandatory, setName, setPrompt, setSize, setType |
| Methods inherited from class uk.co.weft.domutil.NodeGeneratorImpl |
getNamespaceURI, setNamespaceURI |
| Methods inherited from class uk.co.weft.htform.ResourceConsumerImpl |
getContextOrResource, getResource, getResourceOrContext, getResourceString, grs, grs |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int DW_SIZE
| Constructor Detail |
public DoubleWidget()
Widget.init(Context)public DoubleWidget(java.lang.String myname)
public DoubleWidget(java.lang.String myname,
java.lang.String myprompt)
public DoubleWidget(java.lang.String myname,
java.lang.String myprompt,
java.lang.String myhelp)
| Method Detail |
public java.lang.String scriptRequest(Context context)
throws java.lang.Exception
scriptRequest in class Widgetjava.lang.Exception
protected void preProcess(Context context)
throws DataStoreException,
javax.servlet.ServletException
preProcess in class Widgetcontext - the Context of the service in which I'm called
DataFormatException - if data fails validation test
javax.servlet.ServletException - if the thing itself breaks
DataStoreExceptionpublic int getWidth(Context context)
getWidth in class Widgetcontext -
Widget.getWidth(uk.co.weft.dbutil.Context)
|
jacquard 1.12.0 by The Web Engineering Factory and Toolworks | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||