Set the default palette condition class name.

@param string $defaultPaletteConditionClassName The class name.

@return PaletteBuilder
496801
public function setDefaultPaletteConditionClassName($defaultPaletteConditionClassName)
    {
        $event = new SetDefaultPaletteConditionClassNameEvent($defaultPaletteConditionClassName, $this);
        $this->dispatchEvent($event);
        $defaultPaletteConditionClassName = $event->getDefaultPaletteConditionClassName();

        $this->defaultPaletteConditionClassName = (string) $defaultPaletteConditionClassName;
        $this->defaultPaletteConditionClass     = new \ReflectionClass($this->defaultPaletteConditionClassName);
        return $this;
    }
88865
private void applyPalette(Palette palette, ViewGroup viewGroup){
        int bgColor = getBackgroundColor(palette);
        if (bgColor != -1)
            viewGroup.setBackgroundColor(bgColor);
    }
362759
public function usePalette(PaletteInterface $palette)
    {
        if ($this->palette) {
            $this->finishPalette();
        }

        $event = new UsePaletteEvent($palette, $this);
        $this->dispatchEvent($event);
        $this->palette = $palette;

        return $this;
    }
607432
public function setDefaultImage($defaultImage = '')
    {
        if (empty($defaultImage)) {
            $image        = DataRepository::getData('config_image');
            $defaultImage = $image['default_image'];
        }
        $this->defaultImage = $defaultImage;

        return $this;
    }
706620
protected function parsePalettes(ContainerInterface $container)
    {
        $palettesDca = $this->getFromDca('palettes');

        // Skip while there is no extended palette definition.
        if (!\is_callable($palettesDca)) {
            return;
        }

        if ($container->hasDefinition(PalettesDefinitionInterface::NAME)) {
            $palettesDefinition = $container->getDefinition(PalettesDefinitionInterface::NAME);
        } else {
            $palettesDefinition = new DefaultPalettesDefinition();
            $container->setDefinition(PalettesDefinitionInterface::NAME, $palettesDefinition);
        }

        $palettesDca($palettesDefinition, $container);
    }
1286182
protected function setDefaultClasses(array $options = [])
    {
        $wrapper_class = $this->getConfig('defaults.' . $this->type . '.wrapper_class', '');
        $label_class = $this->getConfig('defaults.' . $this->type . '.label_class', '');
        $field_class = $this->getConfig('defaults.' . $this->type . '.field_class', '');

        $defaults = [];
        if ($wrapper_class && !Arr::get($options, 'wrapper.class')) {
            $defaults['wrapper']['class'] = $wrapper_class;
        }
        if ($label_class && !Arr::get($options, 'label_attr.class')) {
            $defaults['label_attr']['class'] = $label_class;
        }
        if ($field_class && !Arr::get($options, 'attr.class')) {
            $defaults['attr']['class'] = $field_class;
        }
        return $defaults;
    }
681298
public void setPalette(@ColorInt int primeColor, @ColorInt int extraColor) {
        this.primeColor = primeColor;
        this.extraColor = extraColor == 0 ? primeColor : extraColor;
        pathPaint.setColor(primeColor);
        gradient = null;
    }
325054
public function writeTransparency(PngPalette $palette) 
    {
        if ($palette && $palette->isValid && $palette->hasAlphaChannel) {
            $this->buffer->startChunk("tRNS");
            
            $alpha = '';

            foreach ($palette->colors as $color) {
                $alpha .= pack('C', $color & 0xff);
            }
            
            $this->buffer->writeString($alpha);

            $this->buffer->endChunk();
        }
    }
971441
public function setDefaultNamespace()
    {
        $classLoader = $this->getConfig("runtime.classLoader");
        $classLoader->setPsr4(self::getDefaultNamespace() . "\\", self::getSRCPath());
        $classLoader->setPsr4(self::getDefaultTestNamespace() . "\\", self::getTestPath());
    }
980163
public function setDefaultResourceMatcher($defaultResourceMatcher)
    {
        if (is_scalar($defaultResourceMatcher)) {
            $defaultResourceMatcher = 'Gobline\\Acl\\Matcher\\'.ucfirst($defaultResourceMatcher).'Matcher';
            $defaultResourceMatcher = new $defaultResourceMatcher();
        } elseif (!$resource instanceof MatcherInterface) {
            throw new \InvalidArgumentException('$defaultResourceMatcher is expected to be of type string or Gobline\Acl\Matcher\MatcherInterface');
        }

        $this->defaultResourceMatcher = $defaultResourceMatcher;
    }
455760
public function setConditionGroup(\Sulu\Bundle\ResourceBundle\Entity\ConditionGroup $conditionGroup)
    {
        $this->conditionGroup = $conditionGroup;

        return $this;
    }
650469
protected function createPaletteConditionChain()
    {
        if (!$this->condition instanceof PaletteConditionChain) {
            $previousCondition = $this->condition;

            $condition = $this->paletteConditionChainClass->newInstance();
            $event     = new CreatePaletteConditionChainEvent($condition, $this);
            $this->dispatchEvent($event);
            $condition = $event->getPaletteConditionChain();

            $event = new CreateConditionEvent($condition, $this);
            $this->dispatchEvent($event);
            $condition = $event->getCondition();
            /** @var ConditionChainInterface $condition */
            $condition->addCondition($previousCondition);

            $this->condition = $condition;
        }

        return $this;
    }
52664
final public function setDefaultPhpNamingMethod(string $defaultPhpNamingMethod): Database
    {
        $availableMethods = [
            self::PHP_NAMING_METHOD_NOCHANGE,
            self::PHP_NAMING_METHOD_UNDERSCORE,
            self::PHP_NAMING_METHOD_PHPNAME,
            self::PHP_NAMING_METHOD_CLEAN,
        ];

        if (!in_array($defaultPhpNamingMethod, $availableMethods)) {
            throw new InvalidArgumentException('Invalid naming method.');
        }

        $this->defaultPhpNamingMethod = $defaultPhpNamingMethod;

        return $this;
    }
1042671
def set_palette(self, background, foreground):
        
        palette = QPalette()
        palette.setColor(QPalette.Base, background)
        palette.setColor(QPalette.Text, foreground)
        self.setPalette(palette)

        # Set the right background color when changing color schemes
        # or creating new Editor windows. This seems to be a Qt bug.
        # Fixes Issue 2028 and 8069
        if self.objectName():
            style = "QPlainTextEdit#%s {background: %s; color: %s;}" % \
                    (self.objectName(), background.name(), foreground.name())
            self.setStyleSheet(style)
77720
public function setClasses($classes, $default = null)
    {
        if ($component = $this->getComponentByType(GridFieldAddNewMultiClass::class)) {
            $component->setClasses($classes, $default);
        }
        
        return $this;
    }
514751
def setPalette(self, palette):
        
        super(XSplitButton, self).setPalette(palette)
        self.rebuild()
530309
function setColOrder($orderedBaseColNames, $groupPrefix = null) {
    $this->columns->setOrder($orderedBaseColNames, $groupPrefix);
    return $this;
  }