table row/column insert
[fanfix.git] / src / jexer / TField.java
index e8fd3defc8baeb8229f99f831760f9866d618730..992f274fb388792c1ed76c5e33bcc6a4472cb6a8 100644 (file)
@@ -573,5 +573,22 @@ public class TField extends TWidget {
         this.inactiveColorKey = inactiveColorKey;
     }
 
+    /**
+     * Set the action to perform when the user presses enter.
+     *
+     * @param action the action to perform when the user presses enter
+     */
+    public void setEnterAction(final TAction action) {
+        enterAction = action;
+    }
+
+    /**
+     * Set the action to perform when the field is updated.
+     *
+     * @param action the action to perform when the field is updated
+     */
+    public void setUpdateAction(final TAction action) {
+        updateAction = action;
+    }
 
 }