4 Replies Latest reply: Sep 19, 2013 4:25 PM by walec52 RSS

    Does getUserAgentStylesheet() work well with inheritance ?

    walec52

      An example scenario:

       

      public abstract class Form extends Control {
      
          //...
      
          public List<String> getUserAgentStylesheet() {
              return "form.css"; // default style defined for all forms
          }
      
          //...
      
      }
      

       

      public class LoginForm extends Form {
      
          //...
      
          public List<String> getUserAgentStylesheet() {
              return "login-form.css"; // specific style features for login forms
          }
      
          //...
      
      }
      

       

      will both CSS files be loaded for the LoginForm or will only the login-form.css be loaded ?