📄 resources.html.svn-base
字号:
public java.lang.String[] <B>getL10NResourceNames</B>()</PRE>
<DL>
<DD>Returns the names of the localization bundles within this bundle
<P>
<DD><DL>
<DT><B>Returns:</B><DD>array of names of the localization resources in this bundle</DL>
</DD>
</DL>
<HR>
<A NAME="getFontResourceNames()"><!-- --></A><H3>
getFontResourceNames</H3>
<PRE>
public java.lang.String[] <B>getFontResourceNames</B>()</PRE>
<DL>
<DD>Returns the names of the fonts within this bundle
<P>
<DD><DL>
<DT><B>Returns:</B><DD>array of names of the font resources in this bundle</DL>
</DD>
</DL>
<HR>
<A NAME="getThemeResourceNames()"><!-- --></A><H3>
getThemeResourceNames</H3>
<PRE>
public java.lang.String[] <B>getThemeResourceNames</B>()</PRE>
<DL>
<DD>Returns the names of the images within this bundle
<P>
<DD><DL>
<DT><B>Returns:</B><DD>array of names of the image resources in this bundle</DL>
</DD>
</DL>
<HR>
<A NAME="getImageResourceNames()"><!-- --></A><H3>
getImageResourceNames</H3>
<PRE>
public java.lang.String[] <B>getImageResourceNames</B>()</PRE>
<DL>
<DD>Returns the names of the images within this bundle
<P>
<DD><DL>
<DT><B>Returns:</B><DD>array of names of the image resources in this bundle</DL>
</DD>
</DL>
<HR>
<A NAME="getAnimationResourceNames()"><!-- --></A><H3>
getAnimationResourceNames</H3>
<PRE>
public java.lang.String[] <B>getAnimationResourceNames</B>()</PRE>
<DL>
<DD>Returns the names of the animations within this bundle
<P>
<DD><DL>
<DT><B>Returns:</B><DD>array of names of the animation resources in this bundle</DL>
</DD>
</DL>
<HR>
<A NAME="isL10N(java.lang.String)"><!-- --></A><H3>
isL10N</H3>
<PRE>
public boolean <B>isL10N</B>(java.lang.String name)</PRE>
<DL>
<DD>Returns true if this is a generic data resource
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the resource
<DT><B>Returns:</B><DD>true if the resource is a data resource
<DT><B>Throws:</B>
<DD><CODE>java.lang.NullPointerException</CODE> - if the resource doesn't exist</DL>
</DD>
</DL>
<HR>
<A NAME="isTheme(java.lang.String)"><!-- --></A><H3>
isTheme</H3>
<PRE>
public boolean <B>isTheme</B>(java.lang.String name)</PRE>
<DL>
<DD>Returns true if this is a theme resource
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the resource
<DT><B>Returns:</B><DD>true if the resource is a theme
<DT><B>Throws:</B>
<DD><CODE>java.lang.NullPointerException</CODE> - if the resource doesn't exist</DL>
</DD>
</DL>
<HR>
<A NAME="isFont(java.lang.String)"><!-- --></A><H3>
isFont</H3>
<PRE>
public boolean <B>isFont</B>(java.lang.String name)</PRE>
<DL>
<DD>Returns true if this is a font resource
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the resource
<DT><B>Returns:</B><DD>true if the resource is a font
<DT><B>Throws:</B>
<DD><CODE>java.lang.NullPointerException</CODE> - if the resource doesn't exist</DL>
</DD>
</DL>
<HR>
<A NAME="isAnimation(java.lang.String)"><!-- --></A><H3>
isAnimation</H3>
<PRE>
public boolean <B>isAnimation</B>(java.lang.String name)</PRE>
<DL>
<DD>Returns true if this is an animation resource
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the resource
<DT><B>Returns:</B><DD>true if the resource is an animation
<DT><B>Throws:</B>
<DD><CODE>java.lang.NullPointerException</CODE> - if the resource doesn't exist</DL>
</DD>
</DL>
<HR>
<A NAME="isData(java.lang.String)"><!-- --></A><H3>
isData</H3>
<PRE>
public boolean <B>isData</B>(java.lang.String name)</PRE>
<DL>
<DD>Returns true if this is a data resource
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the resource
<DT><B>Returns:</B><DD>true if the resource is a data resource
<DT><B>Throws:</B>
<DD><CODE>java.lang.NullPointerException</CODE> - if the resource doesn't exist</DL>
</DD>
</DL>
<HR>
<A NAME="isImage(java.lang.String)"><!-- --></A><H3>
isImage</H3>
<PRE>
public boolean <B>isImage</B>(java.lang.String name)</PRE>
<DL>
<DD>Returns true if this is an image resource
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the resource
<DT><B>Returns:</B><DD>true if the resource is an image
<DT><B>Throws:</B>
<DD><CODE>java.lang.NullPointerException</CODE> - if the resource doesn't exist</DL>
</DD>
</DL>
<HR>
<A NAME="open(java.lang.String)"><!-- --></A><H3>
open</H3>
<PRE>
public static <A HREF="../../../../com/sun/lwuit/util/Resources.html" title="class in com.sun.lwuit.util">Resources</A> <B>open</B>(java.lang.String resource)
throws java.io.IOException</PRE>
<DL>
<DD>Creates a resource object from the local JAR resource identifier
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>resource</CODE> - a local reference to a resource using the syntax of Class.getResourceAsStream(String)
<DT><B>Returns:</B><DD>a resource object
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE> - if opening/reading the resource fails</DL>
</DD>
</DL>
<HR>
<A NAME="open(java.io.InputStream)"><!-- --></A><H3>
open</H3>
<PRE>
public static <A HREF="../../../../com/sun/lwuit/util/Resources.html" title="class in com.sun.lwuit.util">Resources</A> <B>open</B>(java.io.InputStream resource)
throws java.io.IOException</PRE>
<DL>
<DD>Creates a resource object from the given input stream
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>resource</CODE> - stream from which to read the resource
<DT><B>Returns:</B><DD>a resource object
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE> - if opening/reading the resource fails</DL>
</DD>
</DL>
<HR>
<A NAME="getImage(java.lang.String)"><!-- --></A><H3>
getImage</H3>
<PRE>
public <A HREF="../../../../com/sun/lwuit/Image.html" title="class in com.sun.lwuit">Image</A> <B>getImage</B>(java.lang.String id)</PRE>
<DL>
<DD>Returns the image resource from the file
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>id</CODE> - name of the image resource
<DT><B>Returns:</B><DD>cached image instance</DL>
</DD>
</DL>
<HR>
<A NAME="getAnimation(java.lang.String)"><!-- --></A><H3>
getAnimation</H3>
<PRE>
public <A HREF="../../../../com/sun/lwuit/StaticAnimation.html" title="class in com.sun.lwuit">StaticAnimation</A> <B>getAnimation</B>(java.lang.String id)</PRE>
<DL>
<DD>Returns the animation resource from the file
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>id</CODE> - name of the animation resource
<DT><B>Returns:</B><DD>cached image instance</DL>
</DD>
</DL>
<HR>
<A NAME="getData(java.lang.String)"><!-- --></A><H3>
getData</H3>
<PRE>
public java.io.InputStream <B>getData</B>(java.lang.String id)</PRE>
<DL>
<DD>Returns the data resource from the file
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>id</CODE> - name of the data resource
<DT><B>Returns:</B><DD>newly created input stream that allows reading the data of the resource</DL>
</DD>
</DL>
<HR>
<A NAME="getL10N(java.lang.String, java.lang.String)"><!-- --></A><H3>
getL10N</H3>
<PRE>
public java.util.Hashtable <B>getL10N</B>(java.lang.String id,
java.lang.String locale)</PRE>
<DL>
<DD>Returns a hashmap containing localized String key/value pairs for the given locale name
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>id</CODE> - name of the data resource<DD><CODE>locale</CODE> - name of the locale resource
<DT><B>Returns:</B><DD>Hashtable containing key value pairs for localized data</DL>
</DD>
</DL>
<HR>
<A NAME="getFont(java.lang.String)"><!-- --></A><H3>
getFont</H3>
<PRE>
public <A HREF="../../../../com/sun/lwuit/Font.html" title="class in com.sun.lwuit">Font</A> <B>getFont</B>(java.lang.String id)</PRE>
<DL>
<DD>Returns the font resource from the file
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>id</CODE> - name of the font resource
<DT><B>Returns:</B><DD>cached font instance</DL>
</DD>
</DL>
<HR>
<A NAME="getTheme(java.lang.String)"><!-- --></A><H3>
getTheme</H3>
<PRE>
public java.util.Hashtable <B>getTheme</B>(java.lang.String id)</PRE>
<DL>
<DD>Returns the theme resource from the file
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>id</CODE> - name of the theme resource
<DT><B>Returns:</B><DD>cached theme instance</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Resources.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="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" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../com/sun/lwuit/util/Log.html" title="class in com.sun.lwuit.util"><B>PREV CLASS</B></A>
NEXT CLASS</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?com/sun/lwuit/util/Resources.html" target="_top"><B>FRAMES</B></A>
<A HREF="Resources.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -