1 /*
2 Jiffie Plugin for Jameleon - An Internet Explorer plug-in for Jameleon
3 Copyright (C) 2004-2006 Christian W. Hargraves (engrean@hotmail.com) and
4 Matthias Marschall (matthias@marschalls.de)
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20 package net.sf.jameleon.plugin.jiffie.tags;
21
22 import net.sf.jameleon.plugin.jiffie.IEFunctionTag;
23
24 /***
25 * Navigates directly to the given URL.
26 *
27 * Some example uses might be:
28 *
29 * To go the jameleon sourceforge site.
30 * <pre><source>
31 * <ie-navigate functionId="Go to jameleon's sourceforge site"
32 * url="http://jameleon.sourceforge.net"/>
33 * </source></pre>
34 * @jameleon.function name="ie-navigate" type="navigation"
35 * @jameleon.step Directly navigate to the given URL
36 */
37 public class IENavigateTag extends IEFunctionTag {
38
39 /***
40 * URL to navigate to
41 *
42 * @jameleon.attribute required="true" contextName="ieNavigateUrl"
43 */
44 protected String url;
45
46 /***
47 * Username for pages that require basic authentication.
48 *
49 * @jameleon.attribute contextName="ieNavigateUsername"
50 */
51 protected String username;
52
53 /***
54 * Password for pages that require basic authentication.
55 *
56 * @jameleon.attribute contextName="ieNavigatePassword"
57 */
58 protected String password;
59
60 public void testBlock() {
61 navigate(url, username, password);
62 }
63 }