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/09/18 03:49:17 UTC

svn commit: r816430 - /incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/content/TableViewRowEditor.java

Author: tvolkert
Date: Fri Sep 18 01:49:16 2009
New Revision: 816430

URL: http://svn.apache.org/viewvc?rev=816430&view=rev
Log:
Applied patch to add editEffectDuration to TableViewRowEditor

Modified:
    incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/content/TableViewRowEditor.java

Modified: incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/content/TableViewRowEditor.java
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/content/TableViewRowEditor.java?rev=816430&r1=816429&r2=816430&view=diff
==============================================================================
--- incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/content/TableViewRowEditor.java (original)
+++ incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/content/TableViewRowEditor.java Fri Sep 18 01:49:16 2009
@@ -147,6 +147,7 @@
                 tableView.getRowBounds(rowIndex))));
             cardPane.setSelectedIndex(0);
             cardPane.getStyles().put("selectionChangeEffect", editEffect);
+            cardPane.getStyles().put("selectionChangeDuration", editEffectDuration);
 
             tablePane = new TablePane();
             tablePane.getStyles().put("horizontalSpacing", 1);
@@ -589,6 +590,7 @@
     private HashMap<String, Component> cellEditors = new HashMap<String, Component>();
 
     private CardPaneSkin.SelectionChangeEffect editEffect = null;
+    private int editEffectDuration = 250;
 
     private RowEditorListenerList rowEditorListeners = new RowEditorListenerList();
 
@@ -657,6 +659,28 @@
     }
 
     /**
+     * Gets the effect duration that this editor uses when changing from a
+     * read-only row to an editable row. The default value is 250 milliseconds.
+     *
+     * @return
+     * The effect duration in milliseconds.
+     */
+    public int getEditEffectDuration() {
+        return editEffectDuration;
+    }
+
+    /**
+     * Sets the effect duration that this editor uses when changing from a
+     * read-only row to an editable row.
+     *
+     * @param effectDuration
+     * Effect duration in milliseconds
+     */
+    public void setEditEffectDuration(int effectDuration) {
+        this.editEffectDuration = effectDuration;
+    }
+
+    /**
      * {@inheritDoc}
      */
     @Override