Allow shadow when in checked state.

@param allow
353301
public void allowCheckStateShadow(boolean allow) {
        if (allow != mAllowCheckStateShadow) {
            mAllowCheckStateShadow = allow;
            setShadowInternal(mShadowRadius, mShadowColor, true);
        }
    }
790549
public void setViewEnabled(boolean enable) {
        if (hasState(ENABLED) != enable) {
            if (DBG) Log.v(TAG, "enable - " + enable);
            if (enable) {
                addState(ENABLED);
            } else {
                clearState(ENABLED);
            }
        }
    }
183889
private void checkMergeBtnEnabledState() {
		FeaturesSupported layer = (FeaturesSupported) mapPresenter.getLayersModel().getLayer(1);
		mergeBtn.setEnabled(layer.getSelectedFeatures() != null && layer.getSelectedFeatures().size() > 1);
	}
600263
def setShadowed(self, state):
        
        self._shadowed = state
        if state:
            self._colored = False
        
        for child in self.findChildren(XToolButton):
            child.setShadowed(state)
685925
private void setVisibilityOnControlledObject(Object controlledObject, boolean authorized) {
        try {
            Method method = controlledObject.getClass().getMethod( "setVisible", new Class[] { boolean.class } );
            method.invoke( controlledObject, new Object[] { new Boolean( authorized ) } );
        } catch( NoSuchMethodException ignored ) {
            System.out.println( "NO setVisible method on object: " + controlledObject );
            // No method to call, so nothing to do
        } catch( IllegalAccessException ignored ) {
            logger.error( "Could not call setVisible", ignored );
        } catch( InvocationTargetException ignored ) {
            logger.error( "Could not call setVisible", ignored );
        }
    }
97039
function isShadowed(scope, node) {
    const reference = findReference(scope, node);

    return reference && reference.resolved && reference.resolved.defs.length > 0;
}
618298
public void setHighlightedAtom(IAtom highlightedAtom) {
        if ((this.highlightedAtom != null) || (highlightedAtom != null)) {
            this.highlightedAtom = highlightedAtom;
            fireChange();
        }
    }
463391
@Override
	public <P, E extends Exception> void accept(ComponentVisitor<P, E> visitor, P parameter) throws E
	{
		visitor.visit(this, parameter);
	}
577851
public function setShadow($Enabled = true, array $Format = [])
    {
        $X = isset($Format["X"]) ? $Format["X"] : 2;
        $Y = isset($Format["Y"]) ? $Format["Y"] : 2;
        $R = isset($Format["R"]) ? $Format["R"] : 0;
        $G = isset($Format["G"]) ? $Format["G"] : 0;
        $B = isset($Format["B"]) ? $Format["B"] : 0;
        $Alpha = isset($Format["Alpha"]) ? $Format["Alpha"] : 10;

        $this->Shadow = $Enabled;
        $this->ShadowX = $X;
        $this->ShadowY = $Y;
        $this->ShadowR = $R;
        $this->ShadowG = $G;
        $this->ShadowB = $B;
        $this->Shadowa = $Alpha;
    }
1275494
public void setEnabledForced(boolean e)
	{
		enabled.setEnabled(e);
		minSpinner.setEnabled(e);
		maxSpinner.setEnabled(e);
	}
1072613
public void toogleDetailState(String itemDetailId) {

        CmsListItemDetails lid = m_itemDetails.getObject(itemDetailId);
        lid.setVisible(!lid.isVisible());
    }
947410
public void setViewEnabled(boolean enable) {
        if (enable && mView == null) {
            mView = makeView();
        }
        if (mView != null) {
            mView.setViewEnabled(enable);
        }
    }
111851
public function setAllowedCss(array $allowed)
    {
        if (is_array($allowed)) {
            foreach ($allowed as $k => $v) {
                self::$allowed_css[$k] = (!is_null($v)) ? $v : $k;
            }
        }
    }
713086
protected boolean isShadowed(IEObjectDescription input) {
		final Iterable<IEObjectDescription> localElements = getLocalElementsByName(input.getName());
		final boolean isEmpty = isEmpty(localElements);
		return !isEmpty;
	}
1104403
private void setShadowInternal(float radius,
                                   @ColorInt int color,
                                   boolean invalidate) {
        mShadowRadius = radius;
        mShadowColor = color;

        // Reset previous shadow layer
        mBorderPaint.clearShadowLayer();
        mCheckedBackgroundPaint.clearShadowLayer();

        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
            setLayerType(LAYER_TYPE_SOFTWARE, mBorderPaint);
            setLayerType(LAYER_TYPE_SOFTWARE, mCheckedBackgroundPaint);
        }

        mBorderPaint.setShadowLayer(
                mShadowRadius,
                0.0f,
                mShadowRadius / 2,
                mShadowColor);

        if (mAllowCheckStateShadow) {
            mCheckedBackgroundPaint.setShadowLayer(
                    mShadowRadius,
                    0.0f,
                    mShadowRadius / 2,
                    mShadowColor);
        }

        // Invalidate the view if asked
        if (invalidate) {
            invalidate();
        }
    }
1065654
public void setThreshold(final double THRESHOLD) {
        originalThreshold = THRESHOLD;
        if (null == threshold) {
            _threshold = clamp(getMinValue(), getMaxValue(), THRESHOLD);
            fireTileEvent(RESIZE_EVENT);
        } else {
            threshold.set(THRESHOLD);
        }
    }
287515
public void setAlarmsEnabled(final boolean CHECK) {
        if (null == alarmsEnabled) {
            _alarmsEnabled = CHECK;
            fireTileEvent(VISIBILITY_EVENT);
        } else {
            alarmsEnabled.set(CHECK);
        }
    }