📄 jetacontroller.html
字号:
<BR> Forwarded from the view when a list selection event occurs.</TD></TR></TABLE> <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> <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> 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> 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> 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> 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> 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> 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> 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> 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> 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> 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> 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> 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 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> 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> 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> 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> 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> 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> </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/JETAController.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/gui/framework/JETAContainer.html" title="interface in com.jeta.open.gui.framework"><B>PREV CLASS</B></A> <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> <A HREF="JETAController.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: <A HREF="#nested_class_summary">NESTED</A> | 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 + -