Example usage for com.vaadin.server ThemeResource ThemeResource

List of usage examples for com.vaadin.server ThemeResource ThemeResource

Introduction

In this page you can find the example usage for com.vaadin.server ThemeResource ThemeResource.

Prototype

public ThemeResource(String resourceId) 

Source Link

Document

Creates a resource.

Usage

From source file:org.vaadin.addons.javaee.buttons.CancelButton.java

License:Apache License

public CancelButton(CanHandleCancelButton canHandle, String title) {
    super(TranslationKeys.BUTTON_CANCEL, title);
    addClickListener(new CancelClickHandler(this, canHandle));
    setIcon(new ThemeResource("icons/silk/cancel.png"));
}

From source file:org.vaadin.addons.javaee.buttons.DeleteButton.java

License:Apache License

public DeleteButton(CanHandleDeleteButton canHandle, String title) {
    super(TranslationKeys.BUTTON_DELETE, title);
    addClickListener(new DeleteClickHandler(this, canHandle));
    setIcon(new ThemeResource("icons/silk/delete.png"));
}

From source file:org.vaadin.addons.javaee.buttons.EditButton.java

License:Apache License

public EditButton(CanHandleEditButton canHandle, String title) {
    super(TranslationKeys.BUTTON_EDIT, title);
    addClickListener(new EditClickHandler(this, canHandle));
    setIcon(new ThemeResource("icons/silk/application_form_edit.png"));
}

From source file:org.vaadin.addons.javaee.buttons.FinishButton.java

License:Apache License

public FinishButton(CanHandleFinishButton canHandle, String title) {
    super(TranslationKeys.BUTTON_FINISH, title);
    addClickListener(new FinishClickHandler(this, canHandle));
    setIcon(new ThemeResource("icons/silk/accept.png"));
}

From source file:org.vaadin.addons.javaee.buttons.NewButton.java

License:Apache License

public NewButton(CanHandleNewButton canHandle, String title) {
    super(TranslationKeys.BUTTON_NEW, title);
    addClickListener(new NewClickHandler(this, canHandle));
    setIcon(new ThemeResource("icons/silk/add.png"));
}

From source file:org.vaadin.addons.javaee.buttons.NextButton.java

License:Apache License

public NextButton(CanHandleNextButton canHandle, String title) {
    super(TranslationKeys.BUTTON_NEXT, title);
    addClickListener(new NextClickHandler(this, canHandle));
    setIcon(new ThemeResource("icons/silk/resultset_next.png"));
    setClickShortcut(KeyCode.ENTER);//from ww  w  . j a v a  2  s .c  om
    addStyleName("primary");
}

From source file:org.vaadin.addons.javaee.buttons.OkButton.java

License:Apache License

public OkButton(CanHandleOkButton canHandle, String title) {
    super(TranslationKeys.BUTTON_OK, title);
    addClickListener(new OkClickHandler(this, canHandle));
    setIcon(new ThemeResource("icons/silk/accept.png"));
    setClickShortcut(KeyCode.ENTER);//ww  w  . j a  v a 2  s .  c om
    addStyleName("primary");
}

From source file:org.vaadin.addons.javaee.buttons.PrevButton.java

License:Apache License

public PrevButton(CanHandlePrevButton canHandle, String title) {
    super(TranslationKeys.BUTTON_PREV, title);
    addClickListener(new PrevClickHandler(this, canHandle));
    setIcon(new ThemeResource("icons/silk/resultset_previous.png"));
}

From source file:org.vaadin.addons.javaee.buttons.ResetButton.java

License:Apache License

public ResetButton(CanHandleResetButton canHandle, String title) {
    super(TranslationKeys.BUTTON_RESET, title);
    addClickListener(new ResetClickHandler(this, canHandle));
    setIcon(new ThemeResource("icons/silk/application.png"));
}

From source file:org.vaadin.addons.javaee.buttons.SaveButton.java

License:Apache License

private void configure(CanHandleSaveButton canHandle) {
    addClickListener(new SaveClickHandler(this, canHandle));
    setIcon(new ThemeResource("icons/silk/page_save.png"));
    setClickShortcut(KeyCode.ENTER);/*from w  ww. j  a  v  a  2  s.com*/
    addStyleName("primary");
}