String () { StringBuilder titleBuilder = new StringBuilder(); if (getBinding() != null) { titleBuilder.append(getBinding()); } else { final String className = getComponentClassName(); int pos = className.lastIndexOf('.'); if (pos < 0) { titleBuilder.append(className); } else { titleBuilder.append(className.substring(pos + 1).replace('$', '.')); } final String title = getComponentTitle(); if (title != null) { titleBuilder.append(" ").append(title); } } return titleBuilder.toString(); }