use of com.codename1.rad.ui.entityviews.LabelEntityView in project CodeRAD by shannah.
the class LabelEntityViewBuilder method build.
@Override
public LabelEntityView build() {
iconWidth = (iconWidth <= 0) ? CN.convertToPixels(1.5f, Style.UNIT_TYPE_REM) : iconWidth;
iconHeight = (iconHeight <= 0) ? CN.convertToPixels(1.5f, Style.UNIT_TYPE_REM) : iconHeight;
return new LabelEntityView(getContext().getController().createViewContext(Entity.class, entity), new Label(), iconWidth, iconHeight);
}
Aggregations