Skip to content

Commit 2909790

Browse files
committed
Forgot to commit these files.
1 parent 073cdeb commit 2909790

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package gwt.material.design.client.base;
2+
3+
public interface HasSelectables {
4+
5+
void clearActive();
6+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
package gwt.material.design.client.events;
2+
3+
/*
4+
* #%L
5+
* GwtMaterial
6+
* %%
7+
* Copyright (C) 2015 GwtMaterialDesign
8+
* %%
9+
* Licensed under the Apache License, Version 2.0 (the "License");
10+
* you may not use this file except in compliance with the License.
11+
* You may obtain a copy of the License at
12+
*
13+
* http://www.apache.org/licenses/LICENSE-2.0
14+
*
15+
* Unless required by applicable law or agreed to in writing, software
16+
* distributed under the License is distributed on an "AS IS" BASIS,
17+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18+
* See the License for the specific language governing permissions and
19+
* limitations under the License.
20+
* #L%
21+
*/
22+
23+
24+
import com.google.gwt.event.shared.EventHandler;
25+
import com.google.gwt.event.shared.GwtEvent;
26+
import com.google.gwt.event.shared.HasHandlers;
27+
import gwt.material.design.client.events.ClearActiveEvent.ClearActiveHandler;
28+
29+
public class ClearActiveEvent extends GwtEvent<ClearActiveHandler> {
30+
31+
public interface ClearActiveHandler extends EventHandler {
32+
void onClearActive(ClearActiveEvent event);
33+
}
34+
35+
public static final Type<ClearActiveHandler> TYPE = new Type<>();
36+
37+
public static void fire(HasHandlers source) {
38+
source.fireEvent(new ClearActiveEvent());
39+
}
40+
41+
@Override
42+
public Type<ClearActiveHandler> getAssociatedType() {
43+
return TYPE;
44+
}
45+
46+
@Override
47+
protected void dispatch(ClearActiveHandler handler) {
48+
handler.onClearActive(this);
49+
}
50+
}

0 commit comments

Comments
 (0)