Added functionality to set the a read only state on the tree nodes.

Added functionality to set the a read only state on the tree nodes.
Currently not implemented anywhere, just need code review.

issue A24Group/Triage#2578