Author: [EMAIL PROTECTED]
Date: Thu Nov 13 08:38:29 2008
New Revision: 4048
Modified:
branches/1_6_clean_events/user/src/com/google/gwt/user/client/ui/HTMLTable.java
Log:
Adding javadoc for cell and depricated table methods
Modified:
branches/1_6_clean_events/user/src/com/google/gwt/user/client/ui/HTMLTable.java
==============================================================================
---
branches/1_6_clean_events/user/src/com/google/gwt/user/client/ui/HTMLTable.java
(original)
+++
branches/1_6_clean_events/user/src/com/google/gwt/user/client/ui/HTMLTable.java
Thu Nov 13 08:38:29 2008
@@ -47,19 +47,35 @@
private final int rowIndex;
private final int cellIndex;
+ /**
+ * Creates a cell.
+ * @param rowIndex the cell's row
+ * @param cellIndex the cell's inded
+ */
protected Cell(int rowIndex, int cellIndex) {
this.cellIndex = cellIndex;
this.rowIndex = rowIndex;
}
-
+
+ /**
+ * Gets the cell index.
+ * @return the cell index
+ */
public int getCellIndex() {
return cellIndex;
}
-
+ /**
+ * Gets the cell's element.
+ * @return the cell's element.
+ */
public Element getElement() {
return getCellFormatter().getElement(cellIndex, rowIndex);
}
+ /**
+ * Get row index.
+ * @return the row index
+ */
public int getRowIndex() {
return rowIndex;
}
@@ -804,7 +820,7 @@
* Adds a listener to the current table.
*
* @param listener listener to add
- * @deprecated
+ * @deprecated add a click handler instead and use [EMAIL PROTECTED]
HTMLTable#getCellForEvent(ClickEvent)} to get the cell information
*/
public void addTableListener(TableListener listener) {
ListenerWrapper.Table.add(this, listener);
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---