Class CoordinatesEditorModel
- java.lang.Object
-
- org.jdesktop.beans.AbstractBean
-
- org.jdesktop.beans.AbstractSerializableBean
-
- org.nuiton.jaxx.widgets.gis.absolute.CoordinatesEditorModel
-
- All Implemented Interfaces:
Serializable
public class CoordinatesEditorModel extends org.jdesktop.beans.AbstractSerializableBeanCreated on 8/31/14.- Since:
- 2.12
- Author:
- Tony Chemit - dev@tchemit.fr
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ObjectbeanBean where to push back data.protected booleandisplayZeroWhenNullDisplay a zero on each coordinate componant when it is null.protected booleanfillWithZeroPrefix any none null value with some zero.protected CoordinateFormatformatprotected AbsoluteCoordinateEditorModellatitudeModelprotected AbsoluteCoordinateEditorModellongitudeModelstatic StringPROPERTY_DISPLAY_ZERO_WHEN_NULLstatic StringPROPERTY_FILL_WITH_ZEROstatic StringPROPERTY_FORMATstatic StringPROPERTY_LATITUDEstatic StringPROPERTY_LONGITUDEstatic StringPROPERTY_QUADRANTstatic StringPROPERTY_SHOW_GLOBAL_RESET_BUTTONstatic StringPROPERTY_SHOW_RESET_BUTTONprotected StringpropertyLatitudeName of the property of the bean to fire the change of thelatitudeModel.protected StringpropertyLongitudeName of the property of the bean to fire the change of thelongitudeModel.protected StringpropertyQuadrantName of the property of the bean to fire the change of thequadrant.protected Integerquadrantprotected booleanshowGlobalResetButtonprotected booleanshowResetButton
-
Constructor Summary
Constructors Constructor Description CoordinatesEditorModel()
-
Method Summary
-
Methods inherited from class org.jdesktop.beans.AbstractBean
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clone, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
-
-
-
-
Field Detail
-
PROPERTY_LATITUDE
public static final String PROPERTY_LATITUDE
- See Also:
- Constant Field Values
-
PROPERTY_LONGITUDE
public static final String PROPERTY_LONGITUDE
- See Also:
- Constant Field Values
-
PROPERTY_QUADRANT
public static final String PROPERTY_QUADRANT
- See Also:
- Constant Field Values
-
PROPERTY_FORMAT
public static final String PROPERTY_FORMAT
- See Also:
- Constant Field Values
-
PROPERTY_SHOW_RESET_BUTTON
public static final String PROPERTY_SHOW_RESET_BUTTON
- See Also:
- Constant Field Values
-
PROPERTY_SHOW_GLOBAL_RESET_BUTTON
public static final String PROPERTY_SHOW_GLOBAL_RESET_BUTTON
- See Also:
- Constant Field Values
-
PROPERTY_DISPLAY_ZERO_WHEN_NULL
public static final String PROPERTY_DISPLAY_ZERO_WHEN_NULL
- See Also:
- Constant Field Values
-
PROPERTY_FILL_WITH_ZERO
public static final String PROPERTY_FILL_WITH_ZERO
- See Also:
- Constant Field Values
-
latitudeModel
protected final AbsoluteCoordinateEditorModel latitudeModel
-
longitudeModel
protected final AbsoluteCoordinateEditorModel longitudeModel
-
bean
protected Object bean
Bean where to push back data.
-
propertyLatitude
protected String propertyLatitude
Name of the property of the bean to fire the change of thelatitudeModel.
-
propertyLongitude
protected String propertyLongitude
Name of the property of the bean to fire the change of thelongitudeModel.
-
propertyQuadrant
protected String propertyQuadrant
Name of the property of the bean to fire the change of thequadrant.
-
quadrant
protected Integer quadrant
-
format
protected CoordinateFormat format
-
showResetButton
protected boolean showResetButton
-
showGlobalResetButton
protected boolean showGlobalResetButton
-
displayZeroWhenNull
protected boolean displayZeroWhenNull
Display a zero on each coordinate componant when it is null.
-
fillWithZero
protected boolean fillWithZero
Prefix any none null value with some zero.
-
-
Method Detail
-
getBean
public Object getBean()
-
setBean
public void setBean(Object bean)
-
getPropertyLatitude
public String getPropertyLatitude()
-
setPropertyLatitude
public void setPropertyLatitude(String propertyLatitude)
-
getPropertyLongitude
public String getPropertyLongitude()
-
setPropertyLongitude
public void setPropertyLongitude(String propertyLongitude)
-
getPropertyQuadrant
public String getPropertyQuadrant()
-
setPropertyQuadrant
public void setPropertyQuadrant(String propertyQuadrant)
-
isDisplayZeroWhenNull
public boolean isDisplayZeroWhenNull()
-
setDisplayZeroWhenNull
public void setDisplayZeroWhenNull(boolean displayZeroWhenNull)
-
isFillWithZero
public boolean isFillWithZero()
-
setFillWithZero
public void setFillWithZero(boolean fillWithZero)
-
isShowResetButton
public boolean isShowResetButton()
-
setShowResetButton
public void setShowResetButton(boolean showResetButton)
-
isShowGlobalResetButton
public boolean isShowGlobalResetButton()
-
setShowGlobalResetButton
public void setShowGlobalResetButton(boolean showGlobalResetButton)
-
getLatitudeModel
public AbsoluteCoordinateEditorModel getLatitudeModel()
-
getLongitudeModel
public AbsoluteCoordinateEditorModel getLongitudeModel()
-
getLatitude
public Float getLatitude()
-
setLatitude
public void setLatitude(Float latitude)
-
getLongitude
public Float getLongitude()
-
setLongitude
public void setLongitude(Float longitude)
-
getQuadrant
public Integer getQuadrant()
-
setQuadrant
public void setQuadrant(Integer quadrant)
-
getFormat
public CoordinateFormat getFormat()
-
setFormat
public void setFormat(CoordinateFormat format)
-
fireLatitude
protected void fireLatitude()
-
fireLongitude
protected void fireLongitude()
-
fireQuadrant
protected void fireQuadrant()
-
updateFormat
protected void updateFormat(CoordinateFormat format)
-
-