Implemented getting component type from the paletteView