de.uni_paderborn.fujaba.views
Class DefaultFilterEditor

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended byde.uni_paderborn.fujaba.views.AbstractFilterEditor
                      extended byde.uni_paderborn.fujaba.views.DefaultFilterEditor
All Implemented Interfaces:
javax.accessibility.Accessible, FilterEditor, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class DefaultFilterEditor
extends AbstractFilterEditor

Default implementation of the FilterEditor interface.

Generic Dialog based on Bean-Technology

Version:
$Revision: 1.15 $
Author:
$Author: schneider $
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
private  java.beans.Customizer customizer
          No comment provided by developer, please add a comment to improve documentation.
private  ConfigurableFilter filterClone
          No comment provided by developer, please add a comment to improve documentation.
private  java.util.HashMap properties
          No comment provided by developer, please add a comment to improve documentation.
 
Fields inherited from class de.uni_paderborn.fujaba.views.AbstractFilterEditor
 
Fields inherited from class javax.swing.JPanel
 
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.Container
 
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
DefaultFilterEditor(ConfigurableFilter filter)
          Constructor for class DefaultFilterEditor
 
Method Summary
private  boolean addToProperties(java.util.Map.Entry entry)
          Access method for an one to n association.
private  boolean addToProperties(java.beans.PropertyDescriptor key, java.beans.PropertyEditor value)
          Access method for an one to n association.
protected  void buildEditor()
          No comment provided by developer, please add a comment to improve documentation.
static java.lang.Object clone(java.lang.Object o)
          No comment provided by developer, please add a comment to improve documentation.
private  java.lang.String convertString(java.lang.String str)
          No comment provided by developer, please add a comment to improve documentation.
static void copyProperties(java.lang.Object source, java.lang.Object target)
          No comment provided by developer, please add a comment to improve documentation.
private  java.awt.Component createEditor()
          Create the editor by searching available BeanEditors and compiling the interface from their Editors.
private  java.util.Iterator entriesOfProperties()
          No comment provided by developer, please add a comment to improve documentation.
private  java.lang.Object[] getEditorAndComponent(java.beans.PropertyDescriptor prop)
           
private  java.beans.PropertyEditor getFromProperties(java.beans.PropertyDescriptor key)
          Get the fromProperties attribute of the DefaultFilterEditor object
private  java.lang.Object getValue(java.lang.Object target, java.beans.PropertyDescriptor desc)
          get the value of the field in the Object defined by the PropertyDescriptor
protected  void getValues(ConfigurableFilter filter)
          Get the values attribute of the DefaultFilterEditor object
private  boolean hasInProperties(java.beans.PropertyDescriptor key, java.beans.PropertyEditor value)
          No comment provided by developer, please add a comment to improve documentation.
private  boolean hasInProperties(java.beans.PropertyEditor value)
          No comment provided by developer, please add a comment to improve documentation.
private  boolean hasKeyInProperties(java.beans.PropertyDescriptor key)
          No comment provided by developer, please add a comment to improve documentation.
private  java.util.Iterator iteratorOfProperties()
          No comment provided by developer, please add a comment to improve documentation.
private  java.util.Iterator keysOfProperties()
          No comment provided by developer, please add a comment to improve documentation.
private  void removeAllFromProperties()
          No comment provided by developer, please add a comment to improve documentation.
private  boolean removeFromProperties(java.beans.PropertyDescriptor key, java.beans.PropertyEditor value)
          No comment provided by developer, please add a comment to improve documentation.
private  boolean removeFromProperties(java.beans.PropertyEditor value)
          No comment provided by developer, please add a comment to improve documentation.
private  boolean removeKeyFromProperties(java.beans.PropertyDescriptor key)
          No comment provided by developer, please add a comment to improve documentation.
private  void setEditor(java.awt.Component editor)
          Set editor as the editor component
 void setFilter(ConfigurableFilter filter)
          Sets the filter attribute of the DefaultFilterEditor object
private  void setValue(java.lang.Object target, java.beans.PropertyDescriptor desc, java.lang.Object value)
          get the value of the field in the Object defined by the PropertyDescriptor to value
protected  void setValues(ConfigurableFilter filter)
          Sets the values attribute of the DefaultFilterEditor object
private  int sizeOfProperties()
          No comment provided by developer, please add a comment to improve documentation.
 
Methods inherited from class de.uni_paderborn.fujaba.views.AbstractFilterEditor
getEditorPanel, getFilter, getNewFilter, getValues, setValues
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, 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, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, 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, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, 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, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, 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
 

Field Detail

customizer

private java.beans.Customizer customizer
No comment provided by developer, please add a comment to improve documentation.


filterClone

private ConfigurableFilter filterClone
No comment provided by developer, please add a comment to improve documentation.


properties

private java.util.HashMap properties
No comment provided by developer, please add a comment to improve documentation.

Constructor Detail

DefaultFilterEditor

public DefaultFilterEditor(ConfigurableFilter filter)
Constructor for class DefaultFilterEditor

Parameters:
filter - No description provided
Method Detail

setFilter

public void setFilter(ConfigurableFilter filter)
Sets the filter attribute of the DefaultFilterEditor object

Specified by:
setFilter in interface FilterEditor
Overrides:
setFilter in class AbstractFilterEditor
Parameters:
filter - The new filter value

buildEditor

protected void buildEditor()
No comment provided by developer, please add a comment to improve documentation.

Specified by:
buildEditor in class AbstractFilterEditor

setEditor

private void setEditor(java.awt.Component editor)
Set editor as the editor component

Parameters:
editor - The new editor value

createEditor

private java.awt.Component createEditor()
Create the editor by searching available BeanEditors and compiling the interface from their Editors.

Returns:
No description provided

getEditorAndComponent

private java.lang.Object[] getEditorAndComponent(java.beans.PropertyDescriptor prop)
Parameters:
prop - No description provided
Returns:
Array of length 2, 1st Object is the PropertyEditor and 2nd Object is the Component for it

convertString

private java.lang.String convertString(java.lang.String str)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
str - No description provided
Returns:
No description provided

getValue

private java.lang.Object getValue(java.lang.Object target,
                                  java.beans.PropertyDescriptor desc)
get the value of the field in the Object defined by the PropertyDescriptor

Parameters:
target - No description provided
desc - No description provided
Returns:
The value value

setValue

private void setValue(java.lang.Object target,
                      java.beans.PropertyDescriptor desc,
                      java.lang.Object value)
get the value of the field in the Object defined by the PropertyDescriptor to value

Parameters:
target - The new value value
desc - The new value value
value - The new value value

getValues

protected void getValues(ConfigurableFilter filter)
Get the values attribute of the DefaultFilterEditor object

Specified by:
getValues in class AbstractFilterEditor
Parameters:
filter - No description provided

setValues

protected void setValues(ConfigurableFilter filter)
Sets the values attribute of the DefaultFilterEditor object

Specified by:
setValues in class AbstractFilterEditor
Parameters:
filter - The new values value

hasInProperties

private boolean hasInProperties(java.beans.PropertyEditor value)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
value - No description provided
Returns:
No description provided

hasInProperties

private boolean hasInProperties(java.beans.PropertyDescriptor key,
                                java.beans.PropertyEditor value)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
key - No description provided
value - No description provided
Returns:
No description provided

hasKeyInProperties

private boolean hasKeyInProperties(java.beans.PropertyDescriptor key)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
key - No description provided
Returns:
No description provided

iteratorOfProperties

private java.util.Iterator iteratorOfProperties()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

keysOfProperties

private java.util.Iterator keysOfProperties()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

entriesOfProperties

private java.util.Iterator entriesOfProperties()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

sizeOfProperties

private int sizeOfProperties()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

getFromProperties

private java.beans.PropertyEditor getFromProperties(java.beans.PropertyDescriptor key)
Get the fromProperties attribute of the DefaultFilterEditor object

Parameters:
key - No description provided
Returns:
The fromProperties value

addToProperties

private boolean addToProperties(java.beans.PropertyDescriptor key,
                                java.beans.PropertyEditor value)
Access method for an one to n association.

Parameters:
key - The object added.
value - The object added.
Returns:
No description provided

addToProperties

private boolean addToProperties(java.util.Map.Entry entry)
Access method for an one to n association.

Parameters:
entry - The object added.
Returns:
No description provided

removeFromProperties

private boolean removeFromProperties(java.beans.PropertyEditor value)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
value - No description provided
Returns:
No description provided

removeFromProperties

private boolean removeFromProperties(java.beans.PropertyDescriptor key,
                                     java.beans.PropertyEditor value)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
key - No description provided
value - No description provided
Returns:
No description provided

removeKeyFromProperties

private boolean removeKeyFromProperties(java.beans.PropertyDescriptor key)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
key - No description provided
Returns:
No description provided

removeAllFromProperties

private void removeAllFromProperties()
No comment provided by developer, please add a comment to improve documentation.


copyProperties

public static void copyProperties(java.lang.Object source,
                                  java.lang.Object target)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
source - No description provided
target - No description provided

clone

public static java.lang.Object clone(java.lang.Object o)
                              throws java.lang.CloneNotSupportedException
No comment provided by developer, please add a comment to improve documentation.

Parameters:
o - No description provided
Returns:
No description provided
Throws:
java.lang.CloneNotSupportedException - Exception description not provided