Example usage for com.google.gwt.user.client Window enableScrolling

List of usage examples for com.google.gwt.user.client Window enableScrolling

Introduction

In this page you can find the example usage for com.google.gwt.user.client Window enableScrolling.

Prototype

public static void enableScrolling(boolean enable) 

Source Link

Usage

From source file:org.ednovo.gooru.client.mvp.standards.StandardsPopupView.java

License:Open Source License

@UiHandler("addBtn")
public void onClickAdd(ClickEvent event) {
    Window.enableScrolling(true);
    hide();
    getUiHandlers().setSelectedStandards(standListArray);
}

From source file:org.ednovo.gooru.client.uc.AlertMessageUc.java

License:Open Source License

public void hide() {
    Window.enableScrolling(true);
    AppClientFactory.fireEvent(new SetHeaderZIndexEvent(0, true));
    appPopUp.hide();
}

From source file:org.ednovo.gooru.client.uc.ConfirmationPopupVc.java

License:Open Source License

@UiHandler("cancelButton")
public void onCancelClick(ClickEvent clickEvent) {
    hide();//from  w ww .  j a  v  a 2  s .com
    if (isEditQuestion) {
        Window.enableScrolling(false);
    } else {
        Window.enableScrolling(true);
        AppClientFactory.fireEvent(new SetHeaderZIndexEvent(0, true));
    }
}

From source file:org.ednovo.gooru.client.uc.ConfirmationPopupVc.java

License:Open Source License

public void hide() {
    appPopUp.hide();/*  www. j a v a2s  . c o m*/
    if (isEditQuestion) {
        Window.enableScrolling(false);
    } else {
        Window.enableScrolling(true);
        AppClientFactory.fireEvent(new SetHeaderZIndexEvent(0, true));
    }

}

From source file:org.ednovo.gooru.client.uc.ContentConfirmationPopupVc.java

License:Open Source License

@UiHandler("cancelButton")
public void onCancelClick(ClickEvent clickEvent) {
    hide();/*w w w . j  av a2s  . c o m*/

    Window.enableScrolling(true);
    AppClientFactory.fireEvent(new SetHeaderZIndexEvent(0, true));

}

From source file:org.ednovo.gooru.client.uc.ContentConfirmationPopupVc.java

License:Open Source License

public void hide() {
    appPopUp.hide();

    Window.enableScrolling(true);
    AppClientFactory.fireEvent(new SetHeaderZIndexEvent(0, true));

}

From source file:org.ednovo.gooru.client.uc.CourseListUc.java

License:Open Source License

public CourseListUc(CollectionDo collectionDo) {
    setWidget(uiBinder.createAndBindUi(this));
    this.collectionDo = collectionDo;
    res = CollectionEditResourceCBundle.INSTANCE;
    CollectionEditResourceCBundle.INSTANCE.css().ensureInjected();
    this.setGlassStyleName(res.css().loginPopupGlassStyle());
    this.getElement().getStyle().setZIndex(99999);
    setGlassEnabled(true);/*from ww  w . ja  v  a 2 s .  c o  m*/
    isSelected = false;
    this.center();
    this.show();
    titleLbl.setText(GL0847);
    cancelCourseBtn.setText(GL0142);
    addCourseBtnLbl.setText(GL0590);
    loadingPanel.setVisible(true);
    setCourseData();
    collectionId = collectionDo.getGooruOid();
    Window.enableScrolling(false);
}

From source file:org.ednovo.gooru.client.uc.CourseListUc.java

License:Open Source License

@UiHandler("cancelCourseBtn")
public void onClickClose(ClickEvent clickEvent) {
    hide();
    Window.enableScrolling(true);
}

From source file:org.ednovo.gooru.client.uc.CourseListUc.java

License:Open Source License

@UiHandler("addCourseBtnLbl")
public void onAddCourseBtnClick(ClickEvent clickEvent) {
    MixpanelUtil.mixpanelEvent("Organize_Add_Course");
    String oldCourseId = "";
    String courseId = Integer.toString(courseCode);
    if (isSelected) {
        collectionId = collectionDo.getGooruOid();
        for (CodeDo code : collectionDo.getTaxonomySet()) {
            if (code.getDepth() == 2) {
                oldCourseId = Integer.toString(code.getCodeId());
                updateCourse(collectionId, oldCourseId, "delete");
            }//from  w w w.  j  av a  2s  . co  m

        }
        if (AppClientFactory.getPlaceManager().getCurrentPlaceRequest().getNameToken()
                .equalsIgnoreCase(PlaceTokens.SHELF)) {
            MixpanelUtil.mixpanelEvent("Collaborator_edits_collection");
        }
        updateCourse(collectionId, courseId, "add");
        AppClientFactory.fireEvent(new AddCourseEvent(courseName, courseId));
        hide();
        Window.enableScrolling(true);
    } else {
        new AlertContentUc(GL0061, GL1022);
    }

}

From source file:org.ednovo.gooru.client.uc.DeleteContentPopup.java

License:Open Source License

public DeleteContentPopup() {
    super(false);
    add(binder.createAndBindUi(this));
    this.setGlassEnabled(true);

    h3Panel.setVisible(false);/* ww w  . ja v  a 2s .  c om*/
    lblRemoving.setVisible(false);
    lblRemoving.getElement().getStyle().setMargin(26, Unit.PX);
    txtConfirmAction.setVisible(false);
    setButtonVisibility(true);
    setElementId();

    txtConfirmAction.addKeyUpHandler(new ValidateConfirmText());
    txtConfirmAction.getElement().getStyle().setColor("#515151");
    txtConfirmAction.addClickHandler(new ClickHandler() {

        @Override
        public void onClick(ClickEvent event) {
            if (!txtConfirmAction.getText().isEmpty()) {
                if (txtConfirmAction.getText().toLowerCase().equalsIgnoreCase(i18n.GL1175().toLowerCase())) {
                    txtConfirmAction.setText("");
                    txtConfirmAction.getElement().getStyle().setColor("#000000");
                }
            }

        }
    });

    txtConfirmAction.addBlurHandler(new BlurHandler() {

        @Override
        public void onBlur(BlurEvent event) {
            if (txtConfirmAction.getText().isEmpty()) {
                txtConfirmAction.getElement().getStyle().setColor("#515151");
            }

        }
    });
    StringUtil.setAttributes(txtConfirmAction, true);
    btnNegitive.setText(StringUtil.generateMessage(i18n.GL0142()));
    btnNegitive.getElement().setAttribute("alt", StringUtil.generateMessage(i18n.GL0142()));
    btnNegitive.getElement().setAttribute("title", StringUtil.generateMessage(i18n.GL0142()));

    btnPositive.setText(StringUtil.generateMessage(i18n.GL0190()));
    btnPositive.getElement().setAttribute("alt", StringUtil.generateMessage(i18n.GL0190()));
    btnPositive.getElement().setAttribute("title", StringUtil.generateMessage(i18n.GL0190()));

    /*lblDeleteText.setText(i18n.GL2189());
    StringUtil.setAttributes(lblDeleteText.getElement(), "lblDeleteText", null, "lblDeleteText");*/

    Window.enableScrolling(false);
    AppClientFactory.fireEvent(new SetHeaderZIndexEvent(98, false));
    this.center();

}