Button URL - XML Tutorial
Version 1.6

This is the archives. For the latest Bambookit GUI 2.0, XML GUI Demos & Tutorials visit: www.bambookit.com/_demo.html

Button's Property: setAction, setTarget

Button is part of the GUI elements in Bamboo Suite for building interactive Internet applications. In the applet above we can see how setAction and setTarget properties are used. XML files are loaded in the panel(widget), which is defined as a setTarget. URL's functionallity can be added to the button by registering a URL for through the use of action attribute. By associating a URL with a button a web page is opened when the user clicks on the link. The link style and color can be configured. Refer to Reference for complete list of Buttons Properties.

View a Complete XML source

HTML Source:
<applet archive="bamboo_1_5.jar" code="Loader.class" width=310 height=400>
<param name="loadgui" value="button_url.xml">

button_url.XML Source:

<Widget setSize="310,400" setBackground="cdc9ee">
<Widget setShape="200,0,110,400" setBackground="cdc9ee" setName="panel1"/>
<Button setShape="10,10,170,25" setLabel="Bambookit" setFontstyle="bold" setAction="loadurl,http://www.bambookit.com"/>
<Button setShape="10,40,170,25" setLabel="Highlights" setFontstyle="bold" setAction="loadgui,button_highlights.xml" setTarget="panel1"/>
<Button setShape="10,70,170,25" setLabel="Fonts_Colors" setFontstyle="bold" setAction="loadgui,button_fonts_colors.xml" setTarget="panel1"/>
<Button setShape="10,100,170,25" setLabel="Borders" setFontstyle="bold" setAction="loadgui,button_border.xml" setTarget="panel1"/>

[Home][Tutorial] [Demo]

Shape Borders Fonts & Colors Highlights Images Actions Other