All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ioc.commons.ui.HasEnabled Maven / Gradle / Ivy

Go to download

This project defines a set of useful java interfaces for helping you in the definition of the structure of your developments in Java-projects which are designed using a Inversion-Of-Control (IOC) pattern. Useful for MVP-Pattern designs in applications coded on GWT, SWT, Android, etc.

There is a newer version: 1.2.1
Show newest version
package org.ioc.commons.ui;

/**
 * Feature for a component which can be put in an enabled or disabled state.
 * 
 * @author Jesús Lunar Pérez
 */
public interface HasEnabled {

	/**
	 * Returns true if the widget is enabled, false if not.
	 */
	boolean isEnabled();

	/**
	 * Sets whether this widget is enabled.
	 * 
	 * @param enabled
	 *            true to enable the component, false to
	 *            disable it
	 */
	void setEnabled(boolean enabled);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy