public class CoordInfoFormatterHandler extends OMComponent
This class should be placed in the MapHandler, which you can do via the properties by adding it's marker name to the openmap.components property list. The properties look like this (for a marker name coordFormatterHandler):
coordFormatterHandler.class=com.bbn.openmap.util.coordFormatter.CoordInfoFormatterHandler coordFormatterHandler.formatters=dmsFormatter basicFormatter coordFormatterHandler.dmsFormatter.class=com.bbn.openmap.util.coordFormatter.DMSCoordInfoFormatter coordFormatterHandler.basicFormatter.class=com.bbn.openmap.util.coordFormatter.BasicCoordInfoFormatter
Modifier and Type | Field and Description |
---|---|
protected CoordInfoFormatter |
activeFormatter |
static java.lang.String |
FORMATTER_PROPERTY |
protected java.util.List<CoordInfoFormatter> |
formatters |
i18n, propertyPrefix
beanContextChildSupport, isolated
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty
Constructor and Description |
---|
CoordInfoFormatterHandler() |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.lang.String property,
java.beans.PropertyChangeListener pcl)
Method for BeanContextChild interface.
|
java.util.Properties |
getProperties(java.util.Properties props)
PropertyConsumer method, to fill in a Properties object, reflecting the
current values of the OMComponent.
|
java.util.Properties |
getPropertyInfo(java.util.Properties props)
Method to fill in a Properties object with values reflecting the
properties able to be set on this PropertyConsumer.
|
void |
setActiveFormatter(CoordInfoFormatter formatter) |
void |
setProperties(java.lang.String prefix,
java.util.Properties props)
Sets the properties for the OMComponent.
|
getPropertyPrefix, setProperties, setPropertyPrefix
addVetoableChangeListener, childrenAdded, childrenRemoved, findAndInit, findAndInit, findAndUndo, firePropertyChange, fireVetoableChange, getBeanContext, isIsolated, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext, setIsolated
protected java.util.List<CoordInfoFormatter> formatters
protected CoordInfoFormatter activeFormatter
public static final java.lang.String FORMATTER_PROPERTY
public void setProperties(java.lang.String prefix, java.util.Properties props)
OMComponent
setProperties
in interface PropertyConsumer
setProperties
in class OMComponent
prefix
- the token to prefix the property namesprops
- the Properties
objectpublic java.util.Properties getProperties(java.util.Properties props)
OMComponent
getProperties
in interface PropertyConsumer
getProperties
in class OMComponent
props
- a Properties object to load the PropertyConsumer properties
into. If props equals null, then a new Properties object should be
created.public java.util.Properties getPropertyInfo(java.util.Properties props)
OMComponent
getPropertyInfo
in interface PropertyConsumer
getPropertyInfo
in class OMComponent
props
- a Properties object to load the PropertyConsumer properties
into. If getList equals null, then a new Properties object should
be created.public void setActiveFormatter(CoordInfoFormatter formatter)
public void addPropertyChangeListener(java.lang.String property, java.beans.PropertyChangeListener pcl)
MapHandlerChild
addPropertyChangeListener
in interface java.beans.beancontext.BeanContextChild
addPropertyChangeListener
in class MapHandlerChild
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details