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

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

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

Represents a column resize event.


Nested Class Summary
static interface ColumnResizeEvent.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<ColumnResizeEvent.Handler> TYPE
           
 
Constructor Summary
ColumnResizeEvent(DynamicColumn<?> column, int width)
          Creates a value change event.
 
Method Summary
protected  void dispatch(ColumnResizeEvent.Handler handler)
           
 com.google.gwt.event.shared.GwtEvent.Type<ColumnResizeEvent.Handler> getAssociatedType()
           
 DynamicColumn<?> getColumn()
          Gets the column to which the resize event relates.
 int getWidth()
          Gets the width of the column
 
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 final com.google.gwt.event.shared.GwtEvent.Type<ColumnResizeEvent.Handler> TYPE
Constructor Detail

ColumnResizeEvent

public ColumnResizeEvent(DynamicColumn<?> column,
                         int width)
Creates a value change event.

Parameters:
column - The column on which the resize event was triggered
width - The new width of the column
Method Detail

getColumn

public DynamicColumn<?> getColumn()
Gets the column to which the resize event relates.

Returns:
the column

getWidth

public int getWidth()
Gets the width of the column

Returns:
the width

getAssociatedType

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

dispatch

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


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