org.keridwen.modelling.group.editor.editor
Class GroupEditor

java.lang.Object
  extended by org.keridwen.modelling.group.editor.editor.GroupEditor
All Implemented Interfaces:
ActionListener, EventListener

public class GroupEditor
extends Object
implements ActionListener

Group Editor: Graphical component (Swing) allowing to attribute one or more Properties to one given group.

Author:
J.forest, Artenum SARL.

Constructor Summary
GroupEditor(com.artenum.frida.processing.PropertyTypesFilter propertiesTypesFilterIn, com.artenum.frida.processing.GroupOperatorTypeFilter operatorTypesFilter)
          Main constructor.
 
Method Summary
 void actionPerformed(ActionEvent evt)
           
 void displaySelectedGroup(com.artenum.frida.interfaces.GroupInterface group)
          Update the linked view (GUI) according the selected Property.
 com.artenum.frida.interfaces.GroupInterface getGroup()
          Return the current group attributed to this editor.
 HashMap<String,com.artenum.frida.interfaces.GroupOperatorInterface> getGroupOperatorsCatalog()
          Get the hashmap defining the catalog of group operators.
 HashMap<String,com.artenum.frida.properties.PropertiesList> getPropertiesCatalog()
           
 SelectionTreeListener getTreeListener()
          Get the Selection tree listener.
 GroupEditorView getView()
          Return the GUI view.
 void setGroup(com.artenum.frida.interfaces.GroupInterface group)
          Set the group to be edited.
 void setGroupOperatorsCatalog(HashMap<String,com.artenum.frida.interfaces.GroupOperatorInterface> groupOperatorsCatalog)
          Set the hashmap of the group operators.
 void setPropertiesCatalog(HashMap<String,com.artenum.frida.properties.PropertiesList> propertiesCatalog)
          Set the properties catalog.
 void setTreeListener(SelectionTreeListener treeListener)
          Set the tree listener.
 void updateGroupModel()
          Update the related Property according the values of the GUI view.
 void updateGroupPanelView()
          Update the whole view of the GroupPanel.
 void updateGroupPanelView(com.artenum.frida.interfaces.GroupInterface group)
          Update the view of the group panel.
 void updateView()
          Update the linked view.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupEditor

public GroupEditor(com.artenum.frida.processing.PropertyTypesFilter propertiesTypesFilterIn,
                   com.artenum.frida.processing.GroupOperatorTypeFilter operatorTypesFilter)
Main constructor.

Parameters:
propertiesTypesFilterIn -
operatorTypesFilter -
Method Detail

setGroup

public void setGroup(com.artenum.frida.interfaces.GroupInterface group)
Set the group to be edited.

Parameters:
group -

getGroup

public com.artenum.frida.interfaces.GroupInterface getGroup()
Return the current group attributed to this editor.

Returns:

displaySelectedGroup

public void displaySelectedGroup(com.artenum.frida.interfaces.GroupInterface group)
Update the linked view (GUI) according the selected Property. This is equivalent to setProperty(prop) and updateView() sequence.

Parameters:
prop - - property to be displayed.

updateView

public void updateView()
Update the linked view.


updateGroupModel

public void updateGroupModel()
Update the related Property according the values of the GUI view.


getView

public GroupEditorView getView()
Return the GUI view.

Returns:
the view of the editor.

actionPerformed

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

updateGroupPanelView

public void updateGroupPanelView()
Update the whole view of the GroupPanel.


updateGroupPanelView

public void updateGroupPanelView(com.artenum.frida.interfaces.GroupInterface group)
Update the view of the group panel.

Parameters:
group - - the selected group

setPropertiesCatalog

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

Parameters:
propertiesCatalog -

getPropertiesCatalog

public HashMap<String,com.artenum.frida.properties.PropertiesList> getPropertiesCatalog()

setTreeListener

public void setTreeListener(SelectionTreeListener treeListener)
Set the tree listener.

Parameters:
treeListener -

getTreeListener

public SelectionTreeListener getTreeListener()
Get the Selection tree listener.

Returns:

getGroupOperatorsCatalog

public HashMap<String,com.artenum.frida.interfaces.GroupOperatorInterface> getGroupOperatorsCatalog()
Get the hashmap defining the catalog of group operators.

Returns:

setGroupOperatorsCatalog

public void setGroupOperatorsCatalog(HashMap<String,com.artenum.frida.interfaces.GroupOperatorInterface> groupOperatorsCatalog)
Set the hashmap of the group operators.

Parameters:
groupOperatorsCatalog -


Copyright © 2012-2013 Artenum. All Rights Reserved.