org.cruxframework.crux.widgets.client.util.draganddrop
Class ResizeCapability

java.lang.Object
  extended by org.cruxframework.crux.widgets.client.util.draganddrop.ResizeCapability

public class ResizeCapability
extends Object

Encloses the logic and contracts needed resize a widget when user drags a part of it

Author:
Gesse Dafe

Nested Class Summary
static class ResizeCapability.DragResizeAction
          The logic needed to resize a widget when user drags a part of it
static interface ResizeCapability.Resizable<K extends com.google.gwt.user.client.ui.IsWidget & com.google.gwt.event.dom.client.HasAllMouseHandlers>
          The contract to implement a widget which can be resized
 
Constructor Summary
ResizeCapability()
           
 
Method Summary
static void addResizeCapability(ResizeCapability.Resizable<?> resizable, int minWidth, int minHeight)
          Makes a widget able to be resized by dragging a part of it, usually a right bottom corner.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResizeCapability

public ResizeCapability()
Method Detail

addResizeCapability

public static void addResizeCapability(ResizeCapability.Resizable<?> resizable,
                                       int minWidth,
                                       int minHeight)
Makes a widget able to be resized by dragging a part of it, usually a right bottom corner.

Parameters:
movable -


Copyright © 2014. All rights reserved.