You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by tv...@apache.org on 2009/04/08 06:09:27 UTC
svn commit: r762608 - in
/incubator/pivot/trunk/demos/src/pivot/demos/roweditor: CustomTableRow.java
ExpenseType.java TableViewRowEditor.java application.wtkx
Author: tvolkert
Date: Tue Apr 7 03:04:14 2009
New Revision: 762608
URL: http://svn.apache.org/viewvc?rev=762608&view=rev
Log:
Updated RowEditorDemo per recent refactor of FlipTransition and TableViewCurrencyCellRenderer
Modified:
incubator/pivot/trunk/demos/src/pivot/demos/roweditor/CustomTableRow.java
incubator/pivot/trunk/demos/src/pivot/demos/roweditor/ExpenseType.java
incubator/pivot/trunk/demos/src/pivot/demos/roweditor/TableViewRowEditor.java
incubator/pivot/trunk/demos/src/pivot/demos/roweditor/application.wtkx
Modified: incubator/pivot/trunk/demos/src/pivot/demos/roweditor/CustomTableRow.java
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/src/pivot/demos/roweditor/CustomTableRow.java?rev=762608&r1=762607&r2=762608&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/src/pivot/demos/roweditor/CustomTableRow.java (original)
+++ incubator/pivot/trunk/demos/src/pivot/demos/roweditor/CustomTableRow.java Tue Apr 7 03:04:14 2009
@@ -20,6 +20,12 @@
import pivot.collections.Dictionary;
import pivot.util.CalendarDate;
+/**
+ * Custom table row data. It implements the <tt>Dictionary</tt> interface so
+ * we can bind to it.
+ *
+ * @author tvolkert
+ */
public class CustomTableRow implements Dictionary<String, Object> {
private CalendarDate calendarDate = null;
private ExpenseType type = null;
Modified: incubator/pivot/trunk/demos/src/pivot/demos/roweditor/ExpenseType.java
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/src/pivot/demos/roweditor/ExpenseType.java?rev=762608&r1=762607&r2=762608&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/src/pivot/demos/roweditor/ExpenseType.java (original)
+++ incubator/pivot/trunk/demos/src/pivot/demos/roweditor/ExpenseType.java Tue Apr 7 03:04:14 2009
@@ -16,6 +16,11 @@
*/
package pivot.demos.roweditor;
+/**
+ * Sample enum of expense types.
+ *
+ * @author tvolkert
+ */
public enum ExpenseType {
Hotel,
Miscellaneous,
Modified: incubator/pivot/trunk/demos/src/pivot/demos/roweditor/TableViewRowEditor.java
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/src/pivot/demos/roweditor/TableViewRowEditor.java?rev=762608&r1=762607&r2=762608&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/src/pivot/demos/roweditor/TableViewRowEditor.java (original)
+++ incubator/pivot/trunk/demos/src/pivot/demos/roweditor/TableViewRowEditor.java Tue Apr 7 03:04:14 2009
@@ -53,6 +53,7 @@
import pivot.wtk.Window;
import pivot.wtk.WindowStateListener;
import pivot.wtk.content.CalendarDateSpinnerData;
+import pivot.wtk.effects.FlipTransition;
import pivot.wtk.effects.Transition;
import pivot.wtk.effects.TransitionListener;
import pivot.wtk.media.Image;
Modified: incubator/pivot/trunk/demos/src/pivot/demos/roweditor/application.wtkx
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/src/pivot/demos/roweditor/application.wtkx?rev=762608&r1=762607&r2=762608&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/src/pivot/demos/roweditor/application.wtkx (original)
+++ incubator/pivot/trunk/demos/src/pivot/demos/roweditor/application.wtkx Tue Apr 7 03:04:14 2009
@@ -43,7 +43,7 @@
<TableView.Column name="type" width="125" headerData="Type"/>
<TableView.Column name="amount" width="75" headerData="Amount">
<cellRenderer>
- <content:TableViewCurrencyCellRenderer styles="{horizontalAlignment:'right'}" />
+ <content:TableViewNumberCellRenderer numberFormat="¤#,###.00"/>
</cellRenderer>
</TableView.Column>
<TableView.Column name="description" width="1*" headerData="Description"/>