1 Reply Latest reply on Feb 9, 2011 3:46 PM by Pablo Souza

    When defining new skin state, redefine existing states?

    Gregory Lafrance Level 6

      I'm adding a new skin state "minimized" so do I need to have the following at the top of the Pod class?

       

      [SkinState("minimized")];
      [SkinState("normal")];
      [SkinState("disabled")];
      [SkinState("normalWithControlBar")];
      [SkinState("disabledWithControlBar")]; 
      public class Pod extends Panel
      


      Or do I just have a line for the new skin state, and not the existing states:

       

      [SkinState("minimized")];
      public class Pod extends Panel
      

       

      I'm just wondering if I only declare the new skin if the existing states then cease to exist?

        • 1. Re: When defining new skin state, redefine existing states?
          Pablo Souza

          Hi Gregory,

           

          If you just define the "minimized" skin state:

          [SkinState("minimized")];
          public class Pod extends Panel

           

          It will still inherit the skin states of the SkinnableContainerBase class:

           

          [SkinState("normal")]
          [SkinState("disabled")]
          

           

          Another important thing to say is that the "normal" skin state from the SkinnableContainerBase class is the default until you set another one.

           

          Hope it helps you.

           

           

          Greets,

          Pablo Souza