org.japano.pagenode
Class Button

java.lang.Object
  extended by org.japano.PageNode
      extended by org.japano.pagenode.Button

public class Button
extends PageNode

Inserts a javascript button into the document if javascript is enabled. When javascript is disabled no button will be generated. You can use the HTML <noscript> to specify alternate HTML elements for it.

Make sure your pages are working even if the user disables javascript!

Version:
$Id: Button.java,v 1.12 2005/12/30 15:54:02 fforw Exp $ SourceForge.net Logo
Author:
Sven Helmberger ( sven dot helmberger at gmx dot de )

Nested Class Summary
 
Nested classes/interfaces inherited from class org.japano.PageNode
PageNode.Output
 
Field Summary
 
Fields inherited from class org.japano.PageNode
children, context, EMPTY, nodeId, parent
 
Constructor Summary
Button()
           
 
Method Summary
 void generate(Buffer out)
          Generates this node The base implementation just calls PageNode.generateChildren(Buffer)
 void setFn(java.lang.String fn)
          Sets the javascript function to call when the button is pressed.
 
Methods inherited from class org.japano.PageNode
findChildren, findParent, findRootNode, generateChildren, getChildren, getContext, getNodeId, getParent, init, recInit, release, setChildren, setContext, setNodeId, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Button

public Button()
Method Detail

setFn

public void setFn(java.lang.String fn)
Sets the javascript function to call when the button is pressed.


generate

public void generate(Buffer out)
Description copied from class: PageNode
Generates this node The base implementation just calls PageNode.generateChildren(Buffer)

Overrides:
generate in class PageNode