|
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.MenuOption
An option in a MenuWidget. Note that MenuOption has a back-pointer to its menu, and consequently it is not legal to add an option to a menu it doesn't belong to.
| Field Summary | |
protected boolean |
debug
whether or not I'm in debug mode; if I am I may print debugging messages to System.err |
protected int |
width
The maximum number of characters I will show. |
| Fields inherited from class uk.co.weft.domutil.NodeGeneratorImpl |
name, 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 | |
MenuOption(java.lang.String mylabel,
MenuWidget menu)
minimum initialisation: I should have a label. |
|
MenuOption(java.lang.String mylabel,
java.lang.String myvalue,
MenuWidget menu)
label and value is better. |
|
| Method Summary | |
java.lang.Object |
clone()
A menu option may be cloned |
Node |
generate(Document doc,
Context context)
Generate a node representing the XHTML 1.0 representation of this option. |
java.lang.String |
getLabel()
|
java.lang.String |
getName()
not really useful in this instance but required by the NodeGenerator interface |
java.lang.String |
getValue()
|
int |
getWidth(Context context)
get my visible width in characters in this context. |
void |
init(Context config)
Initialise me with this configuration. |
protected void |
layout(Context context,
java.lang.Object current)
lay me out on this output stream; select me if my value is current. |
protected void |
layout(Context context,
java.lang.Object current,
java.lang.String selected)
lay me out on this output stream, using this value for the selected flag |
void |
setDebug(boolean debug)
whether or not to set debugging mode. |
| 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 |
protected boolean debug
protected int width
| Constructor Detail |
public MenuOption(java.lang.String mylabel,
MenuWidget menu)
public MenuOption(java.lang.String mylabel,
java.lang.String myvalue,
MenuWidget menu)
| Method Detail |
public java.lang.String getLabel()
public java.lang.String getValue()
public void setDebug(boolean debug)
setDebug in interface NodeGeneratorsetDebug in class NodeGeneratorImpldebug - whether or not to set debugging modepublic java.lang.String getName()
getName in interface NodeGeneratorgetName in class NodeGeneratorImplpublic int getWidth(Context context)
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
public Node generate(Document doc,
Context context)
generate in interface NodeGeneratorgenerate in class NodeGeneratorImpldoc - the document of which the new node will form partcontext - the context in which the operation is to be performed
layout(uk.co.weft.dbutil.Context, java.lang.Object)
public void init(Context config)
throws InitialisationException
init in interface NodeGeneratorinit in class NodeGeneratorImplconfig - a context containing configuration information.
InitialisationException
protected void layout(Context context,
java.lang.Object current)
throws java.io.IOException
java.io.IOException
protected void layout(Context context,
java.lang.Object current,
java.lang.String selected)
throws java.io.IOException
java.io.IOException
|
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 | |||||||||