Ejemplo n.º 1
0
 /** {@inheritDoc} */
 @Override
 public ListBox setColor(CColor theColor) {
   setColorActive(theColor.getActive());
   setColorForeground(theColor.getForeground());
   setColorBackground(theColor.getBackground());
   setColorLabel(theColor.getCaptionLabel());
   setColorValue(theColor.getValueLabel());
   return this;
 }
Ejemplo n.º 2
0
 /** {@inheritDoc} */
 public T setColorValue(int theColor) {
   color.setValueLabel(theColor);
   if (_myValueLabel != null) {
     _myValueLabel.setColor(color.getValueLabel());
   }
   for (ControllerInterface<?> ci : controllers.get()) {
     ci.setColorValue(theColor);
   }
   return me;
 }
Ejemplo n.º 3
0
 /** {@inheritDoc} */
 public T setColorBackground(int theColor) {
   color.setBackground(theColor);
   for (ControllerInterface<?> ci : controllers.get()) {
     ci.setColorBackground(theColor);
   }
   return me;
 }
Ejemplo n.º 4
0
 /** {@inheritDoc} */
 public T setColorActive(int theColor) {
   color.setActive(theColor);
   for (ControllerInterface<?> ci : controllers.get()) {
     ci.setColorActive(theColor);
   }
   return me;
 }
Ejemplo n.º 5
0
 /**
  * @param theControlP5 ControlP5
  * @param theParent ControllerGroup
  * @param theName String
  * @param theX float
  * @param theY float
  * @exclude
  */
 public ControllerGroup(
     ControlP5 theControlP5,
     ControllerGroup<?> theParent,
     String theName,
     float theX,
     float theY) {
   position = new PVector(theX, theY, 0);
   cp5 = theControlP5;
   me = (T) this;
   color.set((theParent == null) ? cp5.color : theParent.color);
   _myName = theName;
   controllers = new ControllerList();
   _myControlCanvas = new ArrayList<ControlWindowCanvas>();
   _myLabel = new Label(cp5, _myName);
   _myLabel.setColor(color.getCaptionLabel());
   setParent((theParent == null) ? this : theParent);
 }