Show or hide the edit control.  You can use the attr (if not None)
        to set colours or fonts for the control.
777603
def Show(self, show, attr):
        

        super(GridCellEditor, self).Show(show, attr)
195927
function(ctrl, attrs) {
			attrs = mButton.attrs(attrs);
			//	If there is a href, we assume this is a link button
		    return m(attrs.cfg.href? 'a': 'button', attrExclude(attrs.cfg, ['text']),
		    	(attrs.state.fab || attrs.state.icon?
		    		m('i', {className: "material-icons"}, attrs.cfg.text):
		    		attrs.cfg.text)
		    );
		}
1298286
private void showSelect(boolean show) {

        if (show) {
            m_main.addStyleName(I_CmsLayoutBundle.INSTANCE.selectAreaCss().showSelect());
            return;
        }
        m_main.removeStyleName(I_CmsLayoutBundle.INSTANCE.selectAreaCss().showSelect());
    }
1293934
function isHTMLFont(attrs) {
      for(var i = 0, n = attrs.length; i < n; i++) {
        switch(attrs[i][0]) {
        case "color":
        case "face":
        case "size":
          return true;
        }
      }
      return false;
    }
1009065
function () {
        var self = this;

        if (self.hidden) {
          self.hidden = false;

          if (self.inline) {
            self.getBody().contentEditable = true;
          } else {
            DOM.show(self.getContainer());
            DOM.hide(self.id);
          }

          self.load();
          self.fire('show');
        }
      }
1142545
function Editor(el, model) {
  EditorInterface.call(this);
  this.el_ = el;

  _.assign(this.el_.style, constants.editorStyle, {
    padding: '0',
    overflowY: 'hidden'
  });

  this.ta_ = document.createElement('textarea');
  _.assign(this.ta_.style, constants.baseStyle, {
    display: 'block',
    margin: '0',
    border: '0',
    padding: constants.editorStyle.padding,
    width: '100%',
    height: '100%',
    font: constants.editorStyle.font,
    lineHeight: '1.2',
    outline: 'none',
    resize: 'none'
  });
  this.el_.appendChild(this.ta_);

  // Register input handlers. Use 'input' event to catch text mutations, and
  // various other events to catch selection mutations.
  this.ta_.addEventListener('input', this.handleInput_.bind(this));

  var handler = this.updateSelection_.bind(this);
  this.ta_.addEventListener('input', handler);
  this.ta_.addEventListener('keydown', handler);
  this.ta_.addEventListener('mousedown', handler);
  this.ta_.addEventListener('mousemove', handler);
  this.ta_.addEventListener('select', handler);
  window.addEventListener('blur', this.blur.bind(this));

  this.reset(model);
}
869598
function selected2style(styleCommand)
			{
				if(!toolbar.data("sourceOpened"))
				{
					
					// if selected to changing the font-size value
					if(styleCommand=="fSize")
						styleField = fsizebar;
					
					// if selected to changing the text-color value
					else if(styleCommand=="colors")
						styleField = cpalette;
					
					// display the style-field
					styleFieldSwitch(styleField,true);
					
					// the event of click to style button
					styleField.find("a").unbind("click").click(function()
					{
						var styleValue = $(this).attr(vars.css + "-styleval"); // the property of style value to be added
						
						// if selected to changing the font-size value
						if(styleCommand=="fSize")
						{
							styleType  = "font-size";
							styleValue = styleValue + vars.funit; // combine the value with size unit
						}
						// if selected to changing the text-color value
						else if(styleCommand=="colors")
						{
							styleType  = "color";
							styleValue = "rgb("+styleValue + ")"; // combine color value with rgb
						}
						
						var prevStyles = refuseStyle(styleType); // affect styles to child tags (and extract to the new style attributes)
						
						// change to selected text
						replaceSelection("span","style",styleType+":"+styleValue+";"+prevStyles);
						
						// hide all style-fields
						styleFieldSwitch("",false);
						
						// remove title bubbles
						$('.'+vars.css+'_title').remove();
						
						// export contents of the text to the sources
						editor.trigger("change");
					});
					
				}
				else
					// hide the style-field
					styleFieldSwitch(styleField,false);
					
				// hide the link-form-field
				linkAreaSwitch(false);
			}
244367
def _attr_display(value, html_element):
        '''
        
        '''
        if value == 'block':
            html_element.display = Display.block
        elif value == 'none':
            html_element.display = Display.none
        else:
            html_element.display = Display.inline
550331
public function RenderControl () {
		$attrsStr = $this->renderControlAttrsWithFieldVars([
			'autoComplete',
		]);
		if (!$this->form->GetFormTagRenderingStatus()) 
			$attrsStr .= (strlen($attrsStr) > 0 ? ' ' : '')
				. 'form="' . $this->form->GetId() . '"';
		$formViewClass = $this->form->GetViewClass();
		return $formViewClass::Format(static::$templates->control, [
			'id'		=> $this->id,
			'name'		=> $this->name,
			'type'		=> $this->type,
			'value'		=> htmlspecialchars($this->value, ENT_QUOTES),
			'attrs'		=> strlen($attrsStr) > 0 ? ' ' . $attrsStr : '',
		]);
	}
624553
def setLineEdit(self, lineEdit):
        
        self._lineEdit = lineEdit
        if lineEdit:
            lineEdit.setFont(self.font())
            lineEdit.installEventFilter(self)
            lineEdit.resize(self.size())
            lineEdit.hide()
126770
def hide(cls):
        
        cls.el.style.display = "none"
        cls.overlay.hide()
        cls.bind()
261119
def show(cls, values=None):
        
        if values:
            cls.set(values)

        cls.el.style.display = "block"

        cls.overlay.show()
        cls.overlay.el.bind("click", lambda x: cls.hide())
428718
protected function ckEditor()
	{
		if (isset($this->htmlOptions['options'])) {
			$options = $this->htmlOptions['options'];
			unset($this->htmlOptions['options']);
		}

		echo $this->getLabel();
		echo '<div class="controls">';
		$this->widget(
			'booster.widgets.TbCKEditor',
			array(
				'model' => $this->model,
				'attribute' => $this->attribute,
				'editorOptions' => isset($options) ? $options : array(),
				'htmlOptions' => $this->htmlOptions
			)
		);
		echo $this->getError() . $this->getHint();
		echo '</div>';
	}
645452
protected void setDirectEditButtonsVisible(boolean visible) {

        m_editButtonsVisibility.setValue(
            visible
            ? I_CmsLayoutBundle.INSTANCE.directEditCss().showButtons()
            : I_CmsLayoutBundle.INSTANCE.directEditCss().hideButtons());
        getHandler().showToolbar(visible);
    }
770608
protected void onAttributeChanged(String name) {
		if (ATTR_VISUALIZATION_TYPE.equalsIgnoreCase(name)) {
			fireShapeChanged();
		} else if ((ATTR_COLOR.equalsIgnoreCase(name))
				|| (ATTR_USE_CONTAINER_COLOR.equalsIgnoreCase(name))) {
			fireGraphicalAttributeChanged();
		}
		fireElementChanged();
	}
1190679
public void setSampleStyle()
    {
        Color colorBackground = ScreenUtil.getColor(ScreenUtil.BACKGROUND_COLOR, null, properties);
        Color colorControl = ScreenUtil.getColor(ScreenUtil.CONTROL_COLOR, null, properties);
        Color colorText = ScreenUtil.getColor(ScreenUtil.TEXT_COLOR, null, properties);
        samplePanel.setBackground(colorBackground);
        if (colorBackground == null)
            samplePanel.setBackground(SystemColor.window);
        Font font = ScreenUtil.getFont(null, properties, true);
        sampleLabel.setFont(font);
        sampleTextField.setFont(font);
        sampleTextField.setBackground(colorControl);
        if (colorControl == null)
            sampleTextField.setBackground(SystemColor.text);
        sampleLabel.setForeground(colorText);
        if (colorText == null)
            sampleLabel.setForeground(SystemColor.textText);
        sampleTextField.setForeground(colorText);
        if (colorText == null)
            sampleTextField.setForeground(SystemColor.textText);

        if (colorBackground != null)
            backgroundButton.setBackground(colorBackground);
        if (colorControl != null)
            controlColorButton.setBackground(colorControl);
        if (colorText != null)
            textColorButton.setBackground(colorText);

        this.invalidate();
    }
893624
function(oControl) {
				var sTemp = HTMLViewRenderer._getHTML(rm, oControl, sHTML);
				if (sTemp) {
					sHTML = sTemp;
				} else {
					aDeferred.push(oControl);
				}
			}