Skip to content

Instantly share code, notes, and snippets.

@mvberg
Created February 27, 2014 15:32
Show Gist options
  • Save mvberg/9252370 to your computer and use it in GitHub Desktop.
Save mvberg/9252370 to your computer and use it in GitHub Desktop.
Custom widget settings
final WidgetConfigTable newConfig = new WidgetConfigTable();
newConfig.setSettingWindowSize(500, 300);
final LinkedHashMap<String, String> colorMode = new LinkedHashMap<String, String>();
colorMode.put("NONE", "None");
colorMode.put("CELL_FG", "Cell Foreground");
colorMode.put("CELL_BG", "Cell Background");
newConfig.add(new ConfigEntry("Quoteboard", "Colors", "Coloring Mode",
QuoteboardSettings.HIGHLIGHT_MODE, null, "",
ConfigSettingType.LISTBUTTON, colorMode));
settings.put("configTable", JsonUtil.intoJson(newConfig));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment