Statistics
| Revision:

root / trunk / docs / gvSIG / gvSIG-api / com / iver / cit / gvsig / gui / Panels / BrowserControl.html @ 11445

History | View | Annotate | Download (11.3 KB)

1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
<!--NewPage-->
3
<HTML>
4
<HEAD>
5
<!-- Generated by javadoc (build 1.4.2_04) on Mon Feb 14 08:49:14 CET 2005 -->
6
<TITLE>
7
BrowserControl (gvSIG API)
8
</TITLE>
9

    
10
<META NAME="keywords" CONTENT="com.iver.cit.gvsig.gui.Panels.BrowserControl class">
11

    
12
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
13

    
14
<SCRIPT type="text/javascript">
15
function windowTitle()
16
{
17
    parent.document.title="BrowserControl (gvSIG API)";
18
}
19
</SCRIPT>
20

    
21
</HEAD>
22

    
23
<BODY BGCOLOR="white" onload="windowTitle();">
24

    
25

    
26
<!-- ========= START OF TOP NAVBAR ======= -->
27
<A NAME="navbar_top"><!-- --></A>
28
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
29
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
30
<TR>
31
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
32
<A NAME="navbar_top_firstrow"><!-- --></A>
33
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
34
  <TR ALIGN="center" VALIGN="top">
35
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
36
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
37
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
38
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
39
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
40
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
41
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
42
  </TR>
43
</TABLE>
44
</TD>
45
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
46
</EM>
47
</TD>
48
</TR>
49

    
50
<TR>
51
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
52
&nbsp;<A HREF="../../../../../../com/iver/cit/gvsig/gui/Panels/AdjustTransparencyPanel.html" title="class in com.iver.cit.gvsig.gui.Panels"><B>PREV CLASS</B></A>&nbsp;
53
&nbsp;<A HREF="../../../../../../com/iver/cit/gvsig/gui/Panels/ColorChooserPanel.html" title="class in com.iver.cit.gvsig.gui.Panels"><B>NEXT CLASS</B></A></FONT></TD>
54
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
55
  <A HREF="../../../../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;
56
&nbsp;<A HREF="BrowserControl.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
57
&nbsp;<SCRIPT type="text/javascript">
58
  <!--
59
  if(window==top) {
60
    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
61
  }
62
  //-->
63
</SCRIPT>
64
<NOSCRIPT>
65
  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
66
</NOSCRIPT>
67

    
68
</FONT></TD>
69
</TR>
70
<TR>
71
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
72
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
73
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
74
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
75
</TR>
76
</TABLE>
77
<A NAME="skip-navbar_top"></A>
78
<!-- ========= END OF TOP NAVBAR ========= -->
79

    
80
<HR>
81
<!-- ======== START OF CLASS DATA ======== -->
82
<H2>
83
<FONT SIZE="-1">
84
com.iver.cit.gvsig.gui.Panels</FONT>
85
<BR>
86
Class BrowserControl</H2>
87
<PRE>
88
java.lang.Object
89
  <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by"><B>com.iver.cit.gvsig.gui.Panels.BrowserControl</B>
90
</PRE>
91
<HR>
92
<DL>
93
<DT>public class <B>BrowserControl</B><DT>extends java.lang.Object</DL>
94

    
95
<P>
96
A simple, static class to display a URL in the system browser.
97

    
98

    
99

    
100
 Under Unix, the system browser is hard-coded to be 'netscape'.
101
 Netscape must be in your PATH for this to work.  This has been
102
 tested with the following platforms: AIX, HP-UX and Solaris.
103

    
104

    
105

    
106
 Under Windows, this will bring up the default browser under windows,
107
 usually either Netscape or Microsoft IE.  The default browser is
108
 determined by the OS.  This has been tested under Windows 95/98/NT.
109

    
110

    
111

    
112
 Examples:
113

    
114

    
115
 
116
BrowserControl.displayURL("http://www.javaworld.com")
117
 
118
BrowserControl.displayURL("file://c:\\docs\\index.html")
119
 
120
BrowserContorl.displayURL("file:///user/joe/index.html");
121
 
122

    
123
 Note - you must include the url type -- either "http://" or
124
 "file://".
125
<P>
126

    
127
<P>
128
<HR>
129

    
130
<P>
131
<!-- ======== NESTED CLASS SUMMARY ======== -->
132

    
133

    
134
<!-- =========== FIELD SUMMARY =========== -->
135

    
136

    
137
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
138

    
139
<A NAME="constructor_summary"><!-- --></A>
140
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
141
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
142
<TD COLSPAN=2><FONT SIZE="+2">
143
<B>Constructor Summary</B></FONT></TD>
144
</TR>
145
<TR BGCOLOR="white" CLASS="TableRowColor">
146
<TD><CODE><B><A HREF="../../../../../../com/iver/cit/gvsig/gui/Panels/BrowserControl.html#BrowserControl()">BrowserControl</A></B>()</CODE>
147

    
148
<BR>
149
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
150
</TR>
151
</TABLE>
152
&nbsp;
153
<!-- ========== METHOD SUMMARY =========== -->
154

    
155
<A NAME="method_summary"><!-- --></A>
156
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
157
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
158
<TD COLSPAN=2><FONT SIZE="+2">
159
<B>Method Summary</B></FONT></TD>
160
</TR>
161
<TR BGCOLOR="white" CLASS="TableRowColor">
162
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
163
<CODE>static&nbsp;void</CODE></FONT></TD>
164
<TD><CODE><B><A HREF="../../../../../../com/iver/cit/gvsig/gui/Panels/BrowserControl.html#displayURL(java.lang.String)">displayURL</A></B>(java.lang.String&nbsp;url)</CODE>
165

    
166
<BR>
167
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Display a file in the system browser.  </TD>
168
</TR>
169
<TR BGCOLOR="white" CLASS="TableRowColor">
170
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
171
<CODE>static&nbsp;boolean</CODE></FONT></TD>
172
<TD><CODE><B><A HREF="../../../../../../com/iver/cit/gvsig/gui/Panels/BrowserControl.html#isWindowsPlatform()">isWindowsPlatform</A></B>()</CODE>
173

    
174
<BR>
175
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Try to determine whether this application is running under Windows
176
 or some other platform by examing the "os.name" property.</TD>
177
</TR>
178
</TABLE>
179
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
180
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
181
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
182
<TD><B>Methods inherited from class java.lang.Object</B></TD>
183
</TR>
184
<TR BGCOLOR="white" CLASS="TableRowColor">
185
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
186
</TR>
187
</TABLE>
188
&nbsp;
189
<P>
190

    
191
<!-- ============ FIELD DETAIL =========== -->
192

    
193

    
194
<!-- ========= CONSTRUCTOR DETAIL ======== -->
195

    
196
<A NAME="constructor_detail"><!-- --></A>
197
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
198
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
199
<TD COLSPAN=1><FONT SIZE="+2">
200
<B>Constructor Detail</B></FONT></TD>
201
</TR>
202
</TABLE>
203

    
204
<A NAME="BrowserControl()"><!-- --></A><H3>
205
BrowserControl</H3>
206
<PRE>
207
public <B>BrowserControl</B>()</PRE>
208
<DL>
209
</DL>
210

    
211
<!-- ============ METHOD DETAIL ========== -->
212

    
213
<A NAME="method_detail"><!-- --></A>
214
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
215
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
216
<TD COLSPAN=1><FONT SIZE="+2">
217
<B>Method Detail</B></FONT></TD>
218
</TR>
219
</TABLE>
220

    
221
<A NAME="displayURL(java.lang.String)"><!-- --></A><H3>
222
displayURL</H3>
223
<PRE>
224
public static void <B>displayURL</B>(java.lang.String&nbsp;url)</PRE>
225
<DL>
226
<DD>Display a file in the system browser.  If you want to display a
227
 file, you must include the absolute path name.
228
<P>
229
<DD><DL>
230
<DT><B>Parameters:</B><DD><CODE>url</CODE> - the file's url (the url must start with either "http://"
231
or
232
 "file://").</DL>
233
</DD>
234
</DL>
235
<HR>
236

    
237
<A NAME="isWindowsPlatform()"><!-- --></A><H3>
238
isWindowsPlatform</H3>
239
<PRE>
240
public static boolean <B>isWindowsPlatform</B>()</PRE>
241
<DL>
242
<DD>Try to determine whether this application is running under Windows
243
 or some other platform by examing the "os.name" property.
244
<P>
245
<DD><DL>
246

    
247
<DT><B>Returns:</B><DD>true if this application is running under a Windows OS</DL>
248
</DD>
249
</DL>
250
<!-- ========= END OF CLASS DATA ========= -->
251
<HR>
252

    
253

    
254
<!-- ======= START OF BOTTOM NAVBAR ====== -->
255
<A NAME="navbar_bottom"><!-- --></A>
256
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
257
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
258
<TR>
259
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
260
<A NAME="navbar_bottom_firstrow"><!-- --></A>
261
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
262
  <TR ALIGN="center" VALIGN="top">
263
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
264
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
265
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
266
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
267
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
268
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
269
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
270
  </TR>
271
</TABLE>
272
</TD>
273
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
274
</EM>
275
</TD>
276
</TR>
277

    
278
<TR>
279
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
280
&nbsp;<A HREF="../../../../../../com/iver/cit/gvsig/gui/Panels/AdjustTransparencyPanel.html" title="class in com.iver.cit.gvsig.gui.Panels"><B>PREV CLASS</B></A>&nbsp;
281
&nbsp;<A HREF="../../../../../../com/iver/cit/gvsig/gui/Panels/ColorChooserPanel.html" title="class in com.iver.cit.gvsig.gui.Panels"><B>NEXT CLASS</B></A></FONT></TD>
282
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
283
  <A HREF="../../../../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;
284
&nbsp;<A HREF="BrowserControl.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
285
&nbsp;<SCRIPT type="text/javascript">
286
  <!--
287
  if(window==top) {
288
    document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
289
  }
290
  //-->
291
</SCRIPT>
292
<NOSCRIPT>
293
  <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
294
</NOSCRIPT>
295

    
296
</FONT></TD>
297
</TR>
298
<TR>
299
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
300
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
301
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
302
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
303
</TR>
304
</TABLE>
305
<A NAME="skip-navbar_bottom"></A>
306
<!-- ======== END OF BOTTOM NAVBAR ======= -->
307

    
308
<HR>
309

    
310
</BODY>
311
</HTML>