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

java.lang.Object
  extended by com.google.gwt.event.shared.GwtEvent<ColumnResizeHandler>
      extended by org.drools.guvnor.client.widgets.decoratedgrid.ColumnResizeEvent

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

Represents a column resize event.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
com.google.gwt.event.shared.GwtEvent.Type<H>
 
Constructor Summary
protected ColumnResizeEvent(DynamicColumn<?> column, int width)
          Creates a value change event.
 
Method Summary
protected  void dispatch(ColumnResizeHandler handler)
           
static void fire(HasColumnResizeHandlers source, DynamicColumn<?> column, int width)
          Fires a value change event on all registered handlers in the handler manager.
 com.google.gwt.event.shared.GwtEvent.Type<ColumnResizeHandler> getAssociatedType()
           
 DynamicColumn<?> getColumn()
          Gets the column to which the resize event relates.
static com.google.gwt.event.shared.GwtEvent.Type<ColumnResizeHandler> getType()
          Gets the type of Handlers that can handle the event
 int getWidth()
          Gets the width of the column
 String toDebugString()
           
 
Methods inherited from class com.google.gwt.event.shared.GwtEvent
assertLive, getSource, isLive, kill, revive, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ColumnResizeEvent

protected 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

fire

public static void fire(HasColumnResizeHandlers source,
                        DynamicColumn<?> column,
                        int width)
Fires a value change event on all registered handlers in the handler manager. If no such handlers exist, this method will do nothing.

Parameters:
source - the source of the handlers
column - the column resized
width - the columns width (px)

getType

public static com.google.gwt.event.shared.GwtEvent.Type<ColumnResizeHandler> getType()
Gets the type of Handlers that can handle the event

Returns:

getAssociatedType

public final com.google.gwt.event.shared.GwtEvent.Type<ColumnResizeHandler> getAssociatedType()
Specified by:
getAssociatedType in class com.google.gwt.event.shared.GwtEvent<ColumnResizeHandler>

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

toDebugString

public String toDebugString()
Overrides:
toDebugString in class com.google.gwt.event.shared.GwtEvent<ColumnResizeHandler>

dispatch

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


Copyright © 2001-2011 JBoss Inc.. All Rights Reserved.