use of com.codename1.rad.ui.entityviews.ProfileAvatarsTitleComponent in project CodeRAD by shannah.
the class ProfileAvatarsTitleComponentBuilder method build.
@Override
public ProfileAvatarsTitleComponent build() {
ViewNode node = new ViewNode();
node.setParent(getContext().getNode());
EntityList l = (entity instanceof EntityList) ? (EntityList) entity : new EntityList();
if (entity != l) {
l.add(entity);
}
if (avatarSize <= 0) {
avatarSize = CN.convertToPixels(1f, Style.UNIT_TYPE_REM);
}
return new ProfileAvatarsTitleComponent(l, node, avatarSize / (float) CN.convertToPixels(1f));
}
Aggregations