Made abstract methods for cssClasses and canAcceptParent