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>
|
---|
7 | ColourCombo
|
---|
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">
|
---|
15 | function 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> </TD>
|
---|
38 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
39 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
40 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
42 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
43 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </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 | <A HREF="../../../org/greenstone/gs3client/BrowseDisplay.ClassifierData.html" title="class in org.greenstone.gs3client"><B>PREV CLASS</B></A>
|
---|
55 | <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>
|
---|
58 | <A HREF="ColourCombo.html" target="_top"><B>NO FRAMES</B></A>
|
---|
59 | <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: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
76 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
77 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <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">
|
---|
87 | org.greenstone.gs3client</FONT>
|
---|
88 | <BR>
|
---|
89 | Class ColourCombo</H2>
|
---|
90 | <PRE>
|
---|
91 | java.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>
|
---|
100 | Background 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 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 | Interface ColourChangeable defines one method, changeUIColour(),
|
---|
128 | which classes whose user-interface colours can change may
|
---|
129 | implement.</TD>
|
---|
130 | </TR>
|
---|
131 | </TABLE>
|
---|
132 | <!-- =========== 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 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 | 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 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 | 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 <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 | 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> 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 | 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 <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 | 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 <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 | 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 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 | 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 <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 | 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 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 | 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> 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 | 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 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 | 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 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 | 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 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 | 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 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 | Selection colour for Fedora and Greenstone</TD>
|
---|
251 | </TR>
|
---|
252 | </TABLE>
|
---|
253 |
|
---|
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 dark,
|
---|
264 | java.awt.Color light)</CODE>
|
---|
265 |
|
---|
266 | <BR>
|
---|
267 | Constructor to create a ColourCombo combination of colours</TD>
|
---|
268 | </TR>
|
---|
269 | </TABLE>
|
---|
270 |
|
---|
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 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 c)</CODE>
|
---|
283 |
|
---|
284 | <BR>
|
---|
285 | 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 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 c)</CODE>
|
---|
291 |
|
---|
292 | <BR>
|
---|
293 | 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 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[] leafComponents)</CODE>
|
---|
300 |
|
---|
301 | <BR>
|
---|
302 | 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 <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 | </TD>
|
---|
312 | </TR>
|
---|
313 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
314 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
315 | <CODE>protected static 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 c)</CODE>
|
---|
317 |
|
---|
318 | <BR>
|
---|
319 | </TD>
|
---|
320 | </TR>
|
---|
321 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
322 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
323 | <CODE>static void</CODE></FONT></TD>
|
---|
324 | <TD><CODE><B><A HREF="../../../org/greenstone/gs3client/ColourCombo.html#setColour(int)">setColour</A></B>(int DL)</CODE>
|
---|
325 |
|
---|
326 | <BR>
|
---|
327 | 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 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> c)</CODE>
|
---|
333 |
|
---|
334 | <BR>
|
---|
335 | </TD>
|
---|
336 | </TR>
|
---|
337 | </TABLE>
|
---|
338 | <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 |
|
---|
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>
|
---|
361 | transparent</H3>
|
---|
362 | <PRE>
|
---|
363 | static 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>
|
---|
375 | green</H3>
|
---|
376 | <PRE>
|
---|
377 | static 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>
|
---|
387 | lightGreen</H3>
|
---|
388 | <PRE>
|
---|
389 | static 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>
|
---|
399 | blue</H3>
|
---|
400 | <PRE>
|
---|
401 | static 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>
|
---|
411 | lightBlue</H3>
|
---|
412 | <PRE>
|
---|
413 | static 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>
|
---|
423 | yellow</H3>
|
---|
424 | <PRE>
|
---|
425 | static 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>
|
---|
435 | grey</H3>
|
---|
436 | <PRE>
|
---|
437 | static 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>
|
---|
447 | background</H3>
|
---|
448 | <PRE>
|
---|
449 | static 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>
|
---|
459 | dark</H3>
|
---|
460 | <PRE>
|
---|
461 | public 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>
|
---|
471 | light</H3>
|
---|
472 | <PRE>
|
---|
473 | public 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>
|
---|
483 | defaultColors</H3>
|
---|
484 | <PRE>
|
---|
485 | public 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>
|
---|
495 | greenstoneColors</H3>
|
---|
496 | <PRE>
|
---|
497 | public 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>
|
---|
507 | fedoraColors</H3>
|
---|
508 | <PRE>
|
---|
509 | public 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>
|
---|
519 | current</H3>
|
---|
520 | <PRE>
|
---|
521 | protected 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>
|
---|
540 | ColourCombo</H3>
|
---|
541 | <PRE>
|
---|
542 | public <B>ColourCombo</B>(java.awt.Color dark,
|
---|
543 | java.awt.Color 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>
|
---|
563 | getCurrentCombo</H3>
|
---|
564 | <PRE>
|
---|
565 | public 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>
|
---|
574 | setCurrentCombo</H3>
|
---|
575 | <PRE>
|
---|
576 | public static void <B>setCurrentCombo</B>(<A HREF="../../../org/greenstone/gs3client/ColourCombo.html" title="class in org.greenstone.gs3client">ColourCombo</A> c)</PRE>
|
---|
577 | <DL>
|
---|
578 | <DD><DL>
|
---|
579 | </DL>
|
---|
580 | </DD>
|
---|
581 | </DL>
|
---|
582 | <HR>
|
---|
583 |
|
---|
584 | <A NAME="setColour(int)"><!-- --></A><H3>
|
---|
585 | setColour</H3>
|
---|
586 | <PRE>
|
---|
587 | public static void <B>setColour</B>(int 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>
|
---|
600 | isLightColor</H3>
|
---|
601 | <PRE>
|
---|
602 | protected static boolean <B>isLightColor</B>(java.awt.Component 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>
|
---|
614 | changeColor</H3>
|
---|
615 | <PRE>
|
---|
616 | public static void <B>changeColor</B>(java.awt.Component[] 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>
|
---|
629 | changeColor</H3>
|
---|
630 | <PRE>
|
---|
631 | public static void <B>changeColor</B>(java.awt.Component 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>
|
---|
643 | changeAncestorColor</H3>
|
---|
644 | <PRE>
|
---|
645 | public static void <B>changeAncestorColor</B>(java.awt.Component 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> </TD>
|
---|
668 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
669 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
670 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
671 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
672 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
673 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </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 | <A HREF="../../../org/greenstone/gs3client/BrowseDisplay.ClassifierData.html" title="class in org.greenstone.gs3client"><B>PREV CLASS</B></A>
|
---|
685 | <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>
|
---|
688 | <A HREF="ColourCombo.html" target="_top"><B>NO FRAMES</B></A>
|
---|
689 | <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: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
706 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
707 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <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>
|
---|