📄 defaultcomponentfinder.html
字号:
</TR></TABLE><A NAME="DefaultComponentFinder(java.awt.Container)"><!-- --></A><H3>DefaultComponentFinder</H3><PRE>public <B>DefaultComponentFinder</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Container.html" title="class or interface in java.awt">Container</A> parent)</PRE><DL><DD>ctor<P></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="buildNames(java.awt.Container)"><!-- --></A><H3>buildNames</H3><PRE>protected void <B>buildNames</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Container.html" title="class or interface in java.awt">Container</A> container)</PRE><DL><DD>Recursively searches all Components owned by this container. If the Component has a name, we store it in the m_components hash table<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>container</CODE> - the container to search</DL></DD></DL><HR><A NAME="componentAdded(java.awt.event.ContainerEvent)"><!-- --></A><H3>componentAdded</H3><PRE>public void <B>componentAdded</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/awt/event/ContainerEvent.html" title="class or interface in java.awt.event">ContainerEvent</A> e)</PRE><DL><DD>A component was added to the container<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/awt/event/ContainerListener.html#componentAdded(java.awt.event.ContainerEvent)" title="class or interface in java.awt.event">componentAdded</A></CODE> in interface <CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/awt/event/ContainerListener.html" title="class or interface in java.awt.event">ContainerListener</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="componentRemoved(java.awt.event.ContainerEvent)"><!-- --></A><H3>componentRemoved</H3><PRE>public void <B>componentRemoved</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/awt/event/ContainerEvent.html" title="class or interface in java.awt.event">ContainerEvent</A> e)</PRE><DL><DD>A component was remove from the container<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/awt/event/ContainerListener.html#componentRemoved(java.awt.event.ContainerEvent)" title="class or interface in java.awt.event">componentRemoved</A></CODE> in interface <CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/awt/event/ContainerListener.html" title="class or interface in java.awt.event">ContainerListener</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="enableComponent(java.lang.String, boolean)"><!-- --></A><H3>enableComponent</H3><PRE>public void <B>enableComponent</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> commandId, boolean bEnable)</PRE><DL><DD>Enables/Disables the menu/toolbar button associated with the commandid<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>commandId</CODE> - the id of the command whose button to enable/disable<DD><CODE>bEnable</CODE> - true/false to enable/disable</DL></DD></DL><HR><A NAME="getComponentByName(java.lang.String)"><!-- --></A><H3>getComponentByName</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Component.html" title="class or interface in java.awt">Component</A> <B>getComponentByName</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> componentName)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../com/jeta/open/support/ComponentFinder.html" title="interface in com.jeta.open.support">ComponentFinder</A></CODE></B></DD><DD>Recursively searches an associated parent container for a component with the given name. The first component found that has the name is returned. Null is returned if no component is found.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/jeta/open/support/ComponentFinder.html#getComponentByName(java.lang.String)">getComponentByName</A></CODE> in interface <CODE><A HREF="../../../../com/jeta/open/support/ComponentFinder.html" title="interface in com.jeta.open.support">ComponentFinder</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getComponentsByName(java.lang.String)"><!-- --></A><H3>getComponentsByName</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A> <B>getComponentsByName</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> compName)</PRE><DL><DD>Recursively searches an associated parent container for all components with the given name. An empty collection is returned if no components are found with the given name.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/jeta/open/support/ComponentFinder.html#getComponentsByName(java.lang.String)">getComponentsByName</A></CODE> in interface <CODE><A HREF="../../../../com/jeta/open/support/ComponentFinder.html" title="interface in com.jeta.open.support">ComponentFinder</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="unregisterComponent(java.awt.Component)"><!-- --></A><H3>unregisterComponent</H3><PRE>public void <B>unregisterComponent</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Component.html" title="class or interface in java.awt">Component</A> c)</PRE><DL><DD>Tells the implementation that any cached components should be flushed and reloaded because the parent container might have changed.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setVisible(java.lang.String, boolean)"><!-- --></A><H3>setVisible</H3><PRE>public void <B>setVisible</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> commandId, boolean bVisible)</PRE><DL><DD>Shows/Hides the menu/toolbar button associated with the commandid<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>commandId</CODE> - the id of the command whose button to enable/disable<DD><CODE>bVisible</CODE> - show/hide the component/disable</DL></DD></DL><HR><A NAME="reset()"><!-- --></A><H3>reset</H3><PRE>public void <B>reset</B>()</PRE><DL><DD>Tells the implementation that any cached components should be flushed and reloaded because the parent container might have changed.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/jeta/open/support/ComponentFinder.html#reset()">reset</A></CODE> in interface <CODE><A HREF="../../../../com/jeta/open/support/ComponentFinder.html" title="interface in com.jeta.open.support">ComponentFinder</A></CODE></DL></DD><DD><DL></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=3 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/DefaultComponentFinder.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-all.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/jeta/open/support/CompositeComponentFinder.html" title="class in com.jeta.open.support"><B>PREV CLASS</B></A> <A HREF="../../../../com/jeta/open/support/DefaultComponentFinderFactory.html" title="class in com.jeta.open.support"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="DefaultComponentFinder.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 | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><i>Copyright © 2004 JETA Software Inc. All Rights Reserved.</i></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -