public void updateEditablilty(boolean editable){
		this.editable = editable;
		for (Component comp : this.getComponents()) {
			if (comp instanceof RTextScrollPane) {
				RTextArea textArea = ((RTextScrollPane) comp).getTextArea();
				if(textArea != null){
					textArea.setEditable(editable);
				}
			}
		}
		for(int i = 0;i < this.getTabCount(); i++){
			Component comp = this.getTabComponentAt(i);
			if(comp instanceof TabPanel){
				((TabPanel) comp).setClosable(editable);
			}
			if(comp instanceof AddTabPanel){
				int r = TabbedPanel.this.indexOfTabComponent(comp);
				if (r != -1) {
					TabbedPanel.this.remove(i);
				}
			}
		}
		if(editable){
			add("+", null);
			setTabComponentAt(getTabCount()-1, new AddTabPanel());
		}
	}