org.openbp.guiclient.propertyeditors
Class ComponentSelectionEditor

java.lang.Object
  extended by org.openbp.jaspira.propertybrowser.editor.AbstractPropertyEditor
      extended by org.openbp.jaspira.propertybrowser.editor.standard.StringEditor
          extended by org.openbp.guiclient.propertyeditors.ComponentSelectionEditor
All Implemented Interfaces:
java.awt.event.FocusListener, java.awt.event.KeyListener, java.lang.Cloneable, java.util.EventListener, javax.swing.event.DocumentListener, Copyable, PropertyEditor
Direct Known Subclasses:
DataMemberPathSelectionEditor

public class ComponentSelectionEditor
extends StringEditor

Component selection editor. Property editor that allows input of a component name and also provides a button which will activate an object browser to choose from.

Author:
Heiko Erhardt

Field Summary
protected  ComponentSelectionEditorCustomizer customizer
          Customizer
protected  java.lang.String customizerClassName
          Customizer class name
protected  java.util.Map properties
          Table of properties that must be fullfilled by the displayed objects.
protected  java.lang.String title
          Selection dialog title
 
Fields inherited from class org.openbp.jaspira.propertybrowser.editor.standard.StringEditor
textField
 
Fields inherited from class org.openbp.jaspira.propertybrowser.editor.AbstractPropertyEditor
component, listener, object, owner, parameterParser, params, propertyBrowser, propertyName, readonly, validator, value, valueChanged, valueLoaded
 
Fields inherited from interface org.openbp.common.generic.Copyable
COPY_DEEP, COPY_FIRST_LEVEL, COPY_SHALLOW
 
Constructor Summary
ComponentSelectionEditor()
          Default constructor.
 
Method Summary
 void createComponent()
          Creates the editor component of the property editor.
 void highlight(boolean on)
          Highlights the content of the component.
 void keyPressed(java.awt.event.KeyEvent e)
          Invoked when a key has been pressed.
protected  void parseParams()
          Parses the editor parameters.
 void showBrowser()
          Shows the component browser.
 
Methods inherited from class org.openbp.jaspira.propertybrowser.editor.standard.StringEditor
changedUpdate, getComponentValue, insertUpdate, removeUpdate, setComponentValue
 
Methods inherited from class org.openbp.jaspira.propertybrowser.editor.AbstractPropertyEditor
clone, copyFrom, focusGained, focusLost, forwardKeyEvent, getComponent, getObject, getOwner, getParameterParser, getParams, getPropertyBrowser, getPropertyComponent, getPropertyName, getSafeString, getValidator, getValue, initialize, initializeComponent, isReadonly, keyReleased, keyTyped, loadProperty, parseParams, propertyChanged, resetComponentDisplay, resetProperty, saveProperty, setObject, setOwner, setParams, setPropertyBrowser, setPropertyName, setReadonly, setValidator, setValue, validateProperty
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

title

protected java.lang.String title
Selection dialog title


customizerClassName

protected java.lang.String customizerClassName
Customizer class name


customizer

protected ComponentSelectionEditorCustomizer customizer
Customizer


properties

protected java.util.Map properties
Table of properties that must be fullfilled by the displayed objects. Maps property names to property values (objects)

Constructor Detail

ComponentSelectionEditor

public ComponentSelectionEditor()
Default constructor.

Method Detail

createComponent

public void createComponent()
Creates the editor component of the property editor.

Overrides:
createComponent in class StringEditor

highlight

public void highlight(boolean on)
Highlights the content of the component.

Overrides:
highlight in class StringEditor
Parameters:
on - true Turns the highlight on if the component has the focus
false Turns the highlight off

parseParams

protected void parseParams()
Parses the editor parameters.


keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
Invoked when a key has been pressed.

Specified by:
keyPressed in interface java.awt.event.KeyListener
Overrides:
keyPressed in class StringEditor
Parameters:
e - Key event

showBrowser

public void showBrowser()
Shows the component browser.



Copyright © 2011. All Rights Reserved.