to.etc.domui.component.ntbl
Interface IRowEditorEvent<T,E extends NodeContainer>


public interface IRowEditorEvent<T,E extends NodeContainer>

Event handler for row-based editors.

Author:
Frits Jalvingh Created on Dec 21, 2009

Method Summary
 boolean onRowChanged(TableModelTableBase<T> tablecomponent, E editor, T instance, boolean isNew)
          Called after a row has been edited in an editable table component, when editing is (somehow) marked as complete.
 

Method Detail

onRowChanged

boolean onRowChanged(TableModelTableBase<T> tablecomponent,
                     E editor,
                     T instance,
                     boolean isNew)
                     throws java.lang.Exception
Called after a row has been edited in an editable table component, when editing is (somehow) marked as complete. When called the editor's contents has been moved to the model by using the bindings. This method can be used to check the data for validity or to check for duplicates, for instance by using MetaManager.hasDuplicates(java.util.List, Object, String).

Parameters:
tablecomponent -
editor -
instance -
isNew - true when inserting row is changed, false when editing row is changed
Returns:
false to refuse the change.
Throws:
java.lang.Exception