Class RowFocusAdapter

java.lang.Object
org.eclipse.nebula.widgets.compositetable.RowFocusAdapter
All Implemented Interfaces:
IRowFocusListener

public class RowFocusAdapter
extends java.lang.Object
implements IRowFocusListener
An interface for objects that want to listen to and have the possibility of vetoing row change events on a CompositeTable.
Since:
3.2
  • Constructor Summary

    Constructors 
    Constructor Description
    RowFocusAdapter()  
  • Method Summary

    Modifier and Type Method Description
    void arrive​(CompositeTable sender, int currentObjectOffset, org.eclipse.swt.widgets.Control newRow)
    Method arrive.
    void depart​(CompositeTable sender, int currentObjectOffset, org.eclipse.swt.widgets.Control row)
    Method depart.
    boolean requestRowChange​(CompositeTable sender, int currentObjectOffset, org.eclipse.swt.widgets.Control row)
    Method requestRowChange.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • arrive

      public void arrive​(CompositeTable sender, int currentObjectOffset, org.eclipse.swt.widgets.Control newRow)
      Description copied from interface: IRowFocusListener
      Method arrive. Notifies receiver that the current row has just been changed.
      Specified by:
      arrive in interface IRowFocusListener
      Parameters:
      sender - The CompositeTable sending the event.
      currentObjectOffset - The 0-based offset to the row that should be populated
      newRow - The actual SWT row object that needs to be populated with data
    • depart

      public void depart​(CompositeTable sender, int currentObjectOffset, org.eclipse.swt.widgets.Control row)
      Description copied from interface: IRowFocusListener
      Method depart. Called after requstRowChange has been called to indicate that the focus is departing the specified row.
      Specified by:
      depart in interface IRowFocusListener
    • requestRowChange

      public boolean requestRowChange​(CompositeTable sender, int currentObjectOffset, org.eclipse.swt.widgets.Control row)
      Description copied from interface: IRowFocusListener
      Method requestRowChange. Requests permission to change rows. This method is called immediately before a row change occurs. Listeners must return true to grant permission for the row change to occur or return false to veto it. If any listener returns false, the entire row change operation is aborted.

      Specified by:
      requestRowChange in interface IRowFocusListener
      Parameters:
      sender - The CompositeTable sending the event.
      currentObjectOffset - The offset of the current object in the data structure.
      row - The row control that is losing focus.
      Returns:
      true to permit the row change to occur; false otherwise.