/[debian]/libjgoodies-looks-java/trunk/docs/api/com/jgoodies/looks/common/ShadowPopup.html
ViewVC logotype

Contents of /libjgoodies-looks-java/trunk/docs/api/com/jgoodies/looks/common/ShadowPopup.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 558 - (show annotations)
Mon Feb 26 21:28:44 2007 UTC (14 years, 3 months ago) by gregoa
File MIME type: text/html
File size: 14982 byte(s)
* New upstream release.
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.5.0_11) on Wed Feb 21 17:54:57 CET 2007 -->
6 <TITLE>
7 ShadowPopup (JGoodies Looks 2.1 API)
8 </TITLE>
9
10 <META NAME="keywords" CONTENT="com.jgoodies.looks.common.ShadowPopup 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="ShadowPopup (JGoodies Looks 2.1 API)";
18 }
19 </SCRIPT>
20 <NOSCRIPT>
21 </NOSCRIPT>
22
23 </HEAD>
24
25 <BODY BGCOLOR="white" onload="windowTitle();">
26
27
28 <!-- ========= START OF TOP NAVBAR ======= -->
29 <A NAME="navbar_top"><!-- --></A>
30 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
31 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
32 <TR>
33 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
34 <A NAME="navbar_top_firstrow"><!-- --></A>
35 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
36 <TR ALIGN="center" VALIGN="top">
37 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
39 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ShadowPopup.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
45 </TR>
46 </TABLE>
47 </TD>
48 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
49 </EM>
50 </TD>
51 </TR>
52
53 <TR>
54 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
55 &nbsp;<A HREF="../../../../com/jgoodies/looks/common/RGBGrayFilter.html" title="class in com.jgoodies.looks.common"><B>PREV CLASS</B></A>&nbsp;
56 &nbsp;<A HREF="../../../../com/jgoodies/looks/common/ShadowPopupFactory.html" title="class in com.jgoodies.looks.common"><B>NEXT CLASS</B></A></FONT></TD>
57 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
58 <A HREF="../../../../index.html?com/jgoodies/looks/common/ShadowPopup.html" target="_top"><B>FRAMES</B></A> &nbsp;
59 &nbsp;<A HREF="ShadowPopup.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
60 &nbsp;<SCRIPT type="text/javascript">
61 <!--
62 if(window==top) {
63 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
64 }
65 //-->
66 </SCRIPT>
67 <NOSCRIPT>
68 <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
69 </NOSCRIPT>
70
71
72 </FONT></TD>
73 </TR>
74 <TR>
75 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
76 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
77 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
78 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
79 </TR>
80 </TABLE>
81 <A NAME="skip-navbar_top"></A>
82 <!-- ========= END OF TOP NAVBAR ========= -->
83
84 <HR>
85 <!-- ======== START OF CLASS DATA ======== -->
86 <H2>
87 <FONT SIZE="-1">
88 com.jgoodies.looks.common</FONT>
89 <BR>
90 Class ShadowPopup</H2>
91 <PRE>
92 <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A>
93 <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/Popup.html" title="class or interface in javax.swing">javax.swing.Popup</A>
94 <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.jgoodies.looks.common.ShadowPopup</B>
95 </PRE>
96 <HR>
97 <DL>
98 <DT><PRE>public final class <B>ShadowPopup</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/Popup.html" title="class or interface in javax.swing">Popup</A></DL>
99 </PRE>
100
101 <P>
102 Does all the magic for getting popups with drop shadows.
103 It adds the drop shadow border to the Popup,
104 in <code>#show</code> it snapshots the screen background as needed,
105 and in <code>#hide</code> it cleans up all changes made before.
106 <P>
107
108 <P>
109 <DL>
110 <DT><B>Version:</B></DT>
111 <DD>$Revision: 1.6 $</DD>
112 <DT><B>Author:</B></DT>
113 <DD>Andrej Golovnin</DD>
114 <DT><B>See Also:</B><DD><CODE>ShadowPopupBorder</CODE>,
115 <A HREF="../../../../com/jgoodies/looks/common/ShadowPopupFactory.html" title="class in com.jgoodies.looks.common"><CODE>ShadowPopupFactory</CODE></A></DL>
116 <HR>
117
118 <P>
119
120 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
121
122 <A NAME="constructor_summary"><!-- --></A>
123 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
124 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
125 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
126 <B>Constructor Summary</B></FONT></TH>
127 </TR>
128 <TR BGCOLOR="white" CLASS="TableRowColor">
129 <TD><CODE><B><A HREF="../../../../com/jgoodies/looks/common/ShadowPopup.html#ShadowPopup()">ShadowPopup</A></B>()</CODE>
130
131 <BR>
132 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
133 </TR>
134 </TABLE>
135 &nbsp;
136 <!-- ========== METHOD SUMMARY =========== -->
137
138 <A NAME="method_summary"><!-- --></A>
139 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
140 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
141 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
142 <B>Method Summary</B></FONT></TH>
143 </TR>
144 <TR BGCOLOR="white" CLASS="TableRowColor">
145 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
146 <CODE>static&nbsp;boolean</CODE></FONT></TD>
147 <TD><CODE><B><A HREF="../../../../com/jgoodies/looks/common/ShadowPopup.html#canSnapshot()">canSnapshot</A></B>()</CODE>
148
149 <BR>
150 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
151 </TR>
152 <TR BGCOLOR="white" CLASS="TableRowColor">
153 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
154 <CODE>&nbsp;void</CODE></FONT></TD>
155 <TD><CODE><B><A HREF="../../../../com/jgoodies/looks/common/ShadowPopup.html#hide()">hide</A></B>()</CODE>
156
157 <BR>
158 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hides and disposes of the <code>Popup</code>.</TD>
159 </TR>
160 <TR BGCOLOR="white" CLASS="TableRowColor">
161 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
162 <CODE>&nbsp;void</CODE></FONT></TD>
163 <TD><CODE><B><A HREF="../../../../com/jgoodies/looks/common/ShadowPopup.html#show()">show</A></B>()</CODE>
164
165 <BR>
166 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Makes the <code>Popup</code> visible.</TD>
167 </TR>
168 </TABLE>
169 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
170 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
171 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
172 <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TH>
173 </TR>
174 <TR BGCOLOR="white" CLASS="TableRowColor">
175 <TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
176 </TR>
177 </TABLE>
178 &nbsp;
179 <P>
180
181 <!-- ========= CONSTRUCTOR DETAIL ======== -->
182
183 <A NAME="constructor_detail"><!-- --></A>
184 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
185 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
186 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
187 <B>Constructor Detail</B></FONT></TH>
188 </TR>
189 </TABLE>
190
191 <A NAME="ShadowPopup()"><!-- --></A><H3>
192 ShadowPopup</H3>
193 <PRE>
194 public <B>ShadowPopup</B>()</PRE>
195 <DL>
196 </DL>
197
198 <!-- ============ METHOD DETAIL ========== -->
199
200 <A NAME="method_detail"><!-- --></A>
201 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
202 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
203 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
204 <B>Method Detail</B></FONT></TH>
205 </TR>
206 </TABLE>
207
208 <A NAME="canSnapshot()"><!-- --></A><H3>
209 canSnapshot</H3>
210 <PRE>
211 public static boolean <B>canSnapshot</B>()</PRE>
212 <DL>
213 <DD><DL>
214 </DL>
215 </DD>
216 </DL>
217 <HR>
218
219 <A NAME="hide()"><!-- --></A><H3>
220 hide</H3>
221 <PRE>
222 public void <B>hide</B>()</PRE>
223 <DL>
224 <DD>Hides and disposes of the <code>Popup</code>. Once a <code>Popup</code>
225 has been disposed you should no longer invoke methods on it. A
226 <code>dispose</code>d <code>Popup</code> may be reclaimed and later used
227 based on the <code>PopupFactory</code>. As such, if you invoke methods
228 on a <code>disposed</code> <code>Popup</code>, indeterminate
229 behavior will result.<p>
230
231 In addition to the superclass behavior, we reset the stored
232 horizontal and vertical drop shadows - if any.
233 <P>
234 <DD><DL>
235 <DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/Popup.html#hide()" title="class or interface in javax.swing">hide</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/Popup.html" title="class or interface in javax.swing">Popup</A></CODE></DL>
236 </DD>
237 <DD><DL>
238 </DL>
239 </DD>
240 </DL>
241 <HR>
242
243 <A NAME="show()"><!-- --></A><H3>
244 show</H3>
245 <PRE>
246 public void <B>show</B>()</PRE>
247 <DL>
248 <DD>Makes the <code>Popup</code> visible. If the popup has a
249 heavy-weight container, we try to snapshot the background.
250 If the <code>Popup</code> is currently visible, it remains visible.
251 <P>
252 <DD><DL>
253 <DT><B>Overrides:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/Popup.html#show()" title="class or interface in javax.swing">show</A></CODE> in class <CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/javax/swing/Popup.html" title="class or interface in javax.swing">Popup</A></CODE></DL>
254 </DD>
255 <DD><DL>
256 </DL>
257 </DD>
258 </DL>
259 <!-- ========= END OF CLASS DATA ========= -->
260 <HR>
261
262
263 <!-- ======= START OF BOTTOM NAVBAR ====== -->
264 <A NAME="navbar_bottom"><!-- --></A>
265 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
266 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
267 <TR>
268 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
269 <A NAME="navbar_bottom_firstrow"><!-- --></A>
270 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
271 <TR ALIGN="center" VALIGN="top">
272 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
273 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
274 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
275 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ShadowPopup.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
276 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
277 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
278 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
279 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
280 </TR>
281 </TABLE>
282 </TD>
283 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
284 </EM>
285 </TD>
286 </TR>
287
288 <TR>
289 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
290 &nbsp;<A HREF="../../../../com/jgoodies/looks/common/RGBGrayFilter.html" title="class in com.jgoodies.looks.common"><B>PREV CLASS</B></A>&nbsp;
291 &nbsp;<A HREF="../../../../com/jgoodies/looks/common/ShadowPopupFactory.html" title="class in com.jgoodies.looks.common"><B>NEXT CLASS</B></A></FONT></TD>
292 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
293 <A HREF="../../../../index.html?com/jgoodies/looks/common/ShadowPopup.html" target="_top"><B>FRAMES</B></A> &nbsp;
294 &nbsp;<A HREF="ShadowPopup.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
295 &nbsp;<SCRIPT type="text/javascript">
296 <!--
297 if(window==top) {
298 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
299 }
300 //-->
301 </SCRIPT>
302 <NOSCRIPT>
303 <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
304 </NOSCRIPT>
305
306
307 </FONT></TD>
308 </TR>
309 <TR>
310 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
311 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
312 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
313 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
314 </TR>
315 </TABLE>
316 <A NAME="skip-navbar_bottom"></A>
317 <!-- ======== END OF BOTTOM NAVBAR ======= -->
318
319 <HR>
320 Copyright &#169; 2001-2007 JGoodies Karsten Lentzsch. All Rights Reserved.
321 </BODY>
322 </HTML>

  ViewVC Help
Powered by ViewVC 1.1.26