public void setComposite(Composite composite) {
		this.composite = composite;
		if (composite != null) {
			bigEndian = composite.getDataOrganization().isBigEndian();
		}
		allocationByteOffset = 0;
		allocationByteSize = 1;
		if (!editUseEnabled && composite != null) {
			allocationByteSize = composite.getLength();
		}
		setBounds(0, 0, getPreferredWidth(), getPreferredHeight());
		invalidate();
		init(null);
	}
Set the current composite.  State will reset to a non-edit mode.
The edit use enablement will remain unchanged.
@param composite composite or null
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/compositeeditor/BitFieldPlacementComponent.java