org.keridwen.modelling.group.editor.ui
Class GroupEditorView

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by org.keridwen.modelling.group.editor.ui.GroupEditorView
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class GroupEditorView
extends JPanel

View of the group editor.

Author:
J.Forest, Artenum SARL.
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
GroupEditorView()
          Default constructor.
 
Method Summary
 void addActionListener(ActionListener listener)
          Add the given action listener to components supporting ActionCommands.
 String getDescription()
          Get the description
 String getGroupName()
          Get the displayed Property name.
 JComboBox getGroupTypeSelectionComboBox()
          Get the group type selection combobox.
 int getId()
          Get the Id of the group.
 HashMap<String,JCheckBox> getMandatoryPropertiesCheckBoxMap()
          Get the map of checkBoxes for the different types of properties.
 HashMap<String,JComboBox> getMandatoryPropertiesComboBoxMap()
          Return the map of the comboBoxes for the different types of properties.
 HashMap<String,JCheckBox> getOptionalPropertiesCheckBoxMap()
           
 HashMap<String,JComboBox> getOptionalPropertiesComboBoxMap()
           
 void setDescription(String description)
          Set the description view.
 void setGroupName(String name)
          set the displayed Property name.
 void setId(int id)
          Set the id of the group.
 void showHideAdvancedPanelPerformedAction(boolean showPanel)
          Show/hide the advanced settings sub-panel.
 void updateGroupOperatorPanel(com.artenum.frida.processing.GroupOperatorTypeFilter groupOperatorTypeFilter, String selectedGroupType, HashMap<String,com.artenum.frida.interfaces.GroupOperatorInterface> operatorMap)
          Update the sub-panel for the Group Operators according the Group Type.
 void updateMandatoryPanel(com.artenum.frida.processing.PropertyTypesFilter typesFilter, String selectedGroupType, HashMap<String,com.artenum.frida.properties.PropertiesList> propertiesCatalog)
          Update the view of the mandatory properties panel.
 void updateOptionalPanel(com.artenum.frida.processing.PropertyTypesFilter typesFilter, String selectedGroupType, HashMap<String,com.artenum.frida.properties.PropertiesList> propertiesCatalog)
          Update the view of the optional properties panel.
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GroupEditorView

public GroupEditorView()
Default constructor.

Method Detail

addActionListener

public void addActionListener(ActionListener listener)
Add the given action listener to components supporting ActionCommands.

Parameters:
listener -

showHideAdvancedPanelPerformedAction

public void showHideAdvancedPanelPerformedAction(boolean showPanel)
Show/hide the advanced settings sub-panel.

Parameters:
showPanel - - Show panel is true, hide otherwise.

updateMandatoryPanel

public void updateMandatoryPanel(com.artenum.frida.processing.PropertyTypesFilter typesFilter,
                                 String selectedGroupType,
                                 HashMap<String,com.artenum.frida.properties.PropertiesList> propertiesCatalog)
Update the view of the mandatory properties panel.

Parameters:
typesFilter - - property types filter
selectedGroupType - - key name of the selected group.
propertiesCatalog - - hashmap of mandatory properties for this group.

updateOptionalPanel

public void updateOptionalPanel(com.artenum.frida.processing.PropertyTypesFilter typesFilter,
                                String selectedGroupType,
                                HashMap<String,com.artenum.frida.properties.PropertiesList> propertiesCatalog)
Update the view of the optional properties panel.

Parameters:
typesFilter - - property types filter
selectedGroupType - - key name of the selected group.
propertiesCatalog - - hashmap of optional properties for this group.

updateGroupOperatorPanel

public void updateGroupOperatorPanel(com.artenum.frida.processing.GroupOperatorTypeFilter groupOperatorTypeFilter,
                                     String selectedGroupType,
                                     HashMap<String,com.artenum.frida.interfaces.GroupOperatorInterface> operatorMap)
Update the sub-panel for the Group Operators according the Group Type. If no operators is supported for the given group type, the panel is filled by the "No operator defined for this type of group" label.

Parameters:
groupOperatorTypeFilter - - Operator filter on the group type to know which operators are supported (i.e available) for the given group type.
selectedGroupType - - Selected group type.
operatorMap - - Hashmap of available operators.

getGroupTypeSelectionComboBox

public JComboBox getGroupTypeSelectionComboBox()
Get the group type selection combobox.

Returns:
- selection combobox.

getId

public int getId()
Get the Id of the group.

Returns:
- id of the group.

setId

public void setId(int id)
Set the id of the group.

Parameters:
id - - id of the group.

getGroupName

public String getGroupName()
Get the displayed Property name.


setGroupName

public void setGroupName(String name)
set the displayed Property name.


setDescription

public void setDescription(String description)
Set the description view.

Parameters:
description - - Description of the view

getDescription

public String getDescription()
Get the description

Returns:
- the description of the group.

getMandatoryPropertiesComboBoxMap

public HashMap<String,JComboBox> getMandatoryPropertiesComboBoxMap()
Return the map of the comboBoxes for the different types of properties. If the user has done his work, each comboBox should contain the selected property.

Returns:
- The map of the property types of comboBox

getMandatoryPropertiesCheckBoxMap

public HashMap<String,JCheckBox> getMandatoryPropertiesCheckBoxMap()
Get the map of checkBoxes for the different types of properties. If the user has done his work, the box is checked if the property is shared with the reference singleton.

Returns:
- The map of the checkBoxes.

getOptionalPropertiesComboBoxMap

public HashMap<String,JComboBox> getOptionalPropertiesComboBoxMap()

getOptionalPropertiesCheckBoxMap

public HashMap<String,JCheckBox> getOptionalPropertiesCheckBoxMap()


Copyright © 2012-2013 Artenum. All Rights Reserved.