public final class BooleanProperty extends Object
Modifier and Type | Class and Description |
---|---|
static class |
BooleanProperty.PropertyException
Indicates a problem with accessing the property.
|
Constructor and Description |
---|
BooleanProperty(Object bean,
String propertyName)
Constructor.
|
public BooleanProperty(Object bean, String propertyName) throws BooleanProperty.PropertyException
bean
- Bean to introspect.propertyName
- The property.BooleanProperty.PropertyException
- If a boolean property of the given name
could not be found.public boolean get() throws BooleanProperty.PropertyException
BooleanProperty.PropertyException
- If the value could not be read.public void set(boolean value) throws BooleanProperty.PropertyException
value
- The new value of the property.BooleanProperty.PropertyException
- If the value could not be written.Copyright © 2000-2014. All Rights Reserved.