This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'DisableModalNavigation' into integration/master
- Loading branch information
Showing
6 changed files
with
101 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
zanata-war/src/main/java/org/zanata/webtrans/client/events/EnableModalNavigationEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
package org.zanata.webtrans.client.events; | ||
|
||
import com.google.gwt.event.shared.GwtEvent; | ||
import com.google.gwt.event.shared.GwtEvent.Type; | ||
|
||
public class EnableModalNavigationEvent extends GwtEvent<EnableModalNavigationEventHandler> | ||
{ | ||
/** | ||
* Handler type. | ||
*/ | ||
private static Type<EnableModalNavigationEventHandler> TYPE; | ||
|
||
/** | ||
* Gets the type associated with this event. | ||
* | ||
* @return returns the handler type | ||
*/ | ||
public static Type<EnableModalNavigationEventHandler> getType() | ||
{ | ||
if (TYPE == null) | ||
{ | ||
TYPE = new Type<EnableModalNavigationEventHandler>(); | ||
} | ||
return TYPE; | ||
} | ||
|
||
private boolean isEnable; | ||
|
||
public EnableModalNavigationEvent(boolean isEnable) | ||
{ | ||
this.isEnable = isEnable; | ||
} | ||
|
||
@Override | ||
protected void dispatch(EnableModalNavigationEventHandler handler) | ||
{ | ||
handler.onEnable(this); | ||
} | ||
|
||
@Override | ||
public Type<EnableModalNavigationEventHandler> getAssociatedType() | ||
{ | ||
return getType(); | ||
} | ||
|
||
public boolean isEnable() | ||
{ | ||
return isEnable; | ||
} | ||
|
||
public void setEnable(boolean isEnable) | ||
{ | ||
this.isEnable = isEnable; | ||
} | ||
|
||
|
||
} |
8 changes: 8 additions & 0 deletions
8
...ar/src/main/java/org/zanata/webtrans/client/events/EnableModalNavigationEventHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package org.zanata.webtrans.client.events; | ||
|
||
import com.google.gwt.event.shared.EventHandler; | ||
|
||
public interface EnableModalNavigationEventHandler extends EventHandler | ||
{ | ||
void onEnable(EnableModalNavigationEvent event); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters