2 * Copyright 2000-2021 Vaadin Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
5 * use this file except in compliance with the License. You may obtain a copy of
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 * License for the specific language governing permissions and limitations under
16 package com.vaadin.client.widget.grid.events;
18 import com.google.gwt.event.shared.EventHandler;
19 import com.google.gwt.event.shared.GwtEvent;
22 * FOR INTERNAL USE ONLY, MAY GET REMOVED OR MODIFIED AT ANY TIME!
24 * Event handler that gets notified when the visibility of the vertical
25 * scrollbar of the Escalator changes.
29 public interface VerticalScrollbarVisibilityChangeHandler
30 extends EventHandler {
33 * FOR INTERNAL USE ONLY, MAY GET REMOVED OR MODIFIED AT ANY TIME!
35 * Called when the visibility of the vertical scrollbar of the Escalator
39 * the row visibility change event describing the change
41 void onVisibilityChange(
42 VerticalScrollbarVisibilityChangeEvent event);
45 * FOR INTERNAL USE ONLY, MAY GET REMOVED OR MODIFIED AT ANY TIME!
47 * Event fired when the visibility of the vertical scrollbar of the
52 public class VerticalScrollbarVisibilityChangeEvent extends
53 GwtEvent<VerticalScrollbarVisibilityChangeHandler> {
55 * FOR INTERNAL USE ONLY, MAY GET REMOVED OR MODIFIED AT ANY TIME!
57 * The type of this event.
59 public static final Type<VerticalScrollbarVisibilityChangeHandler> TYPE = new Type<>();
62 * FOR INTERNAL USE ONLY, MAY GET REMOVED OR MODIFIED AT ANY TIME!
64 * Creates a new Escalator vertical scrollbar visibility change event.
67 public VerticalScrollbarVisibilityChangeEvent() {
74 * @see com.google.gwt.event.shared.GwtEvent#getAssociatedType()
77 public Type<VerticalScrollbarVisibilityChangeHandler> getAssociatedType() {
85 * com.google.gwt.event.shared.GwtEvent#dispatch(com.google.gwt.event.
86 * shared .EventHandler)
89 protected void dispatch(
90 VerticalScrollbarVisibilityChangeHandler handler) {
91 handler.onVisibilityChange(this);