Package jmri.jmrit.display.layoutEditor
Class LayoutTrackExpectedState<T extends LayoutTrack>
java.lang.Object
jmri.beans.UnboundBean
jmri.beans.Bean
jmri.jmrit.display.layoutEditor.LayoutTrackExpectedState<T>
- Type Parameters:
T- the supported type of LayoutTrack
- All Implemented Interfaces:
BeanInterface,PropertyChangeFirer,PropertyChangeProvider,ExpectedState<T,Integer>
public class LayoutTrackExpectedState<T extends LayoutTrack>
extends Bean
implements ExpectedState<T,Integer>
Retain a LayoutTrack and its expected state.
-
Field Summary
Fields inherited from class jmri.beans.Bean
propertyChangeSupportFields inherited from interface jmri.ExpectedState
EXPECTED_STATE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the expected state.Get the Object this records the expected state for.voidsetExpectedState(Integer state) Set the expected state.Methods 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
-
LayoutTrackExpectedState
-
-
Method Details
-
getExpectedState
Description copied from interface:ExpectedStateGet the expected state. This state should not change as the state of the NamedBean changes.- Specified by:
getExpectedStatein interfaceExpectedState<T extends LayoutTrack,Integer> - Returns:
- the expected state
-
setExpectedState
Description copied from interface:ExpectedStateSet the expected state.If UnsupportedOperationException is not thrown, this must fire a
PropertyChangeEventwith the name "expectedState"- Specified by:
setExpectedStatein interfaceExpectedState<T extends LayoutTrack,Integer> - Parameters:
state- the new expected state- Throws:
UnsupportedOperationException- if the implementing class does not allow states to be set
-
getObject
Description copied from interface:ExpectedStateGet the Object this records the expected state for.- Specified by:
getObjectin interfaceExpectedState<T extends LayoutTrack,Integer> - Returns:
- the associated object
-