flatscape.editor
Class ModifierEditor

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

public class ModifierEditor
extends Editor
implements java.awt.event.ActionListener

Editor for military symbol modifiers.

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

Since:
flatscape %Version%
Version:
%Version%, %Time%

Field Summary
protected  java.lang.String affiliation_
          Present affiliation
protected  java.lang.String image_file
           
protected  boolean menu_off_flag
           
protected  java.util.ArrayList mod_forest
           
protected  java.lang.String modifiers_
          The selected modifiers
protected  java.util.ArrayList mods_
           
protected  java.lang.String path_num
           
protected  SymbolDB symbols_
          Symbol database
protected  javax.swing.JMenu the_menu
           
protected  javax.swing.JPopupMenu the_popup_menu
           
protected  java.lang.String unittype_
          Present unit type
 
Fields inherited from class flatscape.editor.Editor
component_, description_, height_, model_, name_, parent_
 
Constructor Summary
ModifierEditor()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
protected  javax.swing.JMenu build_menu(ModTreeNode tree_x)
           
 java.lang.Object config(java.lang.Object parent, org.w3c.dom.Element config)
          Loads the configuration
 java.lang.Object getPropertyValue()
           
 void init(EditorModel model)
          Initializing the editor.
 void propertyUpdated(java.lang.String name, java.lang.Object value)
          Called by EditorPanel, when a property has been updated.
 void setPropertyValue(java.lang.Object value)
          Sets the value of the property
protected  void setup_menu()
           
 void update()
           
 
Methods inherited from class flatscape.editor.Editor
getComponent, getDescription, getHeight, getName, isVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

affiliation_

protected java.lang.String affiliation_
Present affiliation


unittype_

protected java.lang.String unittype_
Present unit type


modifiers_

protected java.lang.String modifiers_
The selected modifiers


symbols_

protected SymbolDB symbols_
Symbol database


mods_

protected java.util.ArrayList mods_

image_file

protected java.lang.String image_file

path_num

protected java.lang.String path_num

mod_forest

protected java.util.ArrayList mod_forest

the_menu

protected javax.swing.JMenu the_menu

the_popup_menu

protected javax.swing.JPopupMenu the_popup_menu

menu_off_flag

protected boolean menu_off_flag
Constructor Detail

ModifierEditor

public ModifierEditor()
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 Editor
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

getPropertyValue

public java.lang.Object getPropertyValue()
Specified by:
getPropertyValue in class Editor
Returns:
the value of the property

setPropertyValue

public void setPropertyValue(java.lang.Object value)
Sets the value of the property

Specified by:
setPropertyValue in class Editor

setup_menu

protected void setup_menu()

build_menu

protected javax.swing.JMenu build_menu(ModTreeNode tree_x)

actionPerformed

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

update

public void update()

propertyUpdated

public void propertyUpdated(java.lang.String name,
                            java.lang.Object value)
Called by EditorPanel, when a property has been updated.

Overrides:
propertyUpdated in class Editor


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