org.keridwen.modelling.group.editor.action
Class SelectionTreeListener

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by org.keridwen.modelling.group.editor.action.SelectionTreeListener
All Implemented Interfaces:
ActionListener, MouseListener, MouseMotionListener, MouseWheelListener, EventListener, TreeSelectionListener

public class SelectionTreeListener
extends MouseAdapter
implements TreeSelectionListener, ActionListener

Control listener for the main selection tree of Properties and Characteristics.

Author:
J.Forest, Artenum SARL.

Constructor Summary
SelectionTreeListener(GroupsTreeEditorView groupsTreeEditorGUI, com.artenum.frida.group.OrderedGroupList groupList)
          Default constructor.
 
Method Summary
 void actionPerformed(ActionEvent evt)
           
 void addGivenPropertyToSelectedNode(com.artenum.frida.interfaces.PropertyInterface property)
          Add the given Property to the Group selected in the tree.
 void addPropertyFromCatalogToSelectedGroupNode()
          Add properties from catalog, through a property chooser.
 void addSubPropertyFromCatalogToSelectedPropertyNode()
          Add a sub property to the select property.
 HashMap<String,com.artenum.frida.properties.PropertiesList> getPropertiesCatalog()
          Get the loaded properties catalog.
 void initDefaultPopUpMenus()
          Initialize the default pop-up menus for the current tree.
 void mousePressed(MouseEvent e)
           
 void mouseReleased(MouseEvent e)
           
 void resetGroup()
          Remove all properties of the given node.
 void setPropertiesCatalog(HashMap<String,com.artenum.frida.properties.PropertiesList> propertiesCatalog)
          Set the properties catalog.
 void setRootPopUpMenu(RegistrablePopUpMenu rootPopUpMenu)
          Set the root node pop-up menu.
 void updateUI()
           
 void valueChanged(TreeSelectionEvent evt)
          Listener for the tree selection change (by keyboard).
 
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseWheelMoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectionTreeListener

public SelectionTreeListener(GroupsTreeEditorView groupsTreeEditorGUI,
                             com.artenum.frida.group.OrderedGroupList groupList)
Default constructor.

Parameters:
listEditor -
Method Detail

setRootPopUpMenu

public void setRootPopUpMenu(RegistrablePopUpMenu rootPopUpMenu)
Set the root node pop-up menu.

Parameters:
rootPopUpMenu - - popup menu.

initDefaultPopUpMenus

public void initDefaultPopUpMenus()
Initialize the default pop-up menus for the current tree.


mousePressed

public void mousePressed(MouseEvent e)
Specified by:
mousePressed in interface MouseListener
Overrides:
mousePressed in class MouseAdapter

mouseReleased

public void mouseReleased(MouseEvent e)
Specified by:
mouseReleased in interface MouseListener
Overrides:
mouseReleased in class MouseAdapter

valueChanged

public void valueChanged(TreeSelectionEvent evt)
Listener for the tree selection change (by keyboard).

Specified by:
valueChanged in interface TreeSelectionListener

actionPerformed

public void actionPerformed(ActionEvent evt)
Specified by:
actionPerformed in interface ActionListener

addPropertyFromCatalogToSelectedGroupNode

public void addPropertyFromCatalogToSelectedGroupNode()
Add properties from catalog, through a property chooser.


addSubPropertyFromCatalogToSelectedPropertyNode

public void addSubPropertyFromCatalogToSelectedPropertyNode()
Add a sub property to the select property.


addGivenPropertyToSelectedNode

public void addGivenPropertyToSelectedNode(com.artenum.frida.interfaces.PropertyInterface property)
Add the given Property to the Group selected in the tree.

Parameters:
property - - The added property

resetGroup

public void resetGroup()
Remove all properties of the given node.


getPropertiesCatalog

public HashMap<String,com.artenum.frida.properties.PropertiesList> getPropertiesCatalog()
Get the loaded properties catalog.

Returns:

setPropertiesCatalog

public void setPropertiesCatalog(HashMap<String,com.artenum.frida.properties.PropertiesList> propertiesCatalog)
Set the properties catalog.

Parameters:
propertiesCatalog -

updateUI

public void updateUI()


Copyright © 2012-2013 Artenum. All Rights Reserved.