|
PAJES 2.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pajes.html.Tag
org.pajes.html.TraversableElement
org.pajes.html.SingleElementContainer
org.pajes.html.Anchor
org.pajes.html.AnchorButton
This class creates button for a form which invokes a URL.
| Field Summary |
| Fields inherited from class org.pajes.html.Anchor |
AMPERSAND, parameters, QUESTION_MARK |
| Fields inherited from class org.pajes.html.Tag |
ON_CLICK_ATTRIBUTE, TAG_CLOSE, TAG_LEFT, TAG_RIGHT |
| Constructor Summary | |
AnchorButton(Anchor source,
java.lang.String text)
Create a button that invokes a URL. |
|
AnchorButton(Button source,
java.lang.String url,
java.lang.String frameTarget)
Create a button that invokes a URL. |
|
AnchorButton(java.lang.String text,
java.lang.String url,
java.lang.String frameTarget)
Create a button that invokes a URL. |
|
AnchorButton(java.lang.String text,
java.lang.String url,
java.lang.String frameTarget,
java.lang.String name)
Create a button that invokes a URL. |
|
| Method Summary | |
AnchorButton |
addParameter(java.lang.String name,
Input field)
Add a parameter to the Anchor where the value of the parameter is determined at button press time by the value of a specified Input field. |
protected void |
init()
Called by the constructor and the Tag.destroy() method to correctly
clear and initialise internal variables. |
AnchorButton |
setButtonText(java.lang.String text)
Sets the text of the button. |
void |
write(Browser browser)
Writes the <input type="button"> tag to the browser. |
| Methods inherited from class org.pajes.html.Anchor |
addParameter, clearParameters, clone, getContainedText, getHREF, getName, getParameterCount, getParameters, getTarget, getText, getURL, setAttribute, setName, setStatusDisplay, setTarget, setText, setText, setURL, setURL, writeContent |
| Methods inherited from class org.pajes.html.SingleElementContainer |
get, set, size |
| Methods inherited from class org.pajes.html.TraversableElement |
dump, dump, getAll, getFieldByName, getFirstFieldByName, getFirstTagByAttribute, getFirstTagByClass, getFirstTagByID, getFirstTagByName, getTagByAttribute, getTagByClass, getTagByID, getTagByName, setWritable |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AnchorButton(Anchor source,
java.lang.String text)
source - The Anchor instance from which the attributes of this
instance will be sourced.text - is the text to be displayed on the button.
public AnchorButton(Button source,
java.lang.String url,
java.lang.String frameTarget)
source - The Button instance from which the attributes of this
instance will be sourced.url - The destination URL to goto when the button is pushed.frameTarget - The frame that the page will appear in.
public AnchorButton(java.lang.String text,
java.lang.String url,
java.lang.String frameTarget)
text - The text to appear on the button.url - The destination URL to goto when the button is pushed.frameTarget - The frame that the page will appear in.
public AnchorButton(java.lang.String text,
java.lang.String url,
java.lang.String frameTarget,
java.lang.String name)
text - The text to appear on the button.url - The destination URL to goto when the button is pushed.frameTarget - The frame that the page will appear in.name - The name of the button (used by JavaScript).| Method Detail |
public AnchorButton setButtonText(java.lang.String text)
text - is the text to be displayed on the button.
public AnchorButton addParameter(java.lang.String name,
Input field)
name - the name of the variable namefield - the Input field containing the value
public void write(Browser browser)
throws java.io.IOException
write in interface HTMLwrite in class Tagbrowser - the browser to which the results are to be output.
java.io.IOException - if an I/O error occurs writing to the browser.Tag.setWriteEndTag(boolean),
Tag.writeContent(org.pajes.servlet.Browser)protected void init()
Tag.destroy() method to correctly
clear and initialise internal variables.
Sub-classes must call super.init() before doing
anything else to ensure the Tag is initialised correctly.
init in class Anchor
|
PAJES 2.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||