Author: gbrown
Date: Thu May  6 11:41:38 2010
New Revision: 941674

URL: http://svn.apache.org/viewvc?rev=941674&view=rev
Log:
Add indexed color setters to TerraCalendarButtonSkin.


Modified:
    
pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraCalendarButtonSkin.java

Modified: 
pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraCalendarButtonSkin.java
URL: 
http://svn.apache.org/viewvc/pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraCalendarButtonSkin.java?rev=941674&r1=941673&r2=941674&view=diff
==============================================================================
--- 
pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraCalendarButtonSkin.java
 (original)
+++ 
pivot/trunk/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraCalendarButtonSkin.java
 Thu May  6 11:41:38 2010
@@ -353,6 +353,11 @@ public class TerraCalendarButtonSkin ext
         setColor(GraphicsUtilities.decodeColor(color));
     }
 
+    public final void setColor(int color) {
+        TerraTheme theme = (TerraTheme)Theme.getTheme();
+        setColor(theme.getColor(color));
+    }
+
     public Color getDisabledColor() {
         return disabledColor;
     }
@@ -374,6 +379,11 @@ public class TerraCalendarButtonSkin ext
         setDisabledColor(GraphicsUtilities.decodeColor(disabledColor));
     }
 
+    public final void setDisabledColor(int disabledColor) {
+        TerraTheme theme = (TerraTheme)Theme.getTheme();
+        setDisabledColor(theme.getColor(disabledColor));
+    }
+
     public Color getBackgroundColor() {
         return backgroundColor;
     }
@@ -397,6 +407,11 @@ public class TerraCalendarButtonSkin ext
         setBackgroundColor(GraphicsUtilities.decodeColor(backgroundColor));
     }
 
+    public final void setBackgroundColor(int backgroundColor) {
+        TerraTheme theme = (TerraTheme)Theme.getTheme();
+        setBackgroundColor(theme.getColor(backgroundColor));
+    }
+
     public Color getDisabledBackgroundColor() {
         return disabledBackgroundColor;
     }
@@ -419,6 +434,11 @@ public class TerraCalendarButtonSkin ext
         
setDisabledBackgroundColor(GraphicsUtilities.decodeColor(disabledBackgroundColor));
     }
 
+    public final void setDisabledBackgroundColor(int disabledBackgroundColor) {
+        TerraTheme theme = (TerraTheme)Theme.getTheme();
+        setDisabledBackgroundColor(theme.getColor(disabledBackgroundColor));
+    }
+
     public Color getBorderColor() {
         return borderColor;
     }
@@ -441,6 +461,11 @@ public class TerraCalendarButtonSkin ext
         setBorderColor(GraphicsUtilities.decodeColor(borderColor));
     }
 
+    public final void setBorderColor(int borderColor) {
+        TerraTheme theme = (TerraTheme)Theme.getTheme();
+        setBorderColor(theme.getColor(borderColor));
+    }
+
     public Color getDisabledBorderColor() {
         return disabledBorderColor;
     }
@@ -462,6 +487,11 @@ public class TerraCalendarButtonSkin ext
         
setDisabledBorderColor(GraphicsUtilities.decodeColor(disabledBorderColor));
     }
 
+    public final void setDisabledBorderColor(int disabledBorderColor) {
+        TerraTheme theme = (TerraTheme)Theme.getTheme();
+        setDisabledBorderColor(theme.getColor(disabledBorderColor));
+    }
+
     public Insets getPadding() {
         return padding;
     }


Reply via email to