flatscape.editor
Class UnitSizeEditor

java.lang.Object
  |
  +--flatscape.editor.Editor
        |
        +--flatscape.editor.TextEditor
              |
              +--flatscape.editor.UnitSizeEditor
All Implemented Interfaces:
java.awt.event.ActionListener, Configurable, java.util.EventListener

public class UnitSizeEditor
extends TextEditor

Editor for values which can be handled with a JComboBox

Copyright (c) 2001 Rutgers, The State University of New Jersey

Since:
manifold %Version%
Version:
%Version%, %Time%

Field Summary
protected  SymbolDB symbols_
           
 
Fields inherited from class flatscape.editor.TextEditor
text_
 
Fields inherited from class flatscape.editor.Editor
component_, description_, height_, model_, name_, parent_
 
Constructor Summary
UnitSizeEditor()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 java.lang.Object config(java.lang.Object parent, org.w3c.dom.Element config)
          Loads the configuration
 void init(EditorModel model)
          Initializing the editor.
 void setPropertyValue(java.lang.Object value)
          Sets the value of the property
 
Methods inherited from class flatscape.editor.TextEditor
getPropertyValue
 
Methods inherited from class flatscape.editor.Editor
getComponent, getDescription, getHeight, getName, isVisible, propertyUpdated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

symbols_

protected SymbolDB symbols_
Constructor Detail

UnitSizeEditor

public UnitSizeEditor()
Method Detail

config

public java.lang.Object config(java.lang.Object parent,
                               org.w3c.dom.Element config)
                        throws java.lang.Exception
Loads the configuration

Specified by:
config in interface Configurable
Overrides:
config in class TextEditor
Parameters:
parent - The argument passed into the FConfig.getList method
config - The DOM element representing the XML element that loaded this class.
Returns:
The configured class, usually returns this.
Throws:
java.lang.Exception - Thrown if there is any problem configuring this class.

init

public void init(EditorModel model)
Description copied from class: Editor
Initializing the editor. Called by EditorPanel when its init method is called.

Overrides:
init in class Editor

setPropertyValue

public void setPropertyValue(java.lang.Object value)
Description copied from class: TextEditor
Sets the value of the property

Overrides:
setPropertyValue in class TextEditor

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener
Overrides:
actionPerformed in class TextEditor


Copyright (c) 2003 Rutgers, The State University of New Jersey