details:   /erp/devel/pi/rev/a47e350ebb20
changeset: 9835:a47e350ebb20
user:      Martin Taal <martin.taal <at> openbravo.com>
date:      Sat Jan 15 16:54:49 2011 +0100
summary:   Added generic isFocusable method

details:   /erp/devel/pi/rev/64209940bdbd
changeset: 9836:64209940bdbd
user:      Martin Taal <martin.taal <at> openbravo.com>
date:      Sat Jan 15 16:55:16 2011 +0100
summary:   Removed not needed method

diffstat:

 
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewFormComponent.java
    |  4 ----
 
modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient.js
 |  9 ++++++++-
 2 files changed, 8 insertions(+), 5 deletions(-)

diffs (34 lines):

diff -r 907df7d3c340 -r 64209940bdbd 
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewFormComponent.java
--- 
a/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewFormComponent.java
     Sat Jan 15 16:53:27 2011 +0100
+++ 
b/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewFormComponent.java
     Sat Jan 15 16:55:16 2011 +0100
@@ -515,10 +515,6 @@
       return false;
     }
 
-    public String getShowIf() {
-      return "";
-    }
-
     public String getName() {
       return "_linkedItems_";
     }
diff -r 907df7d3c340 -r 64209940bdbd 
modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient.js
--- 
a/modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient.js
  Sat Jan 15 16:53:27 2011 +0100
+++ 
b/modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient.js
  Sat Jan 15 16:55:16 2011 +0100
@@ -62,8 +62,15 @@
     return;
   },
   
-  isDisabled: function() {
+  isDisabled: function(){
     return this.form.readOnly;
+  },
+  
+  // return all relevant focus condition
+  isFocusable: function(){
+    return this.canFocus && this.isDrawn() &&
+    this.isVisible() &&
+    !this.isDisabled();
   }
 });
 

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to