@Override
	public void endSetup(Attributes atts) {
		AbstractPreferencesPanel prefPanel = (AbstractPreferencesPanel) GUITreeLoader.getAncestorElementOfClass("com.organic.maynard.outliner.util.preferences.AbstractPreferencesPanel");
		
		// Add it to the PreferenceList in the parent panel
		prefPanel.addPreference(this);
		
		Container c = prefPanel.getCurrentContainer();
		
		if (STYLE_SINGLE_CENTERED.equals(atts.getValue(A_STYLE))) {
			AbstractPreferencesPanel.addSingleItemCentered(new JLabel(getLabelText()), c);
			AbstractPreferencesPanel.addSingleItemCentered(getComponent(), c);
		} else {
			AbstractPreferencesPanel.addPreferenceItem(getLabelText(), getComponent(), c);
		}
	}