org.drools.guvnor.client.widgets.drools.decoratedgrid.events
Class MoveColumnsEvent

java.lang.Object
  extended by com.google.web.bindery.event.shared.Event<H>
      extended by com.google.gwt.event.shared.GwtEvent<MoveColumnsEvent.Handler>
          extended by org.drools.guvnor.client.widgets.drools.decoratedgrid.events.MoveColumnsEvent

public class MoveColumnsEvent
extends com.google.gwt.event.shared.GwtEvent<MoveColumnsEvent.Handler>

Represents an event to move one or more consecutive columns.


Nested Class Summary
static interface MoveColumnsEvent.Handler
           
 
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
com.google.gwt.event.shared.GwtEvent.Type<H>
 
Field Summary
static com.google.gwt.event.shared.GwtEvent.Type<MoveColumnsEvent.Handler> TYPE
           
 
Constructor Summary
MoveColumnsEvent(int sourceColumnIndex, int targetColumnIndex, int numberOfColumns)
          Creates a Move Columns event.
 
Method Summary
protected  void dispatch(MoveColumnsEvent.Handler handler)
           
 com.google.gwt.event.shared.GwtEvent.Type<MoveColumnsEvent.Handler> getAssociatedType()
           
 int getNumberOfColumns()
          Gets the number of columns to move
 int getSourceColumnIndex()
          Gets the index of the first column to move
 int getTargetColumnIndex()
          Gets the index to where the columns will be moved
 
Methods inherited from class com.google.gwt.event.shared.GwtEvent
assertLive, getSource, isLive, kill, revive
 
Methods inherited from class com.google.web.bindery.event.shared.Event
setSource, toDebugString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static com.google.gwt.event.shared.GwtEvent.Type<MoveColumnsEvent.Handler> TYPE
Constructor Detail

MoveColumnsEvent

public MoveColumnsEvent(int sourceColumnIndex,
                        int targetColumnIndex,
                        int numberOfColumns)
Creates a Move Columns event.

Parameters:
sourceColumnIndex - The index of the first column to move
targetColumnIndex - The index to where the columns will be moved
numberOfColumns - The number of columns to move
Method Detail

getSourceColumnIndex

public int getSourceColumnIndex()
Gets the index of the first column to move

Returns:
sourceTargetIndex

getTargetColumnIndex

public int getTargetColumnIndex()
Gets the index to where the columns will be moved

Returns:
targetColumnIndex

getNumberOfColumns

public int getNumberOfColumns()
Gets the number of columns to move

Returns:
numberOfColumns

getAssociatedType

public com.google.gwt.event.shared.GwtEvent.Type<MoveColumnsEvent.Handler> getAssociatedType()
Overrides:
getAssociatedType in class com.google.gwt.event.shared.GwtEvent<MoveColumnsEvent.Handler>

dispatch

protected void dispatch(MoveColumnsEvent.Handler handler)
Specified by:
dispatch in class com.google.gwt.event.shared.GwtEvent<MoveColumnsEvent.Handler>


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.