public ElementTextField setTextColor(Number textColor, Number selectedTextColor) {
   if (textColor != null) {
     this.textColor = textColor.intValue();
   }
   if (selectedTextColor != null) {
     this.selectedTextColor = selectedTextColor.intValue();
   }
   return this;
 }
 public ElementTextField setSelectionColor(Number selectedLineColor, Number defaultCaretColor) {
   if (selectedLineColor != null) {
     this.selectedLineColor = selectedLineColor.intValue();
   }
   if (defaultCaretColor != null) {
     this.defaultCaretColor = defaultCaretColor.intValue();
   }
   return this;
 }
 public ElementTextField setBackgroundColor(
     Number backgroundColor, Number disabledColor, Number borderColor) {
   if (backgroundColor != null) {
     this.backgroundColor = backgroundColor.intValue();
   }
   if (disabledColor != null) {
     this.disabledColor = disabledColor.intValue();
   }
   if (borderColor != null) {
     this.borderColor = borderColor.intValue();
   }
   return this;
 }
Ejemplo n.º 4
0
 public void setColor(Number red, Number green, Number blue) {
   glColor3f(red.floatValue(), green.floatValue(), blue.floatValue());
 }