public class DrawingAttributesPropertyEditor extends PropertyConsumerPropertyEditor
Modifier and Type | Field and Description |
---|---|
protected DrawingAttributes |
drawingAttributes |
propertyPrefix
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty
Constructor and Description |
---|
DrawingAttributesPropertyEditor() |
Modifier and Type | Method and Description |
---|---|
void |
focusGained(java.awt.event.FocusEvent e) |
void |
focusLost(java.awt.event.FocusEvent e) |
java.lang.String |
getAsText() |
java.awt.Component |
getCustomEditor()
Returns the editor GUI.
|
DrawingAttributes |
getDrawingAttributes() |
java.util.Properties |
getProperties(java.util.Properties props)
PropertyConsumer method.
|
void |
setCustomEditor(java.awt.Component comp) |
void |
setDrawingAttributes(DrawingAttributes drawingAttributes) |
void |
setProperties(java.lang.String prefix,
java.util.Properties props)
Method to set the properties in the PropertyConsumer.
|
boolean |
supportsCustomEditor() |
getPropertyInfo, getPropertyPrefix, setProperties, setPropertyPrefix
protected DrawingAttributes drawingAttributes
public boolean supportsCustomEditor()
supportsCustomEditor
in interface java.beans.PropertyEditor
supportsCustomEditor
in class java.beans.PropertyEditorSupport
public void setCustomEditor(java.awt.Component comp)
public java.awt.Component getCustomEditor()
getCustomEditor
in interface java.beans.PropertyEditor
getCustomEditor
in class java.beans.PropertyEditorSupport
public DrawingAttributes getDrawingAttributes()
public void setDrawingAttributes(DrawingAttributes drawingAttributes)
public void focusGained(java.awt.event.FocusEvent e)
public void focusLost(java.awt.event.FocusEvent e)
public java.lang.String getAsText()
getAsText
in interface java.beans.PropertyEditor
getAsText
in class java.beans.PropertyEditorSupport
public void setProperties(java.lang.String prefix, java.util.Properties props)
PropertyConsumer
setProperties
in interface PropertyConsumer
setProperties
in class PropertyConsumerPropertyEditor
prefix
- the token to prefix the property namesprops
- the Properties
objectpublic java.util.Properties getProperties(java.util.Properties props)
PropertyConsumerPropertyEditor
getProperties
in interface PropertyConsumer
getProperties
in class PropertyConsumerPropertyEditor
props
- a Properties object to load the PropertyConsumer
properties into. If props equals null, then a new
Properties object should be created.Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details