Package com.thecoderscorner.menu.domain
Class FloatMenuItem
- java.lang.Object
-
- com.thecoderscorner.menu.domain.MenuItem<java.lang.Float>
-
- com.thecoderscorner.menu.domain.FloatMenuItem
-
public class FloatMenuItem extends MenuItem<java.lang.Float>
FloatMenuItem represents a menu item that uses a floating point value. It is not editable on the device because it does not really represent absolute values, but is sometimes useful for conveying status.
-
-
Field Summary
-
Fields inherited from class com.thecoderscorner.menu.domain.MenuItem
eepromAddress, functionName, id, localOnly, name, readOnly, visible
-
-
Constructor Summary
Constructors Constructor Description FloatMenuItem()FloatMenuItem(java.lang.String name, int id, java.lang.String functionName, int eepromAddr, int numDecimalPlaces, boolean readOnly, boolean localOnly, boolean visible)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(MenuItemVisitor visitor)booleanequals(java.lang.Object o)intgetNumDecimalPlaces()inthashCode()MenuState<java.lang.Float>newMenuState(java.lang.Float value, boolean changed, boolean active)-
Methods inherited from class com.thecoderscorner.menu.domain.MenuItem
getEepromAddress, getFunctionName, getId, getName, hasChildren, isLocalOnly, isReadOnly, isVisible, toString
-
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getNumDecimalPlaces
public int getNumDecimalPlaces()
-
newMenuState
public MenuState<java.lang.Float> newMenuState(java.lang.Float value, boolean changed, boolean active)
- Specified by:
newMenuStatein classMenuItem<java.lang.Float>
-
accept
public void accept(MenuItemVisitor visitor)
-
-