示例#1
0
 private Image createRunIcon() {
   Image icon = new Image(ThemeResources.INSTANCE.runChunk());
   icon.addStyleName(ThemeStyles.INSTANCE.highlightIcon());
   icon.setTitle(commands_.executeCurrentChunk().getTooltip());
   bindNativeClickToExecuteChunk(this, icon.getElement());
   return icon;
 }
示例#2
0
  private Image createRunPreviousIcon(boolean dark) {
    Image icon =
        new Image(
            dark
                ? ThemeResources.INSTANCE.runPreviousChunksDark()
                : ThemeResources.INSTANCE.runPreviousChunksLight());
    icon.addStyleName(ThemeStyles.INSTANCE.highlightIcon());

    icon.setTitle(commands_.executePreviousChunks().getTooltip());
    bindNativeClickToExecutePreviousChunks(this, icon.getElement());
    return icon;
  }
示例#3
0
  private Image createOptionsIcon(boolean dark, boolean setupChunk) {
    Image icon =
        new Image(
            dark
                ? ThemeResources.INSTANCE.chunkOptionsDark()
                : ThemeResources.INSTANCE.chunkOptionsLight());
    icon.addStyleName(ThemeStyles.INSTANCE.highlightIcon());

    if (setupChunk) icon.addStyleName(RES.styles().setupChunk());

    icon.setTitle("Modify chunk options");
    bindNativeClickToOpenOptions(this, icon.getElement());
    return icon;
  }