com.extjs.gxt.ui.client.event.ResizeEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gxt Show documentation
Show all versions of gxt Show documentation
Rich Internet Application Framework for GWT
/*
* Sencha GXT 2.3.1a - Sencha for GWT
* Copyright(c) 2007-2013, Sencha, Inc.
* [email protected]
*
* http://www.sencha.com/products/gxt/license/
*/
package com.extjs.gxt.ui.client.event;
import com.extjs.gxt.ui.client.fx.Resizable;
import com.extjs.gxt.ui.client.widget.Component;
import com.google.gwt.user.client.Event;
/**
* Resizable event type.
*
*
* Note: For a given event, only the fields which are appropriate will be filled
* in. The appropriate fields for each event are documented by the event source.
*
* @see Resizable
*/
public class ResizeEvent extends BaseEvent {
/**
* The component being resized.
*/
private Component component;
/**
* The DOM event.
*/
private Event event;
/**
* The resizable instance.
*/
private Resizable resizable;
public ResizeEvent(Resizable resizable) {
super(resizable);
this.resizable = resizable;
}
public ResizeEvent(Resizable resizable, Component component, Event event) {
super(resizable);
this.resizable = resizable;
this.component = component;
this.event = event;
}
/**
* Returns the source component.
*
* @return the source component
*/
public Component getComponent() {
return component;
}
/**
* Returns the event.
*
* @return the event
*/
public Event getEvent() {
return event;
}
/**
* Returns the source resizable instance.
*
* @return the source resizable instance
*/
public Resizable getResizable() {
return resizable;
}
/**
* Sets the source component.
*
* @param component the source component
*/
public void setComponent(Component component) {
this.component = component;
}
/**
* Sets the event.
*
* @param event the event
*/
public void setEvent(Event event) {
this.event = event;
}
/**
* Sets the source resizable instance.
*
* @param resizable the source resizable instance
*/
public void setResizable(Resizable resizable) {
this.resizable = resizable;
}
}