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.
Browse files
Browse the repository at this point in the history
rhbz723084 - initial work for bookmarkable text flow
- Loading branch information
Patrick Huang
committed
Mar 14, 2013
1 parent
7a3ff69
commit c64105f
Showing
6 changed files
with
121 additions
and
4 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
zanata-war/src/main/java/org/zanata/webtrans/client/events/BookmarkableTextFlowEvent.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,31 @@ | ||
| package org.zanata.webtrans.client.events; | ||
|
|
||
| import org.zanata.webtrans.shared.model.TransUnitId; | ||
| import com.google.gwt.event.shared.GwtEvent; | ||
|
|
||
| public class BookmarkableTextFlowEvent extends GwtEvent<BookmarkableTextFlowEventHandler> | ||
| { | ||
| public static Type<BookmarkableTextFlowEventHandler> TYPE = new Type<BookmarkableTextFlowEventHandler>(); | ||
|
|
||
| private TransUnitId textFlowId; | ||
|
|
||
| public BookmarkableTextFlowEvent(TransUnitId textFlowId) | ||
| { | ||
| this.textFlowId = textFlowId; | ||
| } | ||
|
|
||
| public Type<BookmarkableTextFlowEventHandler> getAssociatedType() | ||
| { | ||
| return TYPE; | ||
| } | ||
|
|
||
| protected void dispatch(BookmarkableTextFlowEventHandler handler) | ||
| { | ||
| handler.onBookmarkableTextFlow(this); | ||
| } | ||
|
|
||
| public TransUnitId getTextFlowId() | ||
| { | ||
| return textFlowId; | ||
| } | ||
| } |
8 changes: 8 additions & 0 deletions
8
...war/src/main/java/org/zanata/webtrans/client/events/BookmarkableTextFlowEventHandler.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 BookmarkableTextFlowEventHandler extends EventHandler | ||
| { | ||
| void onBookmarkableTextFlow(BookmarkableTextFlowEvent 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
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