details:   https://code.openbravo.com/erp/devel/pi/rev/f3b3ef52284b
changeset: 21256:f3b3ef52284b
user:      Adrián Romero <adrianromero <at> openbravo.com>
date:      Thu Oct 10 10:59:20 2013 +0200
summary:   Fixes issue 0024799: Extend SimpleCallout to provide utility methods 
with actions that can be executed in a callout
Removing unused commands and changing visibility of new utility methods to 
protected

diffstat:

 src/org/openbravo/erpCommon/ad_callouts/SimpleCallout.java |  53 +------------
 1 files changed, 7 insertions(+), 46 deletions(-)

diffs (98 lines):

diff -r 74c81a31c181 -r f3b3ef52284b 
src/org/openbravo/erpCommon/ad_callouts/SimpleCallout.java
--- a/src/org/openbravo/erpCommon/ad_callouts/SimpleCallout.java        Wed Oct 
09 19:46:27 2013 +0200
+++ b/src/org/openbravo/erpCommon/ad_callouts/SimpleCallout.java        Thu Oct 
10 10:59:20 2013 +0200
@@ -327,7 +327,7 @@
      * @param value
      *          The message to display in the browser.
      */
-    public void showMessage(String value) {
+    protected void showMessage(String value) {
       addResult("MESSAGE", value);
     }
 
@@ -337,7 +337,7 @@
      * @param value
      *          The error message to display in the browser.
      */
-    public void showError(String value) {
+    protected void showError(String value) {
       addResult("ERROR", value);
     }
 
@@ -347,7 +347,7 @@
      * @param value
      *          The warning message to display in the browser.
      */
-    public void showWarning(String value) {
+    protected void showWarning(String value) {
       addResult("WARNING", value);
     }
 
@@ -357,7 +357,7 @@
      * @param value
      *          The information message to display in the browser.
      */
-    public void showInformation(String value) {
+    protected void showInformation(String value) {
       addResult("INFO", value);
     }
 
@@ -367,7 +367,7 @@
      * @param value
      *          The success message to display in the browser.
      */
-    public void showSuccess(String value) {
+    protected void showSuccess(String value) {
       addResult("SUCCESS", value);
     }
 
@@ -377,47 +377,8 @@
      * @param value
      *          The javascript code to execute in the browser.
      */
-    public void executeCode(String value) {
-      addResult("EXECUTE", value);
-    }
-
-    /**
-     * Executes the validation defined by the display logic of window fields 
after the execution of
-     * the callout.
-     * 
-     */
-    public void executeDisplayLogic() {
-      addResult("EXECUTE", "displayLogic();");
-    }
-
-    /**
-     * Shows the field defined indicated in the value.
-     * 
-     * @param value
-     *          The field to show.
-     */
-    public void displayElement(String value) {
-      addResult("DISPLAY", value);
-    }
-
-    /**
-     * Hides the field defined indicated in the value.
-     * 
-     * @param value
-     *          The field to hide.
-     */
-    public void hideElement(String value) {
-      addResult("HIDE", value);
-    }
-
-    /**
-     * Defines the field to put the focus after the execution of the callout.
-     * 
-     * @param value
-     *          The field to focus.
-     */
-    public void cursorElement(String value) {
-      addResult("CURSOR_FIELD", value);
+    protected void executeCodeInBrowser(String value) {
+      addResult("JSEXECUTE", value);
     }
   }
 }

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to