Example usage for com.vaadin.ui Embedded setWidth

List of usage examples for com.vaadin.ui Embedded setWidth

Introduction

In this page you can find the example usage for com.vaadin.ui Embedded setWidth.

Prototype

@Override
    public void setWidth(String width) 

Source Link

Usage

From source file:edu.nps.moves.mmowgli.modules.userprofile.UserProfileMyIdeasPanel2.java

License:Open Source License

HorizontalLayout makeCheckRow(Button butt) {
    HorizontalLayout hl = new HorizontalLayout();
    hl.setSizeUndefined();//from w  ww  .j  a  v a  2s  .c  om
    hl.addStyleName("m-userprofile-linkbuttons");
    hl.setMargin(false);
    hl.setSpacing(false);
    if (checkMarkRes == null)
        checkMarkRes = Mmowgli2UI.getGlobals().getMediaLocator().getCheckMark12px();
    Embedded embedded = new Embedded(null, checkMarkRes);
    embedded.setWidth("12px");
    if (butt == buildsButt)
        embedded.setVisible(false);
    hl.addComponent(embedded);
    hl.addComponent(butt);
    hl.setExpandRatio(butt, 1.0f);
    return hl;
}

From source file:edu.nps.moves.mmowgli.utility.MediaLocator.java

License:Open Source License

public Component getLeaderboardTitle() {
    Embedded emb = new Embedded(null, locate(
            new Media("LeaderboardTitle246w28h.png", "", "", MediaType.IMAGE, Source.GAME_IMAGES_REPOSITORY)));
    emb.setWidth("246px");
    emb.setHeight("28px");
    return emb;/*from w w  w.  ja v a2s . co m*/
}

From source file:edu.nps.moves.mmowgli.utility.MediaLocator.java

License:Open Source License

public Component getUserProfileTitle() {
    Embedded emb = new Embedded(null, locate(
            new Media("playerProfile269w28h.png", "", "", MediaType.IMAGE, Source.GAME_IMAGES_REPOSITORY)));
    emb.setWidth("269px");
    emb.setHeight("28px");
    return emb;//from   www.j  a v a  2 s  . co  m
}

From source file:edu.nps.moves.mmowgli.utility.MediaLocator.java

License:Open Source License

public Component getActionDashboardTitle() {
    Embedded emb = new Embedded(null, locate(new Media("ActionPlanDashboardTitle458w28h.png", "", "",
            MediaType.IMAGE, Source.GAME_IMAGES_REPOSITORY)));
    emb.setWidth("458px");
    emb.setHeight("28px");
    return emb;/*from   www  .  j  a v a 2  s. c o  m*/
}

From source file:edu.nps.moves.mmowgli.utility.MediaLocator.java

License:Open Source License

public Component getIdeaDashboardTitle() {
    Embedded emb = new Embedded(null, locate(new Media("IdeaDashboardTitle304w28h.png", "", "", MediaType.IMAGE,
            Source.GAME_IMAGES_REPOSITORY)));
    emb.setWidth("304px");
    emb.setHeight("28px");
    return emb;// w  w  w.j a v  a 2s .  c o m
}

From source file:edu.nps.moves.mmowgli.utility.MediaLocator.java

License:Open Source License

public Embedded getGreyActionPlanThumb() {
    Embedded emb = new Embedded(null,
            locate(new Media("greyThumb21w29h.png", "", "", MediaType.IMAGE, Source.GAME_IMAGES_REPOSITORY)));
    emb.setWidth("21px");
    emb.setHeight("29px");
    return emb;/* w w  w. j a  v a 2  s  . c  o  m*/
}

From source file:edu.nps.moves.mmowgli.utility.MediaLocator.java

License:Open Source License

public Embedded getBlackActionPlanThumb() {
    Embedded emb = new Embedded(null,
            locate(new Media("blackThumb21w29h.png", "", "", MediaType.IMAGE, Source.GAME_IMAGES_REPOSITORY)));
    emb.setWidth("21px");
    emb.setHeight("29px");
    return emb;//from  w w w.jav a2  s .c  o m
}

From source file:edu.nps.moves.mmowgli.utility.MediaLocator.java

License:Open Source License

public Embedded getDialog2CornerResource() {
    Embedded emb = new Embedded(null, locate(
            new Media("dialog2Corner28w36h.png", "", "", MediaType.IMAGE, Source.GAME_IMAGES_REPOSITORY)));
    emb.setWidth("28px");
    emb.setHeight("36px");
    return emb;/*from  w w w .  j av  a  2s  .  c  om*/
}

From source file:edu.nps.moves.mmowgli.utility.MediaLocator.java

License:Open Source License

public Embedded getTellMeMore130w15h() {
    Embedded emb = new Embedded(null,
            locate(new Media("tellMeMore130w15h.png", "", "", MediaType.IMAGE, Source.GAME_IMAGES_REPOSITORY)));
    emb.setWidth("130px");
    emb.setHeight("15px");
    return emb;//w w  w .  j  a va2  s .  c o m
}

From source file:edu.nps.moves.mmowgli.utility.MediaLocator.java

License:Open Source License

public Embedded getImNewButton202w22h() {
    Embedded emb = new Embedded(null, locate(
            new Media("imNewButton202w22h.png", "", "", MediaType.IMAGE, Source.GAME_IMAGES_REPOSITORY)));
    emb.setWidth("202px");
    emb.setHeight("22px");
    return emb;//from ww  w  . j a va2s.c o m
}