net.sf.launch4j.binding.Binding Java Examples

The following examples show how to use net.sf.launch4j.binding.Binding. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: HeaderFormImpl.java    From PyramidShader with GNU General Public License v3.0 5 votes vote down vote up
public void actionPerformed(ActionEvent e) {
	if (!_headerObjectsCheck.isSelected()) {
		ConfigPersister.getInstance().getConfig().setHeaderObjects(null);
		Binding b = _bindings.getBinding("headerObjects");
		b.put(ConfigPersister.getInstance().getConfig());
	}
}
 
Example #2
Source File: AbstractAcceptListener.java    From jmkvpropedit with BSD 2-Clause "Simplified" License 5 votes vote down vote up
protected void signalViolation(String msg) {
	final Color bg = _field.getBackground();
	_field.setBackground(Binding.INVALID_COLOR);
	MainFrame.getInstance().warn(msg);
	_field.setBackground(bg);
	_field.requestFocusInWindow();
}
 
Example #3
Source File: HeaderFormImpl.java    From jmkvpropedit with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public void actionPerformed(ActionEvent e) {
	if (!_headerObjectsCheck.isSelected()) {
		ConfigPersister.getInstance().getConfig().setHeaderObjects(null);
		Binding b = _bindings.getBinding("headerObjects");
		b.put(ConfigPersister.getInstance().getConfig());
	}
}
 
Example #4
Source File: HeaderFormImpl.java    From jmkvpropedit with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public void actionPerformed(ActionEvent e) {
	Config c = ConfigPersister.getInstance().getConfig();
	c.setHeaderType(e.getActionCommand());

	if (!_headerObjectsCheck.isSelected()) {
		Binding b = _bindings.getBinding("headerObjects");
		b.put(c);
		updateLibs();
	}
}
 
Example #5
Source File: HeaderFormImpl.java    From jmkvpropedit with BSD 2-Clause "Simplified" License 5 votes vote down vote up
private void updateLibs() {
	if (!_libsCheck.isSelected()) {
		ConfigPersister.getInstance().getConfig().setLibs(null);
		Binding b = _bindings.getBinding("libs");
		b.put(ConfigPersister.getInstance().getConfig());
	}
}
 
Example #6
Source File: MainFrame.java    From jmkvpropedit with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public void warn(InvariantViolationException e) {
	Binding b = e.getBinding(); 
	if (b != null) {
		b.markInvalid();
	}
	warn(e.getMessage());
	if (b != null) {
		e.getBinding().markValid();
	}
}
 
Example #7
Source File: AbstractAcceptListener.java    From PyramidShader with GNU General Public License v3.0 5 votes vote down vote up
protected void signalViolation(String msg) {
	final Color bg = _field.getBackground();
	_field.setBackground(Binding.INVALID_COLOR);
	MainFrame.getInstance().warn(msg);
	_field.setBackground(bg);
	_field.requestFocusInWindow();
}
 
Example #8
Source File: HeaderFormImpl.java    From PyramidShader with GNU General Public License v3.0 5 votes vote down vote up
public void actionPerformed(ActionEvent e) {
	if (!_libsCheck.isSelected()) {
		ConfigPersister.getInstance().getConfig().setLibs(null);
		Binding b = _bindings.getBinding("libs");
		b.put(ConfigPersister.getInstance().getConfig());
	}
}
 
Example #9
Source File: HeaderFormImpl.java    From PyramidShader with GNU General Public License v3.0 5 votes vote down vote up
public void stateChanged(ChangeEvent e) {
	Config c = ConfigPersister.getInstance().getConfig();
	c.setHeaderType(_guiHeaderRadio.isSelected() ? Config.GUI_HEADER
												: Config.CONSOLE_HEADER);
	if (!_headerObjectsCheck.isSelected()) {
		Binding b = _bindings.getBinding("headerObjects");
		b.put(c);
	}
}
 
Example #10
Source File: MainFrame.java    From PyramidShader with GNU General Public License v3.0 5 votes vote down vote up
public void warn(InvariantViolationException e) {
	Binding b = e.getBinding(); 
	if (b != null) {
		b.markInvalid();
	}
	warn(e.getMessage());
	if (b != null) {
		e.getBinding().markValid();
	}
}
 
Example #11
Source File: AbstractAcceptListener.java    From beast-mcmc with GNU Lesser General Public License v2.1 5 votes vote down vote up
protected void signalViolation(String msg) {
	final Color bg = _field.getBackground();
	_field.setBackground(Binding.INVALID_COLOR);
	MainFrame.getInstance().warn(msg);
	_field.setBackground(bg);
	_field.requestFocusInWindow();
}
 
Example #12
Source File: HeaderFormImpl.java    From beast-mcmc with GNU Lesser General Public License v2.1 5 votes vote down vote up
public void actionPerformed(ActionEvent e) {
	if (!_headerObjectsCheck.isSelected()) {
		ConfigPersister.getInstance().getConfig().setHeaderObjects(null);
		Binding b = _bindings.getBinding("headerObjects");
		b.put(ConfigPersister.getInstance().getConfig());
	}
}
 
Example #13
Source File: HeaderFormImpl.java    From beast-mcmc with GNU Lesser General Public License v2.1 5 votes vote down vote up
public void actionPerformed(ActionEvent e) {
	Config c = ConfigPersister.getInstance().getConfig();
	c.setHeaderType(e.getActionCommand());

	if (!_headerObjectsCheck.isSelected()) {
		Binding b = _bindings.getBinding("headerObjects");
		b.put(c);
		updateLibs();
	}
}
 
Example #14
Source File: HeaderFormImpl.java    From beast-mcmc with GNU Lesser General Public License v2.1 5 votes vote down vote up
private void updateLibs() {
	if (!_libsCheck.isSelected()) {
		ConfigPersister.getInstance().getConfig().setLibs(null);
		Binding b = _bindings.getBinding("libs");
		b.put(ConfigPersister.getInstance().getConfig());
	}
}
 
Example #15
Source File: MainFrame.java    From beast-mcmc with GNU Lesser General Public License v2.1 5 votes vote down vote up
public void warn(InvariantViolationException e) {
	Binding b = e.getBinding(); 
	if (b != null) {
		b.markInvalid();
	}
	warn(e.getMessage());
	if (b != null) {
		e.getBinding().markValid();
	}
}
 
Example #16
Source File: ConfigFormImpl.java    From beast-mcmc with GNU Lesser General Public License v2.1 4 votes vote down vote up
public Binding getBinding(String property) {
	return _bindings.getBinding(property);
}
 
Example #17
Source File: ConfigFormImpl.java    From PyramidShader with GNU General Public License v3.0 4 votes vote down vote up
public Binding getBinding(String property) {
	return _bindings.getBinding(property);
}
 
Example #18
Source File: ConfigFormImpl.java    From jmkvpropedit with BSD 2-Clause "Simplified" License 4 votes vote down vote up
public Binding getBinding(String property) {
	return _bindings.getBinding(property);
}