/*
(non-Javadoc)

@see com.sporniket.libre.ui.swing.paper.PaperContainer#setContent(com.sporniket.libre.ui.swing.paper.PaperContent)
503277
public void setContent(PaperContent content)
	{
		if (myContent != content)
		{
			if (null != myContent)
			{
				myContent.unattach();
			}
			myContent = content;
		}
		if (null != myContent)
		{
			myContent.attachTo(this);
		}
	}
1226872
public void setContentAction(Action.OnActionListener listener) {
        setContentAction(listener, null, null, null, null);
    }
565962
@RuleSetup(RequirementLevel.OPTIONAL)
    public void setContentDefinition(final URL contentDef) {

        assertStateBefore(State.INITIALIZED);
        this.contentDef = contentDef;
    }
1004351
public void setContentAction(Action act) {
        if (act.entry != null && act.entry != this) {
            Log.e(TAG, "setContentAction failed. Already applied to another notification - " +
                  act.entry.ID + ". Current notification is " + ID);
            return;
        }
        this.contentAction = act;
        this.contentAction.entry = this;
        this.contentAction.title = "ContentAction";
    }
1071865
public void setContent(Component content) {

        m_contentPanel.setContent(content);
        if (content instanceof Layout.MarginHandler) {
            ((Layout.MarginHandler)content).setMargin(true);
        }
    }
274216
public void setContentEditing(boolean isContentEditing) {

        if (m_groupEditor != null) {
            if (isContentEditing) {
                m_groupEditor.hidePopup();
            } else {
                m_groupEditor.showPopup();
            }
        }
        m_isContentEditing = isContentEditing;
    }
37987
public void setShowContent(final boolean showContent) {
        if (!showContent)
            attrMixin.setAttribute(SHOW_CONTENT, Boolean.toString(false));
        else
            attrMixin.removeAttribute(SHOW_CONTENT);
    }
826472
public void setContent(IContent content)
	{
		this.content = content;
		content.setParent(this);
		content.setPosition(Position.of(15, 2));
	}
296064
@JsonIgnore
    public void encodeAndSetContent(byte[] byteContent) {

        if (byteContent == null) {
            this.content = null;
            return;
        }

        this.content = Base64.getEncoder().encodeToString(byteContent);
        encoding = "base64";
    }
1247286
public final void setContent(ContentPart<?>[] content)
    {
        //clear non relevant flags
        this.contentString=null;
        this.contentBinary=null;
        this.contentType=ContentType.MULTI_PART;

        if(content==null)
        {
            this.contentParts=null;
        }
        else
        {
            this.contentParts=content.clone();
        }
    }
930266
public void setContent(IContent content)
	{
		this.content = content;
		content.setParent(this);
		content.setPosition(Position.middleCenter(content));
		contentSize = content.size().plus(Size.of(6, 6));
	}
1330027
public void setContent(final WComponent content) {
		WindowModel model = getOrCreateComponentModel();

		// If the previous content had been wrapped, then remove it from the wrapping WApplication.
		if (model.wrappedContent != null && model.wrappedContent != model.content) {
			model.wrappedContent.removeAll();
		}

		model.content = content;

		// Wrap content in a WApplication
		if (content instanceof WApplication) {
			model.wrappedContent = (WApplication) content;
		} else {
			model.wrappedContent = new WApplication();
			model.wrappedContent.add(content);
		}

		// There should only be one content.
		holder.removeAll();
		holder.add(model.wrappedContent);
	}
1045141
public void setContentRect(int width, int height, int paddingLeft, int paddingTop, int paddingRight,
                               int paddingBottom) {
        chartWidth = width;
        chartHeight = height;
        maxContentRect.set(paddingLeft, paddingTop, width - paddingRight, height - paddingBottom);
        contentRectMinusAxesMargins.set(maxContentRect);
        contentRectMinusAllMargins.set(maxContentRect);
    }
711489
public void setAttachmentsContent(java.util.Collection<AttachmentContent> attachmentsContent) {
        if (attachmentsContent == null) {
            this.attachmentsContent = null;
            return;
        }

        this.attachmentsContent = new com.amazonaws.internal.SdkInternalList<AttachmentContent>(attachmentsContent);
    }
503772
public void setContents(byte[] value) {

        if (value == null) {
            value = new byte[] {};
        }
        long dateContent = System.currentTimeMillis();
        if ((m_fileContent == null) || (m_fileContent.length == 0)) {
            dateContent = m_dateContent;
        }
        m_fileContent = new byte[value.length];
        System.arraycopy(value, 0, m_fileContent, 0, value.length);

        if (m_fileContent.length > 0) {
            m_length = m_fileContent.length;
        } else {
            m_length = 0;
        }
        m_dateContent = dateContent;
    }
363755
public void setContentLocale(Locale locale) {

        m_contentLocale = locale;
        m_dateFieldKey = CmsSearchField.FIELD_INSTANCEDATE + "_" + m_contentLocale.toString() + "_dt";
    }
18450
@JsonIgnore
    public void encodeAndSetContent(String content) {
        encodeAndSetContent(content != null ? content.getBytes() : null);
    }