Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
rhbz978666 - change span to anchor
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Huang committed Jul 18, 2013
1 parent 74264e1 commit 4e6b358
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
Expand Up @@ -31,9 +31,11 @@
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.user.client.ui.Anchor;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HTMLPanel;
import com.google.gwt.user.client.ui.InlineHTML;
import com.google.gwt.user.client.ui.InlineHyperlink;
import com.google.gwt.user.client.ui.InlineLabel;

public class TransHistoryItemLine extends Composite
Expand All @@ -52,9 +54,9 @@ public class TransHistoryItemLine extends Composite
@UiField(provided = true)
InlineHTML revision;
@UiField
InlineLabel compare;
Anchor compare;
@UiField
InlineLabel copyIntoEditor;
Anchor copyIntoEditor;

public TransHistoryItemLine(TransHistoryItem item, TranslationHistoryDisplay.Listener listener)
{
Expand All @@ -66,7 +68,6 @@ public TransHistoryItemLine(TransHistoryItem item, TranslationHistoryDisplay.Lis
initWidget(ourUiBinder.createAndBindUi(this));

creationDate.setText(DateUtil.formatShortDate(item.getModifiedDate()));

}

// TODO pahuang confirm styles
Expand Down
Expand Up @@ -37,10 +37,10 @@
<g:InlineHTML ui:field="revision"/>
</li>
<li>
<g:InlineLabel ui:field="compare" text="Compare"/>
<g:Anchor ui:field="compare" text="Compare" />
</li>
<li>
<g:InlineLabel ui:field="copyIntoEditor" text="Copy to Editor"/>
<g:Anchor ui:field="copyIntoEditor" text="Copy to Editor"/>
</li>
</ul>
</div>
Expand Down
Expand Up @@ -38,7 +38,6 @@ public class TranslationHistoryView extends DialogBox implements TranslationHist
{
private static final int COMPARISON_TAB_INDEX = 1;
private static TranslationHistoryViewUiBinder uiBinder = GWT.create(TranslationHistoryViewUiBinder.class);
private final EventBus eventBus;
@UiField
WebTransMessages messages;
@UiField
Expand All @@ -63,13 +62,11 @@ public class TranslationHistoryView extends DialogBox implements TranslationHist
private Listener listener;
private List<ComparableByDate> items = Lists.newArrayList();

@Inject
public TranslationHistoryView(EventBus eventBus)
public TranslationHistoryView()
{
super(true, true);
closeButton = new DialogBoxCloseButton(this);
HTMLPanel container = uiBinder.createAndBindUi(this);
this.eventBus = eventBus;
ensureDebugId("transHistory");
tabLayoutPanel.ensureDebugId("transHistoryTabPanel");
setGlassEnabled(true);
Expand Down

0 comments on commit 4e6b358

Please sign in to comment.