Search in sources :

Example 1 with LabelEntityView

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);
}
Also used : Entity(com.codename1.rad.models.Entity) LabelEntityView(com.codename1.rad.ui.entityviews.LabelEntityView) Label(com.codename1.ui.Label)

Aggregations

Entity (com.codename1.rad.models.Entity)1 LabelEntityView (com.codename1.rad.ui.entityviews.LabelEntityView)1 Label (com.codename1.ui.Label)1