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

📄 basiclistui.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<DD><B>Description copied from class: <CODE><A HREF="../../../../javax/swing/plaf/ListUI.html">ListUI</A></CODE></B></DD><DD>Returns the origin of the specified item in JList coordinates, null if index isn't valid.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/plaf/ListUI.html#indexToLocation(javax.swing.JList, int)">indexToLocation</A></CODE> in class <CODE><A HREF="../../../../javax/swing/plaf/ListUI.html">ListUI</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>The origin of the index'th cell, null if index is invalid.<DT><B>See Also: </B><DD><A HREF="../../../../javax/swing/plaf/ListUI.html#indexToLocation(javax.swing.JList, int)"><CODE>ListUI.indexToLocation(javax.swing.JList, int)</CODE></A></DL></DD></DL><HR><A NAME="getCellBounds(javax.swing.JList, int, int)"><!-- --></A><H3>getCellBounds</H3><PRE>public <A HREF="../../../../java/awt/Rectangle.html">Rectangle</A> <B>getCellBounds</B>(<A HREF="../../../../javax/swing/JList.html">JList</A>&nbsp;list,                               int&nbsp;index1,                               int&nbsp;index2)</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../../javax/swing/plaf/ListUI.html">ListUI</A></CODE></B></DD><DD>Returns the bounds of the specified item in JList coordinates, null if index isn't valid.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/plaf/ListUI.html#getCellBounds(javax.swing.JList, int, int)">getCellBounds</A></CODE> in class <CODE><A HREF="../../../../javax/swing/plaf/ListUI.html">ListUI</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>The bounds of the index'th cell.<DT><B>See Also: </B><DD><A HREF="../../../../javax/swing/plaf/ListUI.html#getCellBounds(javax.swing.JList, int, int)"><CODE>ListUI.getCellBounds(javax.swing.JList, int, int)</CODE></A></DL></DD></DL><HR><A NAME="getRowHeight(int)"><!-- --></A><H3>getRowHeight</H3><PRE>protected int <B>getRowHeight</B>(int&nbsp;row)</PRE><DL><DD>Returns the height of the specified row based on the current layout.<DD><DL><DT><B>Returns:</B><DD>The specified row height or -1 if row isn't valid.<DT><B>See Also: </B><DD><A HREF="../../../../javax/swing/plaf/basic/BasicListUI.html#convertYToRow(int)"><CODE>convertYToRow(int)</CODE></A>, <A HREF="../../../../javax/swing/plaf/basic/BasicListUI.html#convertRowToY(int)"><CODE>convertRowToY(int)</CODE></A>, <A HREF="../../../../javax/swing/plaf/basic/BasicListUI.html#updateLayoutState()"><CODE>updateLayoutState()</CODE></A></DL></DD></DL><HR><A NAME="convertYToRow(int)"><!-- --></A><H3>convertYToRow</H3><PRE>protected int <B>convertYToRow</B>(int&nbsp;y0)</PRE><DL><DD>Convert the JList relative coordinate to the row that contains it, based on the current layout.  If y0 doesn't fall within any row, return -1.<DD><DL><DT><B>Returns:</B><DD>The row that contains y0, or -1.<DT><B>See Also: </B><DD><A HREF="../../../../javax/swing/plaf/basic/BasicListUI.html#getRowHeight(int)"><CODE>getRowHeight(int)</CODE></A>, <A HREF="../../../../javax/swing/plaf/basic/BasicListUI.html#updateLayoutState()"><CODE>updateLayoutState()</CODE></A></DL></DD></DL><HR><A NAME="convertRowToY(int)"><!-- --></A><H3>convertRowToY</H3><PRE>protected int <B>convertRowToY</B>(int&nbsp;row)</PRE><DL><DD>Return the JList relative Y coordinate of the origin of the specified row or -1 if row isn't valid.<DD><DL><DT><B>Returns:</B><DD>The Y coordinate of the origin of row, or -1.<DT><B>See Also: </B><DD><A HREF="../../../../javax/swing/plaf/basic/BasicListUI.html#getRowHeight(int)"><CODE>getRowHeight(int)</CODE></A>, <A HREF="../../../../javax/swing/plaf/basic/BasicListUI.html#updateLayoutState()"><CODE>updateLayoutState()</CODE></A></DL></DD></DL><HR><A NAME="maybeUpdateLayoutState()"><!-- --></A><H3>maybeUpdateLayoutState</H3><PRE>protected void <B>maybeUpdateLayoutState</B>()</PRE><DL><DD>If updateLayoutStateNeeded is non zero, call updateLayoutState() and reset updateLayoutStateNeeded.  This method should be called by methods before doing any computation based on the geometry of the list. For example it's the first call in paint() and getPreferredSize().<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../../javax/swing/plaf/basic/BasicListUI.html#updateLayoutState()"><CODE>updateLayoutState()</CODE></A></DL></DD></DL><HR><A NAME="updateLayoutState()"><!-- --></A><H3>updateLayoutState</H3><PRE>protected void <B>updateLayoutState</B>()</PRE><DL><DD>Recompute the value of cellHeight or cellHeights based and cellWidth, based on the current font and the current values of fixedCellWidth, fixedCellHeight, and prototypeCellValue.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../../javax/swing/plaf/basic/BasicListUI.html#maybeUpdateLayoutState()"><CODE>maybeUpdateLayoutState()</CODE></A></DL></DD></DL><HR><A NAME="createMouseInputListener()"><!-- --></A><H3>createMouseInputListener</H3><PRE>protected <A HREF="../../../../javax/swing/event/MouseInputListener.html">MouseInputListener</A> <B>createMouseInputListener</B>()</PRE><DL><DD>Creates a delegate that implements MouseInputListener. The delegate is added to the corresponding java.awt.Component listener  lists at installUI() time. Subclasses can override this method to return  a custom MouseInputListener, e.g. <pre> class MyListUI extends BasicListUI {    protected MouseInputListener <b>createMouseInputListener</b>() {        return new MyMouseInputHandler();    }    public class MyMouseInputHandler extends MouseInputHandler {        public void mouseMoved(MouseEvent e) {            // do some extra work when the mouse moves            super.mouseMoved(e);        }    } } </pre><DD><DL><DT><B>See Also: </B><DD><A HREF="../../../../javax/swing/plaf/basic/BasicListUI.MouseInputHandler.html"><CODE>BasicListUI.MouseInputHandler</CODE></A>, <A HREF="../../../../javax/swing/plaf/basic/BasicListUI.html#installUI(javax.swing.JComponent)"><CODE>installUI(javax.swing.JComponent)</CODE></A></DL></DD></DL><HR><A NAME="createFocusListener()"><!-- --></A><H3>createFocusListener</H3><PRE>protected <A HREF="../../../../java/awt/event/FocusListener.html">FocusListener</A> <B>createFocusListener</B>()</PRE><DL></DL><HR><A NAME="createListSelectionListener()"><!-- --></A><H3>createListSelectionListener</H3><PRE>protected <A HREF="../../../../javax/swing/event/ListSelectionListener.html">ListSelectionListener</A> <B>createListSelectionListener</B>()</PRE><DL><DD>Creates an instance of ListSelectionHandler that's added to the JLists by selectionModel as needed.  Subclasses can override this method to return a custom ListSelectionListener, e.g. <pre> class MyListUI extends BasicListUI {    protected ListSelectionListener <b>createListSelectionListener</b>() {        return new MySelectionListener();    }    public class MySelectionListener extends ListSelectionHandler {        public void valueChanged(ListSelectionEvent e) {            // do some extra work when the selection changes            super.valueChange(e);        }    } } </pre><DD><DL><DT><B>See Also: </B><DD><A HREF="../../../../javax/swing/plaf/basic/BasicListUI.ListSelectionHandler.html"><CODE>BasicListUI.ListSelectionHandler</CODE></A>, <A HREF="../../../../javax/swing/plaf/basic/BasicListUI.html#installUI(javax.swing.JComponent)"><CODE>installUI(javax.swing.JComponent)</CODE></A></DL></DD></DL><HR><A NAME="createListDataListener()"><!-- --></A><H3>createListDataListener</H3><PRE>protected <A HREF="../../../../javax/swing/event/ListDataListener.html">ListDataListener</A> <B>createListDataListener</B>()</PRE><DL><DD>Creates an instance of ListDataListener that's added to the JLists by model as needed.  Subclasses can override this method to return a custom ListDataListener, e.g. <pre> class MyListUI extends BasicListUI {    protected ListDataListener <b>createListDataListener</b>() {        return new MyListDataListener();    }    public class MyListDataListener extends ListDataHandler {        public void contentsChanged(ListDataEvent e) {            // do some extra work when the models contents change            super.contentsChange(e);        }    } } </pre><DD><DL><DT><B>See Also: </B><DD><A HREF="../../../../javax/swing/event/ListDataListener.html"><CODE>ListDataListener</CODE></A>, <A HREF="../../../../javax/swing/JList.html#getModel()"><CODE>JList.getModel()</CODE></A>, <A HREF="../../../../javax/swing/plaf/basic/BasicListUI.html#installUI(javax.swing.JComponent)"><CODE>installUI(javax.swing.JComponent)</CODE></A></DL></DD></DL><HR><A NAME="createPropertyChangeListener()"><!-- --></A><H3>createPropertyChangeListener</H3><PRE>protected <A HREF="../../../../java/beans/PropertyChangeListener.html">PropertyChangeListener</A> <B>createPropertyChangeListener</B>()</PRE><DL><DD>Creates an instance of PropertyChangeHandler that's added to the JList by installUI().  Subclasses can override this method to return a custom PropertyChangeListener, e.g. <pre> class MyListUI extends BasicListUI {    protected PropertyChangeListener <b>createPropertyChangeListener</b>() {        return new MyPropertyChangeListener();    }    public class MyPropertyChangeListener extends PropertyChangeHandler {        public void propertyChange(PropertyChangeEvent e) {            if (e.getPropertyName().equals("model")) {                // do some extra work when the model changes            }            super.propertyChange(e);        }    } } </pre><DD><DL><DT><B>See Also: </B><DD><A HREF="../../../../java/beans/PropertyChangeListener.html"><CODE>PropertyChangeListener</CODE></A>, <A HREF="../../../../javax/swing/plaf/basic/BasicListUI.html#installUI(javax.swing.JComponent)"><CODE>installUI(javax.swing.JComponent)</CODE></A></DL></DD></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" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <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/BasicListUI.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-files/index-1.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><b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../javax/swing/plaf/basic/BasicLabelUI.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../javax/swing/plaf/basic/BasicListUI.FocusHandler.html"><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="BasicListUI.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;<A HREF="#inner_class_summary">INNER</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&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;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation  contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A.  All Rights Reserved.</font></BODY></HTML>

⌨️ 快捷键说明

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