Example usage for com.vaadin.ui Embedded Embedded

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

Introduction

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

Prototype

public Embedded(String caption, Resource source) 

Source Link

Document

Creates a new Embedded object whose contents is loaded from given resource.

Usage

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;/* ww  w  . j a  va2 s  .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;/* ww  w  .ja  va  2s .  c  o  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;//w  ww.j a  v  a2  s.  co  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;/*from ww  w  .  j av  a  2  s.c om*/
}

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;/*from ww w. ja  va  2 s .  co  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 .j av  a  2 s  .  co 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 ww  w. java2s. c  o  m
}

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;//from ww w  .  j a  va  2 s. c  om
}

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 v a2  s  .c om
}

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

License:Open Source License

public Embedded getImRegisteredButton133w24h() {
    Embedded emb = new Embedded(null, locate(new Media("imRegisteredButton133w24h.png", "", "", MediaType.IMAGE,
            Source.GAME_IMAGES_REPOSITORY)));
    emb.setWidth("133px");
    emb.setHeight("24px");
    return emb;/*  w w  w.  java  2  s.  c om*/
}