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

📄 propertiestablemodel.html

📁 XMLVocabulary支持显示、查询、修改和保存XML数据。可以将XML映射到数据库。你也需要的只是使用XML作为你的项目的主数据。
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<P>

<!-- ============ FIELD DETAIL =========== -->


<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="PropertiesTableModel()"><!-- --></A><H3>
PropertiesTableModel</H3>
<PRE>
public <B>PropertiesTableModel</B>()</PRE>
<DL>
<DD>Creates a new empty model.
<P>
</DL>
<HR>

<A NAME="PropertiesTableModel(java.lang.Object[][])"><!-- --></A><H3>
PropertiesTableModel</H3>
<PRE>
public <B>PropertiesTableModel</B>(java.lang.Object[][]&nbsp;properties)</PRE>
<DL>
<DD>Creates a new model based on the given array of values.
<P>
</DL>
<HR>

<A NAME="PropertiesTableModel(java.util.Properties)"><!-- --></A><H3>
PropertiesTableModel</H3>
<PRE>
public <B>PropertiesTableModel</B>(java.util.Properties&nbsp;properties)</PRE>
<DL>
<DD>Creates a new model based on the given properties.
<P>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="addRow(java.lang.String, java.lang.Object)"><!-- --></A><H3>
addRow</H3>
<PRE>
public <A HREF="../../../org/amic/properties/PropertiesTableModel.Property.html">PropertiesTableModel.Property</A> <B>addRow</B>(java.lang.String&nbsp;rowName,                                            java.lang.Object&nbsp;value)</PRE>
<DL>
<DD>Adds a new row. Each row represents a single property.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>rowName</CODE> - The name of the property.<DD><CODE>value</CODE> - The value assigned to the property.<DT><B>Returns:</B><DD>An instance of the Property class with the new created property.</DL>
</DD>
</DL>
<HR>

<A NAME="addValidValue(java.lang.String, java.lang.Object)"><!-- --></A><H3>
addValidValue</H3>
<PRE>
public void <B>addValidValue</B>(java.lang.String&nbsp;rowName,                          java.lang.Object&nbsp;value)</PRE>
<DL>
<DD>Adds a new valid value for the <code>rowName</code> property. Valid values are shown with a JComboBox component.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setFormat(java.lang.String, java.lang.String)"><!-- --></A><H3>
setFormat</H3>
<PRE>
public void <B>setFormat</B>(java.lang.String&nbsp;rowName,                      java.lang.String&nbsp;format)</PRE>
<DL>
<DD>Sets the format for the <code>rowName</code> property.
<P>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="../../../org/amic/util/string/ClassFormatter.html"><CODE>ClassFormatter</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setLabel(java.lang.String, java.lang.String)"><!-- --></A><H3>
setLabel</H3>
<PRE>
public void <B>setLabel</B>(java.lang.String&nbsp;rowName,                     java.lang.String&nbsp;label)</PRE>
<DL>
<DD>Sets the label for the <code>rowName</code> property.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setJClass(java.lang.String, java.lang.Class)"><!-- --></A><H3>
setJClass</H3>
<PRE>
public void <B>setJClass</B>(java.lang.String&nbsp;rowName,                      java.lang.Class&nbsp;jClass)</PRE>
<DL>
<DD>Sets the java class for the <code>rowName</code> property.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setEditable(java.lang.String, boolean)"><!-- --></A><H3>
setEditable</H3>
<PRE>
public void <B>setEditable</B>(java.lang.String&nbsp;rowName,                        boolean&nbsp;editable)</PRE>
<DL>
<DD>Sets <code>editable</code> for the <code>rowName</code> property. For properties with valid values a false editable value will result in a no editable JComboBox.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setAllowNulls(java.lang.String, boolean)"><!-- --></A><H3>
setAllowNulls</H3>
<PRE>
public void <B>setAllowNulls</B>(java.lang.String&nbsp;rowName,                          boolean&nbsp;allowNulls)</PRE>
<DL>
<DD>Sets <code>allowNulls</code> for the <code>rowName</code> property.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setValue(java.lang.String, java.lang.String)"><!-- --></A><H3>
setValue</H3>
<PRE>
public void <B>setValue</B>(java.lang.String&nbsp;rowName,                     java.lang.String&nbsp;value)</PRE>
<DL>
<DD>Sets the value for the <code>rowName</code> property.
<P>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="../../../org/amic/util/string/ObjectString.html"><CODE>ObjectString</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="setValue(java.lang.String, java.lang.Object)"><!-- --></A><H3>
setValue</H3>
<PRE>
public void <B>setValue</B>(java.lang.String&nbsp;rowName,                     java.lang.Object&nbsp;value)</PRE>
<DL>
<DD>Sets the value for the <code>rowName</code> property.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getValue(java.lang.String)"><!-- --></A><H3>
getValue</H3>
<PRE>
public java.lang.Object <B>getValue</B>(java.lang.String&nbsp;rowName)</PRE>
<DL>
<DD>Gets the value for the <code>rowName</code> property.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getRowByName(java.lang.String)"><!-- --></A><H3>
getRowByName</H3>
<PRE>
public <A HREF="../../../org/amic/properties/PropertiesTableModel.Property.html">PropertiesTableModel.Property</A> <B>getRowByName</B>(java.lang.String&nbsp;rowName)</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>A Property class with the given <code>rowName</code>.</DL>
</DD>
</DL>
<HR>

<A NAME="getRowByIndex(int)"><!-- --></A><H3>
getRowByIndex</H3>
<PRE>
public <A HREF="../../../org/amic/properties/PropertiesTableModel.Property.html">PropertiesTableModel.Property</A> <B>getRowByIndex</B>(int&nbsp;index)</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>A Property class at the given index.</DL>
</DD>
</DL>
<HR>

<A NAME="getColumnCount()"><!-- --></A><H3>
getColumnCount</H3>
<PRE>
public int <B>getColumnCount</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>a fixed value of <code>2</code>.</DL>
</DD>
</DL>
<HR>

<A NAME="getValueAt(int, int)"><!-- --></A><H3>
getValueAt</H3>
<PRE>
public java.lang.Object <B>getValueAt</B>(int&nbsp;row,                                   int&nbsp;col)</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>The value at the given row/col. For col=0 returns the label and col=1 the value.</DL>
</DD>
</DL>
<HR>

<A NAME="getRowCount()"><!-- --></A><H3>
getRowCount</H3>
<PRE>
public int <B>getRowCount</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>The number of properties in the model.</DL>
</DD>
</DL>
<HR>

<A NAME="isCellEditable(int, int)"><!-- --></A><H3>
isCellEditable</H3>
<PRE>
public boolean <B>isCellEditable</B>(int&nbsp;row,                              int&nbsp;col)</PRE>
<DL>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>isCellEditable</CODE> in interface <CODE>javax.swing.table.TableModel</CODE><DT><B>Overrides:</B><DD><CODE>isCellEditable</CODE> in class <CODE>javax.swing.table.AbstractTableModel</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setValueAt(java.lang.Object, int, int)"><!-- --></A><H3>
setValueAt</H3>
<PRE>
public void <B>setValueAt</B>(java.lang.Object&nbsp;value,                       int&nbsp;row,                       int&nbsp;col)</PRE>
<DL>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>setValueAt</CODE> in interface <CODE>javax.swing.table.TableModel</CODE><DT><B>Overrides:</B><DD><CODE>setValueAt</CODE> in class <CODE>javax.swing.table.AbstractTableModel</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="clearModel()"><!-- --></A><H3>
clearModel</H3>
<PRE>
public void <B>clearModel</B>()</PRE>
<DL>
<DD><DL>
</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=3 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="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>
<b>Amic utility<br> classes</b></EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../org/amic/properties/Percent.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../org/amic/properties/PropertiesTableModel.Property.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="PropertiesTableModel.html" TARGET="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT>  <!--  if(window==top) {    document.writeln('<A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT><A HREF="../../../allclasses-noframe.html" TARGET=""><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;<A HREF="#fields_inherited_from_class_javax.swing.table.AbstractTableModel">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;FIELD&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>Contact me at <a href='mailto:lluis@turro.org'>Lluis Turro</a></font>
</BODY>
</HTML>

⌨️ 快捷键说明

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