jacquard 1.12.0 by The Web Engineering Factory and Toolworks

uk.co.weft.configurator
Class ConfiguratorParam

java.lang.Object
  extended byuk.co.weft.configurator.ConfiguratorParam

public class ConfiguratorParam
extends java.lang.Object

A parameter for a configurator. Essentially a device for converting XML nodes into widgets.


Field Summary
protected  java.lang.String dflt
          my default value
protected  java.lang.String help
          my helptext, if any
protected  boolean mandatory
          whether my value is mandatory
protected  java.lang.String name
          my name
protected  java.util.Vector options
          my options, if any
protected  java.lang.String prompt
          my prompt, if different from my name
protected  int size
          my visible size
 
Constructor Summary
ConfiguratorParam(Node spec)
          create me in accordance with this specification
 
Method Summary
protected  Widget getWidget()
          Construct a widget which can prompt for values for this parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dflt

protected java.lang.String dflt
my default value


help

protected java.lang.String help
my helptext, if any


name

protected java.lang.String name
my name


prompt

protected java.lang.String prompt
my prompt, if different from my name


options

protected java.util.Vector options
my options, if any


mandatory

protected boolean mandatory
whether my value is mandatory


size

protected int size
my visible size

Constructor Detail

ConfiguratorParam

public ConfiguratorParam(Node spec)
                  throws InitialisationException
create me in accordance with this specification

Parameters:
spec - an Element which specifies me
Throws:
InitialisationException - if it isn't well formed
Method Detail

getWidget

protected Widget getWidget()
Construct a widget which can prompt for values for this parameter

Returns:
the widget

jacquard 1.12.0 by The Web Engineering Factory and Toolworks