Class ConfigurationWizardModel
java.lang.Object
com.jgoodies.common.bean.Bean
com.jgoodies.binding.beans.Model
org.bidib.wizard.mvc.stepcontrol.model.ConfigurationWizardModel
- All Implemented Interfaces:
com.jgoodies.common.bean.ObservableBean,com.jgoodies.common.bean.ObservableBean2,Serializable
public class ConfigurationWizardModel
extends com.jgoodies.binding.beans.Model
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class com.jgoodies.common.bean.Bean
changeSupport -
Constructor Summary
ConstructorsConstructorDescriptionConfigurationWizardModel(org.bidib.wizard.api.model.NodeInterface selectedNode) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckValidConfigurationValues(String valueIdentifier, LongSupplier newValueSupplier, LongConsumer correctedValueConsumer) Check if the current configuration values for accel and decel are validgetAccel()getDecel()Prepare the content of the SummaryPanel.org.bidib.wizard.api.model.NodeInterfacegetSpeed()org.bidib.wizard.model.stepcontrol.TurnTableTypevoidvoidsetAccelerationScale(AccelarationScaleEnum accelerationScale) voidvoidsetGearing(Gearing gearing) voidsetMicroStepping(MicroStepsEnum microStepping) voidsetMotorSizeType(MotorSizeType motorSizeType) voidvoidsetSpeedScale(MovementScaleEnum speedScale) voidsetStepCount(Integer stepCount) voidsetTurnTableType(org.bidib.wizard.model.stepcontrol.TurnTableType turnTableType) voidsetWizardStatus(ConfigurationWizardModel.WizardStatus wizardStatus) toString()voidvoidMethods inherited from class com.jgoodies.binding.beans.Model
createPropertyChangeSupport, firePropertyChangeMethods inherited from class com.jgoodies.common.bean.Bean
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, fireMultiplePropertiesChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
-
Field Details
-
PROPERTYNAME_TURNTABLE_TYPE
- See Also:
-
PROPERTYNAME_MOTORSIZE_TYPE
- See Also:
-
PROPERTYNAME_STEPCOUNT
- See Also:
-
PROPERTYNAME_GEARING
- See Also:
-
PROPERTYNAME_MICROSTEPPING
- See Also:
-
PROPERTYNAME_TOTALSTEPCOUNT
- See Also:
-
PROPERTYNAME_WIZARDSTATUS
- See Also:
-
PROPERTYNAME_HTMLCONTENT
- See Also:
-
PROPERTYNAME_SPEED_SCALE
- See Also:
-
PROPERTYNAME_ACCELERATION_SCALE
- See Also:
-
PROPERTYNAME_SPEED
- See Also:
-
PROPERTYNAME_ACCEL
- See Also:
-
PROPERTYNAME_DECEL
- See Also:
-
-
Constructor Details
-
ConfigurationWizardModel
public ConfigurationWizardModel(org.bidib.wizard.api.model.NodeInterface selectedNode)
-
-
Method Details
-
getSelectedNode
public org.bidib.wizard.api.model.NodeInterface getSelectedNode()- Returns:
- the selected node
-
getTurnTableType
public org.bidib.wizard.model.stepcontrol.TurnTableType getTurnTableType()- Returns:
- the turnTableType
-
setTurnTableType
public void setTurnTableType(org.bidib.wizard.model.stepcontrol.TurnTableType turnTableType) - Parameters:
turnTableType- the turnTableType to set
-
getMotorSizeType
- Returns:
- the motorSizeType
-
setMotorSizeType
- Parameters:
motorSizeType- the motorSizeType to set
-
getStepCount
- Returns:
- the stepCount
-
setStepCount
- Parameters:
stepCount- the stepCount to set
-
getGearing
- Returns:
- the gearing
-
setGearing
- Parameters:
gearing- the gearing to set
-
getMicroStepping
- Returns:
- the microStepping
-
setMicroStepping
- Parameters:
microStepping- the microStepping to set
-
getTotalStepCount
- Returns:
- the total step count
-
triggerUpdateTotalSteps
public void triggerUpdateTotalSteps() -
getSpeedScale
- Returns:
- the speedScale
-
setSpeedScale
- Parameters:
speedScale- the speedScale to set
-
getAccelerationScale
- Returns:
- the accelerationScale
-
setAccelerationScale
- Parameters:
accelerationScale- the accelerationScale to set
-
getWizardStatus
- Returns:
- the wizardStatus
-
setWizardStatus
- Parameters:
wizardStatus- the wizardStatus to set
-
getSpeed
- Returns:
- the speed
-
setSpeed
- Parameters:
speed- the speed to set
-
getAccel
- Returns:
- the accel
-
setAccel
- Parameters:
accel- the accel to set
-
getDecel
- Returns:
- the decel
-
setDecel
- Parameters:
decel- the decel to set
-
checkValidConfigurationValues
public void checkValidConfigurationValues(String valueIdentifier, LongSupplier newValueSupplier, LongConsumer correctedValueConsumer) Check if the current configuration values for accel and decel are valid- Throws:
IllegalArgumentException- thrown if invalid values detected
-
getHtmlContent
Prepare the content of the SummaryPanel. -
triggerUpdateHtmlContent
public void triggerUpdateHtmlContent() -
toString
-