mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-02 15:15:23 +00:00
348 lines
13 KiB
HTML
348 lines
13 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
|
<!--NewPage-->
|
|
<HTML>
|
|
<HEAD>
|
|
<!-- Generated by javadoc on Sun Aug 01 23:07:05 MDT 1999 -->
|
|
<TITLE>
|
|
: Interface Preferences
|
|
</TITLE>
|
|
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
|
|
</HEAD>
|
|
<BODY BGCOLOR="white">
|
|
|
|
<!-- ========== START OF NAVBAR ========== -->
|
|
<A NAME="navbar_top"><!-- --></A>
|
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
|
|
<TR>
|
|
<TD COLSPAN=2 BGCOLOR="#EEEEFF" ID="NavBarCell1">
|
|
<A NAME="navbar_top_firstrow"><!-- --></A>
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
|
|
<TR ALIGN="center" VALIGN="top">
|
|
<TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#FFFFFF" ID="NavBarCell1Rev"> <FONT ID="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
|
<TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="../../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
|
</TR>
|
|
</TABLE>
|
|
</TD>
|
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
|
</EM>
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR>
|
|
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../calypso/util/MemoryPressure.html"><B>PREV CLASS</B></A>
|
|
NEXT CLASS</FONT></TD>
|
|
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A>
|
|
<A HREF="Preferences.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
|
|
</TR>
|
|
<TR>
|
|
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
|
|
SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
|
|
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
<!-- =========== END OF NAVBAR =========== -->
|
|
|
|
<HR>
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<H2>
|
|
<FONT SIZE="-1">
|
|
calypso.util</FONT>
|
|
<BR>
|
|
Interface Preferences</H2>
|
|
<HR>
|
|
<DL>
|
|
<DT>public abstract interface <B>Preferences</B></DL>
|
|
|
|
<P>
|
|
This is an interface to get things from the Preferences database.
|
|
<P>
|
|
<DL>
|
|
<DT><B>See Also: </B><DD><A HREF="../../calypso/util/PreferencesFactory.html"><CODE>PreferencesFactory</CODE></A></DL>
|
|
<HR>
|
|
|
|
<P>
|
|
<!-- ======== INNER CLASS SUMMARY ======== -->
|
|
|
|
|
|
<!-- =========== FIELD SUMMARY =========== -->
|
|
|
|
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
|
|
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
|
|
<A NAME="method_summary"><!-- --></A>
|
|
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
|
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
|
|
<TD COLSPAN=2><FONT SIZE="+2">
|
|
<B>Method Summary</B></FONT></TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" ID="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> java.util.Properties</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../calypso/util/Preferences.html#getAsProperties()">getAsProperties</A></B>()</CODE>
|
|
|
|
<BR>
|
|
Return the preferences as a Properties object</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" ID="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../calypso/util/Preferences.html#getBoolean(java.lang.String)">getBoolean</A></B>(java.lang.String prefname)</CODE>
|
|
|
|
<BR>
|
|
Given a name of a preference, return its value as a boolean.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" ID="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> boolean</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../calypso/util/Preferences.html#getBoolean(java.lang.String, boolean)">getBoolean</A></B>(java.lang.String prefname,
|
|
boolean defaultValue)</CODE>
|
|
|
|
<BR>
|
|
Given a name of a preference, return its value as a boolean.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" ID="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> java.io.File</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../calypso/util/Preferences.html#getFile(java.lang.String, java.io.File)">getFile</A></B>(java.lang.String prefname,
|
|
java.io.File defaultValue)</CODE>
|
|
|
|
<BR>
|
|
Given a name of a preference, return its value as an File.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" ID="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../calypso/util/Preferences.html#getInt(java.lang.String)">getInt</A></B>(java.lang.String prefname)</CODE>
|
|
|
|
<BR>
|
|
Given a name of a preference, return its value as an int.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" ID="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> int</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../calypso/util/Preferences.html#getInt(java.lang.String, int)">getInt</A></B>(java.lang.String prefname,
|
|
int defaultValue)</CODE>
|
|
|
|
<BR>
|
|
Given a name of a preference, return its value as an int.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" ID="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> java.lang.String</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../calypso/util/Preferences.html#getString(java.lang.String)">getString</A></B>(java.lang.String prefname)</CODE>
|
|
|
|
<BR>
|
|
Given a name of a preference, return its value as a String.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" ID="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> java.lang.String</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../calypso/util/Preferences.html#getString(java.lang.String, java.lang.String)">getString</A></B>(java.lang.String prefname,
|
|
java.lang.String defaultValue)</CODE>
|
|
|
|
<BR>
|
|
Given a name of a preference, return its value as a String.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" ID="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../calypso/util/Preferences.html#putBoolean(java.lang.String, boolean)">putBoolean</A></B>(java.lang.String prefname,
|
|
boolean value)</CODE>
|
|
|
|
<BR>
|
|
Assign a boolean value to the given preference.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" ID="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../calypso/util/Preferences.html#putInt(java.lang.String, int)">putInt</A></B>(java.lang.String prefname,
|
|
int value)</CODE>
|
|
|
|
<BR>
|
|
Assign an int value to the given preference.</TD>
|
|
</TR>
|
|
<TR BGCOLOR="white" ID="TableRowColor">
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
<CODE> void</CODE></FONT></TD>
|
|
<TD><CODE><B><A HREF="../../calypso/util/Preferences.html#putString(java.lang.String, java.lang.String)">putString</A></B>(java.lang.String prefname,
|
|
java.lang.String value)</CODE>
|
|
|
|
<BR>
|
|
Assign a String value to the given preference.</TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<P>
|
|
|
|
<!-- ============ FIELD DETAIL =========== -->
|
|
|
|
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
|
|
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
|
|
<A NAME="method_detail"><!-- --></A>
|
|
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
|
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
|
|
<TD COLSPAN=1><FONT SIZE="+2">
|
|
<B>Method Detail</B></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
|
|
<A NAME="getString(java.lang.String, java.lang.String)"><!-- --></A><H3>
|
|
getString</H3>
|
|
<PRE>
|
|
public java.lang.String <B>getString</B>(java.lang.String prefname,
|
|
java.lang.String defaultValue)</PRE>
|
|
<DL>
|
|
<DD>Given a name of a preference, return its value as a String. If it's not
|
|
defined, return the given default.</DL>
|
|
<HR>
|
|
|
|
<A NAME="getString(java.lang.String)"><!-- --></A><H3>
|
|
getString</H3>
|
|
<PRE>
|
|
public java.lang.String <B>getString</B>(java.lang.String prefname)</PRE>
|
|
<DL>
|
|
<DD>Given a name of a preference, return its value as a String.</DL>
|
|
<HR>
|
|
|
|
<A NAME="getInt(java.lang.String, int)"><!-- --></A><H3>
|
|
getInt</H3>
|
|
<PRE>
|
|
public int <B>getInt</B>(java.lang.String prefname,
|
|
int defaultValue)</PRE>
|
|
<DL>
|
|
<DD>Given a name of a preference, return its value as an int. If it's not
|
|
defined, return the given default.</DL>
|
|
<HR>
|
|
|
|
<A NAME="getInt(java.lang.String)"><!-- --></A><H3>
|
|
getInt</H3>
|
|
<PRE>
|
|
public int <B>getInt</B>(java.lang.String prefname)</PRE>
|
|
<DL>
|
|
<DD>Given a name of a preference, return its value as an int.</DL>
|
|
<HR>
|
|
|
|
<A NAME="getBoolean(java.lang.String, boolean)"><!-- --></A><H3>
|
|
getBoolean</H3>
|
|
<PRE>
|
|
public boolean <B>getBoolean</B>(java.lang.String prefname,
|
|
boolean defaultValue)</PRE>
|
|
<DL>
|
|
<DD>Given a name of a preference, return its value as a boolean. If it's not
|
|
defined, return the given default.</DL>
|
|
<HR>
|
|
|
|
<A NAME="getBoolean(java.lang.String)"><!-- --></A><H3>
|
|
getBoolean</H3>
|
|
<PRE>
|
|
public boolean <B>getBoolean</B>(java.lang.String prefname)</PRE>
|
|
<DL>
|
|
<DD>Given a name of a preference, return its value as a boolean.</DL>
|
|
<HR>
|
|
|
|
<A NAME="getFile(java.lang.String, java.io.File)"><!-- --></A><H3>
|
|
getFile</H3>
|
|
<PRE>
|
|
public java.io.File <B>getFile</B>(java.lang.String prefname,
|
|
java.io.File defaultValue)</PRE>
|
|
<DL>
|
|
<DD>Given a name of a preference, return its value as an File. If it's not
|
|
defined, return the given default.</DL>
|
|
<HR>
|
|
|
|
<A NAME="putString(java.lang.String, java.lang.String)"><!-- --></A><H3>
|
|
putString</H3>
|
|
<PRE>
|
|
public void <B>putString</B>(java.lang.String prefname,
|
|
java.lang.String value)</PRE>
|
|
<DL>
|
|
<DD>Assign a String value to the given preference.</DL>
|
|
<HR>
|
|
|
|
<A NAME="putInt(java.lang.String, int)"><!-- --></A><H3>
|
|
putInt</H3>
|
|
<PRE>
|
|
public void <B>putInt</B>(java.lang.String prefname,
|
|
int value)</PRE>
|
|
<DL>
|
|
<DD>Assign an int value to the given preference.</DL>
|
|
<HR>
|
|
|
|
<A NAME="putBoolean(java.lang.String, boolean)"><!-- --></A><H3>
|
|
putBoolean</H3>
|
|
<PRE>
|
|
public void <B>putBoolean</B>(java.lang.String prefname,
|
|
boolean value)</PRE>
|
|
<DL>
|
|
<DD>Assign a boolean value to the given preference.</DL>
|
|
<HR>
|
|
|
|
<A NAME="getAsProperties()"><!-- --></A><H3>
|
|
getAsProperties</H3>
|
|
<PRE>
|
|
public java.util.Properties <B>getAsProperties</B>()</PRE>
|
|
<DL>
|
|
<DD>Return the preferences as a Properties object</DL>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
<HR>
|
|
|
|
<!-- ========== START OF NAVBAR ========== -->
|
|
<A NAME="navbar_bottom"><!-- --></A>
|
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
|
|
<TR>
|
|
<TD COLSPAN=2 BGCOLOR="#EEEEFF" ID="NavBarCell1">
|
|
<A NAME="navbar_bottom_firstrow"><!-- --></A>
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
|
|
<TR ALIGN="center" VALIGN="top">
|
|
<TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#FFFFFF" ID="NavBarCell1Rev"> <FONT ID="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
|
<TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="../../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
|
<TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
|
</TR>
|
|
</TABLE>
|
|
</TD>
|
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
|
</EM>
|
|
</TD>
|
|
</TR>
|
|
|
|
<TR>
|
|
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../calypso/util/MemoryPressure.html"><B>PREV CLASS</B></A>
|
|
NEXT CLASS</FONT></TD>
|
|
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
|
|
<A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A>
|
|
<A HREF="Preferences.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
|
|
</TR>
|
|
<TR>
|
|
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
|
|
SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
|
|
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
|
</TR>
|
|
</TABLE>
|
|
<!-- =========== END OF NAVBAR =========== -->
|
|
|
|
<HR>
|
|
|
|
</BODY>
|
|
</HTML>
|