comp.setSclass(sc.substring(0, sc.lastIndexOf(" __selected__")));
}
private void addMark(Component selected){
if(selected == null || !(selected instanceof HtmlBasedComponent)) return;
HtmlBasedComponent comp = (HtmlBasedComponent) selected;
comp.setSclass(comp.getSclass() + " __selected__");
}