ehsbe CommonsTM
Version 1.1.0rc3

com.ehsbe.commons.gui.util
Interface Checkable


public interface Checkable

Simple interface to detect objects, which support a "checked" aka selected state. We use this to get not into trouble with components, which already have a "select" state, which might be used in another sense than this state.

Version:
$Revision: 432 $
Author:
Jens Elkner

Method Summary
 boolean isChecked()
          Ask the object, whether it is in a checked state.
 void setChecked(boolean check)
          Set the checkable state of an object.
 

Method Detail

isChecked

boolean isChecked()
Ask the object, whether it is in a checked state. For JCheckBox e.g. isSelected() would be the equivalent.

Returns:
true if the object is in a checked aka selected state.

setChecked

void setChecked(boolean check)
Set the checkable state of an object. For a JCheckBox e.g. setSelected(boolean select) woulde be the equivalent.

Parameters:
check - true if the object should be marked as checked aka selected.

ehsbe CommonsTM
Version 1.1.0rc3

Copyright ©2005-2009 EHSBE, Walther-Rathenau-Str. 58, 39104 Magdeburg, Sachsen-Anhalt, Germany. All Rights Reserved.