source: other-projects/trunk/gs3-webservices-democlient/docs/GS3DemoClient/org/greenstone/gs3client/ColourCombo.html@ 15222

Last change on this file since 15222 was 15222, checked in by ak19, 16 years ago

Greenstone3 web services demo-clientadded to GS3's other-projects

File size: 25.7 KB
Line 
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_10) on Sun Apr 27 20:47:16 NZST 2008 -->
6<TITLE>
7ColourCombo
8</TITLE>
9
10<META NAME="keywords" CONTENT="org.greenstone.gs3client.ColourCombo class">
11
12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
13
14<SCRIPT type="text/javascript">
15function windowTitle()
16{
17 parent.document.title="ColourCombo";
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="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
44 </TR>
45</TABLE>
46</TD>
47<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
48</EM>
49</TD>
50</TR>
51
52<TR>
53<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
54&nbsp;<A HREF="../../../org/greenstone/gs3client/BrowseDisplay.ClassifierData.html" title="class in org.greenstone.gs3client"><B>PREV CLASS</B></A>&nbsp;
55&nbsp;<A HREF="../../../org/greenstone/gs3client/ColourCombo.ColourChangeable.html" title="interface in org.greenstone.gs3client"><B>NEXT CLASS</B></A></FONT></TD>
56<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
57 <A HREF="../../../index.html?org/greenstone/gs3client/ColourCombo.html" target="_top"><B>FRAMES</B></A> &nbsp;
58&nbsp;<A HREF="ColourCombo.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
59&nbsp;<SCRIPT type="text/javascript">
60 <!--
61 if(window==top) {
62 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
63 }
64 //-->
65</SCRIPT>
66<NOSCRIPT>
67 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
68</NOSCRIPT>
69
70
71</FONT></TD>
72</TR>
73<TR>
74<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
75 SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
76<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
77DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
78</TR>
79</TABLE>
80<A NAME="skip-navbar_top"></A>
81<!-- ========= END OF TOP NAVBAR ========= -->
82
83<HR>
84<!-- ======== START OF CLASS DATA ======== -->
85<H2>
86<FONT SIZE="-1">
87org.greenstone.gs3client</FONT>
88<BR>
89Class ColourCombo</H2>
90<PRE>
91java.lang.Object
92 <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>org.greenstone.gs3client.ColourCombo</B>
93</PRE>
94<HR>
95<DL>
96<DT><PRE>public class <B>ColourCombo</B><DT>extends java.lang.Object</DL>
97</PRE>
98
99<P>
100Background and selection color combinations for the Java-Client's
101 interface. Stores Greenstone, Fedora and default colour combinations
102 and has methods for converting colours of items.
103<P>
104
105<P>
106<DL>
107<DT><B>Author:</B></DT>
108 <DD>ak19</DD>
109</DL>
110<HR>
111
112<P>
113<!-- ======== NESTED CLASS SUMMARY ======== -->
114
115<A NAME="nested_class_summary"><!-- --></A>
116<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
117<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
118<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
119<B>Nested Class Summary</B></FONT></TH>
120</TR>
121<TR BGCOLOR="white" CLASS="TableRowColor">
122<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
123<CODE>static&nbsp;interface</CODE></FONT></TD>
124<TD><CODE><B><A HREF="../../../org/greenstone/gs3client/ColourCombo.ColourChangeable.html" title="interface in org.greenstone.gs3client">ColourCombo.ColourChangeable</A></B></CODE>
125
126<BR>
127&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Interface ColourChangeable defines one method, changeUIColour(),
128 which classes whose user-interface colours can change may
129 implement.</TD>
130</TR>
131</TABLE>
132&nbsp;<!-- =========== FIELD SUMMARY =========== -->
133
134<A NAME="field_summary"><!-- --></A>
135<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
136<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
137<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
138<B>Field Summary</B></FONT></TH>
139</TR>
140<TR BGCOLOR="white" CLASS="TableRowColor">
141<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
142<CODE>(package private) static&nbsp;java.awt.Color</CODE></FONT></TD>
143<TD><CODE><B><A HREF="../../../org/greenstone/gs3client/ColourCombo.html#background">background</A></B></CODE>
144
145<BR>
146&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fixed background colour for textareas, editorPanes (html)</TD>
147</TR>
148<TR BGCOLOR="white" CLASS="TableRowColor">
149<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
150<CODE>(package private) static&nbsp;java.awt.Color</CODE></FONT></TD>
151<TD><CODE><B><A HREF="../../../org/greenstone/gs3client/ColourCombo.html#blue">blue</A></B></CODE>
152
153<BR>
154&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fedora dark background colour</TD>
155</TR>
156<TR BGCOLOR="white" CLASS="TableRowColor">
157<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
158<CODE>protected static&nbsp;<A HREF="../../../org/greenstone/gs3client/ColourCombo.html" title="class in org.greenstone.gs3client">ColourCombo</A></CODE></FONT></TD>
159<TD><CODE><B><A HREF="../../../org/greenstone/gs3client/ColourCombo.html#current">current</A></B></CODE>
160
161<BR>
162&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The colour combination currently being used in the interface</TD>
163</TR>
164<TR BGCOLOR="white" CLASS="TableRowColor">
165<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
166<CODE>&nbsp;java.awt.Color</CODE></FONT></TD>
167<TD><CODE><B><A HREF="../../../org/greenstone/gs3client/ColourCombo.html#dark">dark</A></B></CODE>
168
169<BR>
170&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;background colours for panels, labels</TD>
171</TR>
172<TR BGCOLOR="white" CLASS="TableRowColor">
173<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
174<CODE>static&nbsp;<A HREF="../../../org/greenstone/gs3client/ColourCombo.html" title="class in org.greenstone.gs3client">ColourCombo</A></CODE></FONT></TD>
175<TD><CODE><B><A HREF="../../../org/greenstone/gs3client/ColourCombo.html#defaultColors">defaultColors</A></B></CODE>
176
177<BR>
178&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System default greys</TD>
179</TR>
180<TR BGCOLOR="white" CLASS="TableRowColor">
181<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
182<CODE>static&nbsp;<A HREF="../../../org/greenstone/gs3client/ColourCombo.html" title="class in org.greenstone.gs3client">ColourCombo</A></CODE></FONT></TD>
183<TD><CODE><B><A HREF="../../../org/greenstone/gs3client/ColourCombo.html#fedoraColors">fedoraColors</A></B></CODE>
184
185<BR>
186&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fedora's colour combinations of blue</TD>
187</TR>
188<TR BGCOLOR="white" CLASS="TableRowColor">
189<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
190<CODE>(package private) static&nbsp;java.awt.Color</CODE></FONT></TD>
191<TD><CODE><B><A HREF="../../../org/greenstone/gs3client/ColourCombo.html#green">green</A></B></CODE>
192
193<BR>
194&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Greenstone dark background colour</TD>
195</TR>
196<TR BGCOLOR="white" CLASS="TableRowColor">
197<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
198<CODE>static&nbsp;<A HREF="../../../org/greenstone/gs3client/ColourCombo.html" title="class in org.greenstone.gs3client">ColourCombo</A></CODE></FONT></TD>
199<TD><CODE><B><A HREF="../../../org/greenstone/gs3client/ColourCombo.html#greenstoneColors">greenstoneColors</A></B></CODE>
200
201<BR>
202&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Greenstone greens</TD>
203</TR>
204<TR BGCOLOR="white" CLASS="TableRowColor">
205<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
206<CODE>(package private) static&nbsp;java.awt.Color</CODE></FONT></TD>
207<TD><CODE><B><A HREF="../../../org/greenstone/gs3client/ColourCombo.html#grey">grey</A></B></CODE>
208
209<BR>
210&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Default background colour</TD>
211</TR>
212<TR BGCOLOR="white" CLASS="TableRowColor">
213<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
214<CODE>&nbsp;java.awt.Color</CODE></FONT></TD>
215<TD><CODE><B><A HREF="../../../org/greenstone/gs3client/ColourCombo.html#light">light</A></B></CODE>
216
217<BR>
218&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;background colours for comboboxes, lists, textfields, textareas</TD>
219</TR>
220<TR BGCOLOR="white" CLASS="TableRowColor">
221<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
222<CODE>(package private) static&nbsp;java.awt.Color</CODE></FONT></TD>
223<TD><CODE><B><A HREF="../../../org/greenstone/gs3client/ColourCombo.html#lightBlue">lightBlue</A></B></CODE>
224
225<BR>
226&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fedora light background colour</TD>
227</TR>
228<TR BGCOLOR="white" CLASS="TableRowColor">
229<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
230<CODE>(package private) static&nbsp;java.awt.Color</CODE></FONT></TD>
231<TD><CODE><B><A HREF="../../../org/greenstone/gs3client/ColourCombo.html#lightGreen">lightGreen</A></B></CODE>
232
233<BR>
234&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Greenstone light background colour</TD>
235</TR>
236<TR BGCOLOR="white" CLASS="TableRowColor">
237<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
238<CODE>(package private) static&nbsp;java.awt.Color</CODE></FONT></TD>
239<TD><CODE><B><A HREF="../../../org/greenstone/gs3client/ColourCombo.html#transparent">transparent</A></B></CODE>
240
241<BR>
242&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Greenstone transparent background colour.</TD>
243</TR>
244<TR BGCOLOR="white" CLASS="TableRowColor">
245<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
246<CODE>(package private) static&nbsp;java.awt.Color</CODE></FONT></TD>
247<TD><CODE><B><A HREF="../../../org/greenstone/gs3client/ColourCombo.html#yellow">yellow</A></B></CODE>
248
249<BR>
250&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Selection colour for Fedora and Greenstone</TD>
251</TR>
252</TABLE>
253&nbsp;
254<!-- ======== CONSTRUCTOR SUMMARY ======== -->
255
256<A NAME="constructor_summary"><!-- --></A>
257<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
258<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
259<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
260<B>Constructor Summary</B></FONT></TH>
261</TR>
262<TR BGCOLOR="white" CLASS="TableRowColor">
263<TD><CODE><B><A HREF="../../../org/greenstone/gs3client/ColourCombo.html#ColourCombo(java.awt.Color, java.awt.Color)">ColourCombo</A></B>(java.awt.Color&nbsp;dark,
264 java.awt.Color&nbsp;light)</CODE>
265
266<BR>
267&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructor to create a ColourCombo combination of colours</TD>
268</TR>
269</TABLE>
270&nbsp;
271<!-- ========== METHOD SUMMARY =========== -->
272
273<A NAME="method_summary"><!-- --></A>
274<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
275<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
276<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
277<B>Method Summary</B></FONT></TH>
278</TR>
279<TR BGCOLOR="white" CLASS="TableRowColor">
280<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
281<CODE>static&nbsp;void</CODE></FONT></TD>
282<TD><CODE><B><A HREF="../../../org/greenstone/gs3client/ColourCombo.html#changeAncestorColor(java.awt.Component)">changeAncestorColor</A></B>(java.awt.Component&nbsp;c)</CODE>
283
284<BR>
285&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Given a component, sets its ancestors to the dark colour setting.</TD>
286</TR>
287<TR BGCOLOR="white" CLASS="TableRowColor">
288<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
289<CODE>static&nbsp;void</CODE></FONT></TD>
290<TD><CODE><B><A HREF="../../../org/greenstone/gs3client/ColourCombo.html#changeColor(java.awt.Component)">changeColor</A></B>(java.awt.Component&nbsp;c)</CODE>
291
292<BR>
293&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Given a Component, sets its background colours to a dark or
294 light colour setting as appropriate.</TD>
295</TR>
296<TR BGCOLOR="white" CLASS="TableRowColor">
297<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
298<CODE>static&nbsp;void</CODE></FONT></TD>
299<TD><CODE><B><A HREF="../../../org/greenstone/gs3client/ColourCombo.html#changeColor(java.awt.Component[])">changeColor</A></B>(java.awt.Component[]&nbsp;leafComponents)</CODE>
300
301<BR>
302&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Given an array of components, sets their background colours to a
303 dark or light colour setting as appropriate.</TD>
304</TR>
305<TR BGCOLOR="white" CLASS="TableRowColor">
306<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
307<CODE>static&nbsp;<A HREF="../../../org/greenstone/gs3client/ColourCombo.html" title="class in org.greenstone.gs3client">ColourCombo</A></CODE></FONT></TD>
308<TD><CODE><B><A HREF="../../../org/greenstone/gs3client/ColourCombo.html#getCurrentCombo()">getCurrentCombo</A></B>()</CODE>
309
310<BR>
311&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
312</TR>
313<TR BGCOLOR="white" CLASS="TableRowColor">
314<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
315<CODE>protected static&nbsp;boolean</CODE></FONT></TD>
316<TD><CODE><B><A HREF="../../../org/greenstone/gs3client/ColourCombo.html#isLightColor(java.awt.Component)">isLightColor</A></B>(java.awt.Component&nbsp;c)</CODE>
317
318<BR>
319&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
320</TR>
321<TR BGCOLOR="white" CLASS="TableRowColor">
322<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
323<CODE>static&nbsp;void</CODE></FONT></TD>
324<TD><CODE><B><A HREF="../../../org/greenstone/gs3client/ColourCombo.html#setColour(int)">setColour</A></B>(int&nbsp;DL)</CODE>
325
326<BR>
327&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the active colour combination based on the value of DL.</TD>
328</TR>
329<TR BGCOLOR="white" CLASS="TableRowColor">
330<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
331<CODE>static&nbsp;void</CODE></FONT></TD>
332<TD><CODE><B><A HREF="../../../org/greenstone/gs3client/ColourCombo.html#setCurrentCombo(org.greenstone.gs3client.ColourCombo)">setCurrentCombo</A></B>(<A HREF="../../../org/greenstone/gs3client/ColourCombo.html" title="class in org.greenstone.gs3client">ColourCombo</A>&nbsp;c)</CODE>
333
334<BR>
335&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
336</TR>
337</TABLE>
338&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
339<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
340<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
341<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
342</TR>
343<TR BGCOLOR="white" CLASS="TableRowColor">
344<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
345</TR>
346</TABLE>
347&nbsp;
348<P>
349
350<!-- ============ FIELD DETAIL =========== -->
351
352<A NAME="field_detail"><!-- --></A>
353<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
354<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
355<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
356<B>Field Detail</B></FONT></TH>
357</TR>
358</TABLE>
359
360<A NAME="transparent"><!-- --></A><H3>
361transparent</H3>
362<PRE>
363static final java.awt.Color <B>transparent</B></PRE>
364<DL>
365<DD>Greenstone transparent background colour. Useful for trees' text
366 backgrounds which otherwise default to white even when the tree
367 background is not white. Alpha value=0 for transparency
368<P>
369<DL>
370</DL>
371</DL>
372<HR>
373
374<A NAME="green"><!-- --></A><H3>
375green</H3>
376<PRE>
377static final java.awt.Color <B>green</B></PRE>
378<DL>
379<DD>Greenstone dark background colour
380<P>
381<DL>
382</DL>
383</DL>
384<HR>
385
386<A NAME="lightGreen"><!-- --></A><H3>
387lightGreen</H3>
388<PRE>
389static final java.awt.Color <B>lightGreen</B></PRE>
390<DL>
391<DD>Greenstone light background colour
392<P>
393<DL>
394</DL>
395</DL>
396<HR>
397
398<A NAME="blue"><!-- --></A><H3>
399blue</H3>
400<PRE>
401static final java.awt.Color <B>blue</B></PRE>
402<DL>
403<DD>Fedora dark background colour
404<P>
405<DL>
406</DL>
407</DL>
408<HR>
409
410<A NAME="lightBlue"><!-- --></A><H3>
411lightBlue</H3>
412<PRE>
413static final java.awt.Color <B>lightBlue</B></PRE>
414<DL>
415<DD>Fedora light background colour
416<P>
417<DL>
418</DL>
419</DL>
420<HR>
421
422<A NAME="yellow"><!-- --></A><H3>
423yellow</H3>
424<PRE>
425static final java.awt.Color <B>yellow</B></PRE>
426<DL>
427<DD>Selection colour for Fedora and Greenstone
428<P>
429<DL>
430</DL>
431</DL>
432<HR>
433
434<A NAME="grey"><!-- --></A><H3>
435grey</H3>
436<PRE>
437static final java.awt.Color <B>grey</B></PRE>
438<DL>
439<DD>Default background colour
440<P>
441<DL>
442</DL>
443</DL>
444<HR>
445
446<A NAME="background"><!-- --></A><H3>
447background</H3>
448<PRE>
449static final java.awt.Color <B>background</B></PRE>
450<DL>
451<DD>Fixed background colour for textareas, editorPanes (html)
452<P>
453<DL>
454</DL>
455</DL>
456<HR>
457
458<A NAME="dark"><!-- --></A><H3>
459dark</H3>
460<PRE>
461public final java.awt.Color <B>dark</B></PRE>
462<DL>
463<DD>background colours for panels, labels
464<P>
465<DL>
466</DL>
467</DL>
468<HR>
469
470<A NAME="light"><!-- --></A><H3>
471light</H3>
472<PRE>
473public final java.awt.Color <B>light</B></PRE>
474<DL>
475<DD>background colours for comboboxes, lists, textfields, textareas
476<P>
477<DL>
478</DL>
479</DL>
480<HR>
481
482<A NAME="defaultColors"><!-- --></A><H3>
483defaultColors</H3>
484<PRE>
485public static final <A HREF="../../../org/greenstone/gs3client/ColourCombo.html" title="class in org.greenstone.gs3client">ColourCombo</A> <B>defaultColors</B></PRE>
486<DL>
487<DD>System default greys
488<P>
489<DL>
490</DL>
491</DL>
492<HR>
493
494<A NAME="greenstoneColors"><!-- --></A><H3>
495greenstoneColors</H3>
496<PRE>
497public static final <A HREF="../../../org/greenstone/gs3client/ColourCombo.html" title="class in org.greenstone.gs3client">ColourCombo</A> <B>greenstoneColors</B></PRE>
498<DL>
499<DD>Greenstone greens
500<P>
501<DL>
502</DL>
503</DL>
504<HR>
505
506<A NAME="fedoraColors"><!-- --></A><H3>
507fedoraColors</H3>
508<PRE>
509public static final <A HREF="../../../org/greenstone/gs3client/ColourCombo.html" title="class in org.greenstone.gs3client">ColourCombo</A> <B>fedoraColors</B></PRE>
510<DL>
511<DD>Fedora's colour combinations of blue
512<P>
513<DL>
514</DL>
515</DL>
516<HR>
517
518<A NAME="current"><!-- --></A><H3>
519current</H3>
520<PRE>
521protected static <A HREF="../../../org/greenstone/gs3client/ColourCombo.html" title="class in org.greenstone.gs3client">ColourCombo</A> <B>current</B></PRE>
522<DL>
523<DD>The colour combination currently being used in the interface
524<P>
525<DL>
526</DL>
527</DL>
528
529<!-- ========= CONSTRUCTOR DETAIL ======== -->
530
531<A NAME="constructor_detail"><!-- --></A>
532<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
533<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
534<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
535<B>Constructor Detail</B></FONT></TH>
536</TR>
537</TABLE>
538
539<A NAME="ColourCombo(java.awt.Color, java.awt.Color)"><!-- --></A><H3>
540ColourCombo</H3>
541<PRE>
542public <B>ColourCombo</B>(java.awt.Color&nbsp;dark,
543 java.awt.Color&nbsp;light)</PRE>
544<DL>
545<DD>Constructor to create a ColourCombo combination of colours
546<P>
547<DL>
548<DT><B>Parameters:</B><DD><CODE>dark</CODE> - is the colour to set JPanels to.<DD><CODE>light</CODE> - is the colour to set comboboxes, lists and non-editable
549 textfields to.</DL>
550</DL>
551
552<!-- ============ METHOD DETAIL ========== -->
553
554<A NAME="method_detail"><!-- --></A>
555<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
556<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
557<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
558<B>Method Detail</B></FONT></TH>
559</TR>
560</TABLE>
561
562<A NAME="getCurrentCombo()"><!-- --></A><H3>
563getCurrentCombo</H3>
564<PRE>
565public static <A HREF="../../../org/greenstone/gs3client/ColourCombo.html" title="class in org.greenstone.gs3client">ColourCombo</A> <B>getCurrentCombo</B>()</PRE>
566<DL>
567<DD><DL>
568</DL>
569</DD>
570</DL>
571<HR>
572
573<A NAME="setCurrentCombo(org.greenstone.gs3client.ColourCombo)"><!-- --></A><H3>
574setCurrentCombo</H3>
575<PRE>
576public static void <B>setCurrentCombo</B>(<A HREF="../../../org/greenstone/gs3client/ColourCombo.html" title="class in org.greenstone.gs3client">ColourCombo</A>&nbsp;c)</PRE>
577<DL>
578<DD><DL>
579</DL>
580</DD>
581</DL>
582<HR>
583
584<A NAME="setColour(int)"><!-- --></A><H3>
585setColour</H3>
586<PRE>
587public static void <B>setColour</B>(int&nbsp;DL)</PRE>
588<DL>
589<DD>Sets the active colour combination based on the value of DL.
590<P>
591<DD><DL>
592<DT><B>Parameters:</B><DD><CODE>DL</CODE> - represents the current digital library. Values can be
593 GS3JavaClient.GREENSTONE, GS3JavaClient.FEDORA, GS3JavaClient.SELECT.
594 Anything else and it defaults to GS3JavaClient.SELECT as well.</DL>
595</DD>
596</DL>
597<HR>
598
599<A NAME="isLightColor(java.awt.Component)"><!-- --></A><H3>
600isLightColor</H3>
601<PRE>
602protected static boolean <B>isLightColor</B>(java.awt.Component&nbsp;c)</PRE>
603<DL>
604<DD><DL>
605<DT><B>Parameters:</B><DD><CODE>c</CODE> - is the Component for which it is to be determined whether it
606 should be a lighter or darker colour.
607<DT><B>Returns:</B><DD>true if Component c should be a lighter colour (returns true
608 for non-editable JTextFields)</DL>
609</DD>
610</DL>
611<HR>
612
613<A NAME="changeColor(java.awt.Component[])"><!-- --></A><H3>
614changeColor</H3>
615<PRE>
616public static void <B>changeColor</B>(java.awt.Component[]&nbsp;leafComponents)</PRE>
617<DL>
618<DD>Given an array of components, sets their background colours to a
619 dark or light colour setting as appropriate.
620<P>
621<DD><DL>
622<DT><B>Parameters:</B><DD><CODE>leafComponents</CODE> - is the array of components whose background
623 colours are to change.</DL>
624</DD>
625</DL>
626<HR>
627
628<A NAME="changeColor(java.awt.Component)"><!-- --></A><H3>
629changeColor</H3>
630<PRE>
631public static void <B>changeColor</B>(java.awt.Component&nbsp;c)</PRE>
632<DL>
633<DD>Given a Component, sets its background colours to a dark or
634 light colour setting as appropriate.
635<P>
636<DD><DL>
637<DT><B>Parameters:</B><DD><CODE>c</CODE> - is the component whose background colours are to change.</DL>
638</DD>
639</DL>
640<HR>
641
642<A NAME="changeAncestorColor(java.awt.Component)"><!-- --></A><H3>
643changeAncestorColor</H3>
644<PRE>
645public static void <B>changeAncestorColor</B>(java.awt.Component&nbsp;c)</PRE>
646<DL>
647<DD>Given a component, sets its ancestors to the dark colour setting.
648<P>
649<DD><DL>
650<DT><B>Parameters:</B><DD><CODE>c</CODE> - is the component whose ancestors' background colours are
651 to be set.</DL>
652</DD>
653</DL>
654<!-- ========= END OF CLASS DATA ========= -->
655<HR>
656
657
658<!-- ======= START OF BOTTOM NAVBAR ====== -->
659<A NAME="navbar_bottom"><!-- --></A>
660<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
661<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
662<TR>
663<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
664<A NAME="navbar_bottom_firstrow"><!-- --></A>
665<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
666 <TR ALIGN="center" VALIGN="top">
667 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
668 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
669 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
670 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
671 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
672 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
673 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
674 </TR>
675</TABLE>
676</TD>
677<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
678</EM>
679</TD>
680</TR>
681
682<TR>
683<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
684&nbsp;<A HREF="../../../org/greenstone/gs3client/BrowseDisplay.ClassifierData.html" title="class in org.greenstone.gs3client"><B>PREV CLASS</B></A>&nbsp;
685&nbsp;<A HREF="../../../org/greenstone/gs3client/ColourCombo.ColourChangeable.html" title="interface in org.greenstone.gs3client"><B>NEXT CLASS</B></A></FONT></TD>
686<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
687 <A HREF="../../../index.html?org/greenstone/gs3client/ColourCombo.html" target="_top"><B>FRAMES</B></A> &nbsp;
688&nbsp;<A HREF="ColourCombo.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
689&nbsp;<SCRIPT type="text/javascript">
690 <!--
691 if(window==top) {
692 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
693 }
694 //-->
695</SCRIPT>
696<NOSCRIPT>
697 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
698</NOSCRIPT>
699
700
701</FONT></TD>
702</TR>
703<TR>
704<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
705 SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
706<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
707DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
708</TR>
709</TABLE>
710<A NAME="skip-navbar_bottom"></A>
711<!-- ======== END OF BOTTOM NAVBAR ======= -->
712
713<HR>
714
715</BODY>
716</HTML>
Note: See TracBrowser for help on using the repository browser.