Change-Id: I196e490d5c5ae77ba895e0fca1b0d9160b6a7855tags/7.5.0.alpha1
@@ -75,7 +75,7 @@ public class AutoScroller { | |||
public enum ScrollAxis { | |||
VERTICAL, HORIZONTAL | |||
}; | |||
} | |||
/** The maximum number of pixels per second to autoscroll. */ | |||
private static final int SCROLL_TOP_SPEED_PX_SEC = 500; | |||
@@ -508,10 +508,10 @@ public class AutoScroller { | |||
* Defaults to 100px. | |||
* | |||
* @param px | |||
* the height/width for the auto scroll area depending on | |||
* the pixel height/width for the auto scroll area depending on | |||
* direction | |||
*/ | |||
public void setScrollAreaPX(int px) { | |||
public void setScrollArea(int px) { | |||
scrollAreaPX = px; | |||
} | |||
@@ -522,7 +522,7 @@ public class AutoScroller { | |||
* | |||
* @return size in pixels | |||
*/ | |||
public int getScrollAreaPX() { | |||
public int getScrollArea() { | |||
return scrollAreaPX; | |||
} | |||
@@ -42,6 +42,5 @@ public interface DetailsGenerator { | |||
* @return the details for the given row, or <code>null</code> to leave the | |||
* details empty. | |||
*/ | |||
// TODO: provide a row object instead of index (maybe, needs discussion?) | |||
Widget getDetails(int rowIndex); | |||
} |
@@ -33,7 +33,6 @@ public interface ColumnReorderHandler<T> extends EventHandler { | |||
* A column reorder event, fired by Grid when the columns of the Grid have | |||
* been reordered. | |||
* | |||
* @since | |||
* @param event | |||
* column reorder event | |||
*/ |
@@ -4494,7 +4494,7 @@ public class Escalator extends Widget implements RequiresResize, | |||
* The meaning of each value may differ depending on the context it is being | |||
* used in. Check that particular method's JavaDoc. | |||
*/ | |||
public enum SpacerInclusionStrategy { | |||
private enum SpacerInclusionStrategy { | |||
/** A representation of "the entire spacer". */ | |||
COMPLETE, | |||
@@ -3385,7 +3385,7 @@ public class Grid<T> extends ResizeComposite implements | |||
dragElement.addClassName("dragged-column-header"); | |||
// start the auto scroll handler | |||
autoScroller.setScrollAreaPX(60); | |||
autoScroller.setScrollArea(60); | |||
autoScroller.start(startingEvent, ScrollAxis.HORIZONTAL, | |||
autoScrollerCallback); | |||
return true; |
@@ -194,13 +194,15 @@ public class Grid extends AbstractComponent implements SelectionNotifier, | |||
/** | |||
* Constructor for a column visibility change event. | |||
* | |||
* @param source | |||
* the grid from which this event originates | |||
* @param column | |||
* the column that changed its visibility | |||
* @param isUserOriginated | |||
* <code>true</code> iff the event was triggered by an UI | |||
* interaction | |||
*/ | |||
public ColumnVisibilityChangeEvent(Component source, Column column, | |||
public ColumnVisibilityChangeEvent(Grid source, Column column, | |||
boolean isUserOriginated) { | |||
super(source); | |||
this.column = column; |
@@ -21,7 +21,7 @@ import com.vaadin.shared.Connector; | |||
/** | |||
* A description of an indexing modification for a connector. This is used by | |||
* Grid by internal bookkeeping updates. | |||
* Grid for internal bookkeeping updates. | |||
* | |||
* @since | |||
* @author Vaadin Ltd |