APISonar


org.tomighty.config.Options.ui

> org > tomighty > config > Options > ui
org APIs tomighty APIs config APIs Options APIs ui APIs

Example 1
@Inject private Options options;

	public void readConfiguration() {
		autoHideOption.setSelected(options.ui().autoHideWindow());
		draggableWindowOption.setSelected(options.ui().draggableWindow());
		showTimeOnTrayOption.setSelected(options.ui().showTimeOnTray());
		themeOptions.setSelectedItem(new ThemeOption(options.ui().theme().getClass()));
	}
Example 2
@Inject private Options options;

	private boolean canRelocateWindow(Point mouseLocation) {
		if(options.ui().draggableWindow() && gotRelocatedOnceAtLeast) {
			return false;
		}
		return mouseLocation != null;
	}