org.openbp.guiclient.propertyeditors
Class ComponentSelectionEditorCustomizer

java.lang.Object
  extended by org.openbp.guiclient.propertyeditors.ComponentSelectionEditorCustomizer

public class ComponentSelectionEditorCustomizer
extends java.lang.Object

Component selection editor customizer. Allows to customize the display and operation of the item selection dialog of the editor.

Author:
Heiko Erhardt

Constructor Summary
ComponentSelectionEditorCustomizer()
          Default constructor.
 
Method Summary
 boolean dialogClosed(ComponentSelectionEditor editor, ItemSelectionDialog dlg, java.lang.Object selectedObject)
          Called after the dialog has been closed.
 boolean dialogInitialized(ComponentSelectionEditor editor, ItemSelectionDialog dlg)
          Called after the dialog has been initialized.
 boolean initializeDialog(ComponentSelectionEditor editor, ItemSelectionDialog dlg)
          Called before the dialog is being initialized.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentSelectionEditorCustomizer

public ComponentSelectionEditorCustomizer()
Default constructor.

Method Detail

initializeDialog

public boolean initializeDialog(ComponentSelectionEditor editor,
                                ItemSelectionDialog dlg)
Called before the dialog is being initialized. The method may perform additional initializations of the dialog, e. g. set the root object. The default implementation returns true.

Parameters:
editor - The editor
dlg - The dialog to initialize
Returns:
true To proceed false To cancel the dialog display

dialogInitialized

public boolean dialogInitialized(ComponentSelectionEditor editor,
                                 ItemSelectionDialog dlg)
Called after the dialog has been initialized. The method may perform additional initializations of the dialog, e. g. select the current object. The default implementation returns true.

Parameters:
editor - The editor
dlg - The initialized dialog
Returns:
true To proceed false To cancel the dialog display

dialogClosed

public boolean dialogClosed(ComponentSelectionEditor editor,
                            ItemSelectionDialog dlg,
                            java.lang.Object selectedObject)
Called after the dialog has been closed. The method may perform additional initializations of the dialog, e. g. select the current object. The default implementation returns true.

Parameters:
editor - The component selection editor that owns the customizer
dlg - The item selection dialog to display
selectedObject - The selected object (usually a ModelObject) or null if the cancel button was pressed
Returns:
true To accept the selected object false To abort the selection. The property the editor refers to stays unchanged.


Copyright © 2011. All Rights Reserved.