java.lang.Object
jmri.beans.UnboundBean
jmri.beans.Bean
jmri.util.NamedBeanExpectedValue<T,Integer>
jmri.util.NamedBeanExpectedState<T>
- Type Parameters:
T- the supported type of NamedBean
- All Implemented Interfaces:
BeanInterface,PropertyChangeFirer,PropertyChangeProvider,ExpectedState<T,Integer>
- Direct Known Subclasses:
BeanSetting
Retain a NamedBean and its expected state.
-
Field Summary
Fields inherited from class jmri.beans.Bean
propertyChangeSupportFields inherited from interface jmri.ExpectedState
EXPECTED_STATE -
Constructor Summary
ConstructorsConstructorDescriptionNamedBeanExpectedState(T bean, Integer state) NamedBeanExpectedState(T bean, String name, Integer state) -
Method Summary
Methods inherited from class jmri.util.NamedBeanExpectedValue
getExpectedState, getName, getObjectMethods inherited from class jmri.beans.Bean
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, isNotifyOnEDT, removePropertyChangeListener, removePropertyChangeListenerMethods inherited from class jmri.beans.UnboundBean
getIndexedProperty, getProperty, getPropertyNames, hasIndexedProperty, hasProperty, setIndexedProperty, setProperty
-
Constructor Details
-
NamedBeanExpectedState
-
NamedBeanExpectedState
-
-
Method Details
-
setExpectedState
Set the expected state.If UnsupportedOperationException is not thrown, this must fire a
PropertyChangeEventwith the name "expectedState"This implementation requires a non-null parameter.
- Specified by:
setExpectedStatein interfaceExpectedState<T extends NamedBean,Integer> - Overrides:
setExpectedStatein classNamedBeanExpectedValue<T extends NamedBean,Integer> - Parameters:
state- the new expected state- Throws:
NullPointerException- if state is null
-