Package com.google.gwt.user.client.ui

Examples of com.google.gwt.user.client.ui.Anchor.addClickHandler()


    @Override
    protected Anchor createReplaceNewValueHyperlink() {
        final Map<String, Object> widgetConfiguration = getWidgetConfiguration();
        final ProjectLayoutConfiguration projectLayoutConfiguration = getProject().getProjectLayoutConfiguration();
        Anchor addNewLink = new Anchor(InstanceGridWidgetConstants.getIconLink(InstanceGridWidgetConstants.getReplaceNewValueActionDesc(widgetConfiguration, projectLayoutConfiguration, "Replace term"), InstanceGridWidgetConstants.getReplaceIcon(widgetConfiguration, projectLayoutConfiguration)), true);
        addNewLink.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                if (isWriteOperationAllowed()) {
                    onCreateNewReference();
                }
            }
View Full Code Here


    @Override
    protected Anchor createReplaceExistingHyperlink() {
        final Map<String, Object> widgetConfiguration = getWidgetConfiguration();
        final ProjectLayoutConfiguration projectLayoutConfiguration = getProject().getProjectLayoutConfiguration();
        Anchor addNewLink = new Anchor(InstanceGridWidgetConstants.getIconLink(InstanceGridWidgetConstants.getReplaceExistingValueActionDesc(widgetConfiguration, projectLayoutConfiguration, "Find & Replace <br/>term"), InstanceGridWidgetConstants.getReplaceIcon(widgetConfiguration, projectLayoutConfiguration)), true);
        addNewLink.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                if (isWriteOperationAllowed()) {
                    //TODO fix this
                    //onAddNewReference((String) ReferenceFieldWidget.this.getWidgetConfiguration().get(FormConstants.LABEL));
                    onAddNewReference(true);
View Full Code Here

    @Override
    protected Anchor createAddExistingHyperlink() {
        final Map<String, Object> widgetConfiguration = getWidgetConfiguration();
        final ProjectLayoutConfiguration projectLayoutConfiguration = getProject().getProjectLayoutConfiguration();
        Anchor addNewLink = new Anchor(InstanceGridWidgetConstants.getIconLink(InstanceGridWidgetConstants.getAddExistingValueActionDesc(widgetConfiguration, projectLayoutConfiguration, "Find term"), InstanceGridWidgetConstants.getAddIcon(widgetConfiguration, projectLayoutConfiguration)), true);
        addNewLink.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                //TODO fix this
                //onAddNewReference((String) ReferenceFieldWidget.this.getWidgetConfiguration().get(FormConstants.LABEL));
                onAddNewReference(false);
            }
View Full Code Here

    @Override
    public Anchor createAddNewValueHyperlink() {
        final Map<String, Object> widgetConfiguration = getWidgetConfiguration();
        final ProjectLayoutConfiguration projectLayoutConfiguration = getProject().getProjectLayoutConfiguration();
        Anchor addNewLink = new Anchor(InstanceGridWidgetConstants.getIconLink(InstanceGridWidgetConstants.getAddNewValueActionDesc(widgetConfiguration, projectLayoutConfiguration, "Add term"), InstanceGridWidgetConstants.getAddIcon(widgetConfiguration, projectLayoutConfiguration)), true);
        addNewLink.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                if (isWriteOperationAllowed()) {
                    onCreateNewReference();
                }
            }
View Full Code Here

    protected Anchor createAddEntityLink() {
        Anchor addLink = new Anchor("&nbsp<img src=\"images/add.png\"></img>", true, "");
        addLink.setWidth("20px");
        addLink.setTitle("Add new value");
        addLink.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                onSelectEntity();
            }
        });
        return addLink;
View Full Code Here

        Anchor diffLegendInfo = new Anchor();
        diffLegendInfo.setStyleName("i i--info txt--lead l--push-left-quarter");
        diffLegendInfo.setTitle(messages.colorLegend());

        diffLegendInfo.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                listener.showDiffLegend(true);
            }
        });
View Full Code Here

                String originStr = Joiner.on(", ").join(item.getOrigins());
                infoCell.setText(shorten(originStr, 10));
                infoCell.setTitle(originStr);
            } else {
                infoCell.setStyleName("i i--info txt--lead");
                infoCell.addClickHandler(new ClickHandler() {
                    @Override
                    public void onClick(ClickEvent event) {
                        listener.showTMDetails(item);
                    }
                });
View Full Code Here

            panel.add(anchor);
        }
        Anchor upload = new Anchor();
        upload.setTitle(messages.uploadButtonTitle());
        upload.setStyleName("i i--import l--push-left-half");
        upload.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                listener.showUploadDialog(docInfo);
            }
        });
View Full Code Here

            resultTable.getFlexCellFormatter().setStyleName(i + 1, ACTION_COL,
                    "txt--align-center smallCol");

            Anchor infoCell = new Anchor();
            infoCell.setStyleName("i i--info txt--lead");
            infoCell.addClickHandler(new ClickHandler() {
                @Override
                public void onClick(ClickEvent event) {
                    listener.showGlossaryDetail(item);
                }
            });
View Full Code Here

        rootPanel = binder.createAndBindUi(this);
    }

    private Anchor createBookmarkIcon() {
        Anchor bookmarkIcon = new Anchor();
        bookmarkIcon.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                HistoryToken historyToken = history.getHistoryToken();
                historyToken.setTextFlowId(transUnit.getId().toString());
                history.newItem(historyToken);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.