001 /* 002 * Copyright 2012 GWT-Bootstrap 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 package com.github.gwtbootstrap.client.ui.event; 017 018 import com.google.gwt.event.shared.GwtEvent; 019 020 /** 021 * Represents an event that is fired when a widget is completely hidden. 022 * 023 * @since 2.0.4.0 024 * 025 * @author Dominik Mayer 026 * 027 * @see HideEvent 028 * @see ShowEvent 029 * @see ShownEvent 030 * 031 */ 032 public class HiddenEvent extends GwtEvent<HiddenHandler> { 033 034 private static final Type<HiddenHandler> TYPE = new Type<HiddenHandler>(); 035 036 public static Type<HiddenHandler> getType() { 037 return TYPE; 038 } 039 040 public HiddenEvent() { 041 } 042 043 @Override 044 public final Type<HiddenHandler> getAssociatedType() { 045 return TYPE; 046 } 047 048 @Override 049 protected void dispatch(HiddenHandler handler) { 050 handler.onHidden(this); 051 } 052 053 }