⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jetacontroller.html

📁 Swing组件的可视化设计程序
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Forwarded from the view when a list selection event occurs.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="JETAController(com.jeta.open.gui.framework.JETAContainer)"><!-- --></A><H3>JETAController</H3><PRE>public <B>JETAController</B>(<A HREF="../../../../../com/jeta/open/gui/framework/JETAContainer.html" title="interface in com.jeta.open.gui.framework">JETAContainer</A>&nbsp;view)</PRE><DL><DD>ctor<P><DT><B>Parameters:</B><DD><CODE>view</CODE> - the view whose events we are handling.</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="actionPerformed(java.lang.String, java.awt.event.ActionEvent)"><!-- --></A><H3>actionPerformed</H3><PRE>public boolean <B>actionPerformed</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>&nbsp;actionName,                               <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/awt/event/ActionEvent.html" title="class or interface in java.awt.event">ActionEvent</A>&nbsp;evt)</PRE><DL><DD>Forwarded from the view when an action occurs.  This method lookups up the name of any ActionListener in the m_commands hash map that corresponds to the actionName. It then invokes the @see java.awt.ActionListener#actionPerformed method if a component is found.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>actionName</CODE> - the name of the action associated with the event<DD><CODE>evt</CODE> - the action event<DT><B>Returns:</B><DD>true if the controller handled the action</DL></DD></DL><HR><A NAME="assignAction(java.lang.String, java.awt.event.ActionListener)"><!-- --></A><H3>assignAction</H3><PRE>public void <B>assignAction</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>&nbsp;compName,                         <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/awt/event/ActionListener.html" title="class or interface in java.awt.event">ActionListener</A>&nbsp;action)</PRE><DL><DD>Registers and ActionListener with this controller.  This controller adds itself as a listener to all components with the given name in  the associated view.<P><DD><DL></DL></DD></DL><HR><A NAME="assignComponentAction(java.awt.Component, java.lang.String, java.awt.event.ActionListener)"><!-- --></A><H3>assignComponentAction</H3><PRE>protected void <B>assignComponentAction</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>&nbsp;comp,                                     <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>&nbsp;commandId,                                     <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/awt/event/ActionListener.html" title="class or interface in java.awt.event">ActionListener</A>&nbsp;action)</PRE><DL><DD>Registers this controller as an action listener with all components that have the given name found in the associated view.<P><DD><DL></DL></DD></DL><HR><A NAME="assignListener(java.lang.String, javax.swing.event.ListSelectionListener)"><!-- --></A><H3>assignListener</H3><PRE>public void <B>assignListener</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>&nbsp;compName,                           <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/event/ListSelectionListener.html" title="class or interface in javax.swing.event">ListSelectionListener</A>&nbsp;listener)</PRE><DL><DD>Assigns a list listener to the JList for the given name<P><DD><DL></DL></DD></DL><HR><A NAME="assignListener(java.lang.String, javax.swing.event.ChangeListener)"><!-- --></A><H3>assignListener</H3><PRE>public void <B>assignListener</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>&nbsp;compName,                           <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/event/ChangeListener.html" title="class or interface in javax.swing.event">ChangeListener</A>&nbsp;listener)</PRE><DL><DD>Assigns a change listener to the Component for the given name - assuming the component has method addChangeListener( ChangeListener )<P><DD><DL></DL></DD></DL><HR><A NAME="enableEvents(boolean)"><!-- --></A><H3>enableEvents</H3><PRE>public void <B>enableEvents</B>(boolean&nbsp;enable)</PRE><DL><DD>Sets the flag that indicates if listener/action events should be propagated to registered listeners<P><DD><DL></DL></DD></DL><HR><A NAME="getPrimaryActionListener()"><!-- --></A><H3>getPrimaryActionListener</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/awt/event/ActionListener.html" title="class or interface in java.awt.event">ActionListener</A> <B>getPrimaryActionListener</B>()</PRE><DL><DD>Returns the main action listener that is registered with components in the associated view.<P><DD><DL><DT><B>Returns:</B><DD>the main action listener</DL></DD></DL><HR><A NAME="getAction(java.lang.String)"><!-- --></A><H3>getAction</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/awt/event/ActionListener.html" title="class or interface in java.awt.event">ActionListener</A> <B>getAction</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>&nbsp;actionName)</PRE><DL><DD>Returns the first action listener associated with the given name. If the listener is not found, null is returned<P><DD><DL><DT><B>Returns:</B><DD>the action listener associated with the given component.</DL></DD></DL><HR><A NAME="invokeAction(java.lang.String)"><!-- --></A><H3>invokeAction</H3><PRE>public boolean <B>invokeAction</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>&nbsp;actionName)</PRE><DL><DD>Invokes the action assigned to the given name<P><DD><DL></DL></DD></DL><HR><A NAME="isEventsEnabled()"><!-- --></A><H3>isEventsEnabled</H3><PRE>public boolean <B>isEventsEnabled</B>()</PRE><DL><DD><DL><DT><B>Returns:</B><DD>the flag that indicates if listener/action events should be propagated to registered listeners</DL></DD></DL><HR><A NAME="stateChanged(javax.swing.event.ChangeEvent)"><!-- --></A><H3>stateChanged</H3><PRE>public void <B>stateChanged</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/event/ChangeEvent.html" title="class or interface in javax.swing.event">ChangeEvent</A>&nbsp;e)</PRE><DL><DD>Forwarded from the view when a change event occurs.<P><DD><DL></DL></DD></DL><HR><A NAME="updateComponents(java.lang.Object)"><!-- --></A><H3>updateComponents</H3><PRE>public void <B>updateComponents</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;src)</PRE><DL><DD>Forwards the call to the UIDirector if it is not null<P><DD><DL></DL></DD></DL><HR><A NAME="valueChanged(javax.swing.event.ListSelectionEvent)"><!-- --></A><H3>valueChanged</H3><PRE>public void <B>valueChanged</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/event/ListSelectionEvent.html" title="class or interface in javax.swing.event">ListSelectionEvent</A>&nbsp;e)</PRE><DL><DD>Forwarded from the view when a list selection event occurs.  This method<P><DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - the list selection event</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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/JETAController.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../../com/jeta/open/gui/framework/JETAContainer.html" title="interface in com.jeta.open.gui.framework"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../../com/jeta/open/gui/framework/JETAController.ListenerManager.html" title="class in com.jeta.open.gui.framework"><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>  &nbsp;&nbsp;<A HREF="JETAController.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><i>Copyright &#169; 2004 JETA Software Inc. All Rights Reserved.</i></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -