Examples of Modal


Examples of GMACModal.Modal

                    public boolean handleEvent(EventHandle qq_currentEvent) {
                        boolean qq_HandlerResult = true;
                        try {
                            CursorMgr.startEvent();
                            // ================ Begin Forte Event Handler Translation ================
                            new Modal().display();
                        // ================= End Forte Event Handler Translation =================
                        }
                        finally {
                            CursorMgr.endEvent();
                        }
View Full Code Here

Examples of com.github.gwtbootstrap.client.ui.Modal

    }

    public void setSize( final int width,
                         final int height ) {
        if ( getParent().getParent().getParent() instanceof Modal ) {
            final Modal modal = (Modal) getParent().getParent().getParent();
            modal.setWidth( width + "px" );
            modal.setHeight( height + "px" );
            modal.getElement().getStyle().setMarginLeft( ( width / 2 ) * -1, Style.Unit.PX );
            modal.getElement().getStyle().setMarginTop( ( height / 2 ) * -1, Style.Unit.PX );
            getParent().getParent().removeStyleName( "modal-body" );
            super.setSize( width + "px", ( height - 51 ) + "px" );
        }
    }
View Full Code Here

Examples of com.github.gwtbootstrap.client.ui.Modal

    *       GwtBootstrapModule(); module.onModuleLoad(); }
    **/

   @Test
   public void testModal() {
      Modal modal = new Modal();
      modal.add(new Label("Modal"));

      ModalFooter footer = new ModalFooter();
      footer.add(new Button("close"));
      modal.add(footer);

      modal.addShowHandler(showHandler);
      modal.addShownHandler(shownHandler);
      modal.addHideHandler(hideHandler);
      modal.addHiddenHandler(hiddenHandler);

      assertFalse(modal.isVisible());

      modal.show();
      assertTrue(modal.isVisible());

      verify(showHandler).onShow(any(ShowEvent.class));
      verify(shownHandler).onShown(any(ShownEvent.class));

      modal.hide();
      assertFalse(modal.isVisible());

      verify(hideHandler).onHide(any(HideEvent.class));
      verify(hiddenHandler).onHidden(any(HiddenEvent.class));

      modal.toggle();
      assertTrue(modal.isVisible());

      // for unsetHandlerFunctions
      modal.setDynamicSafe(true);
      modal.hide();
   }
View Full Code Here

Examples of org.uberfire.client.workbench.widgets.common.Modal

    private Boolean showAgain = null;

    private final Modal modal = getModal();

    Modal getModal() {
        return new Modal( true, true );
    }
View Full Code Here

Examples of org.uberfire.client.workbench.widgets.common.Modal

    }


    @Test
      public void setContentDelegationTest() {
        Modal modal = splashViewUnitTestWrapper.getModal();
        IsWidget mock = mock( IsWidget.class );
        int height = 1;
        splashViewUnitTestWrapper.setContent( mock, height );

        verify( modal ).add( mock );
View Full Code Here

Examples of org.uberfire.client.workbench.widgets.common.Modal

        verify( modal ).setBodyHeigth( height );
    }

    @Test
    public void showDelegationTest() {
        Modal modal = splashViewUnitTestWrapper.getModal();
        splashViewUnitTestWrapper.show();

        verify( modal ).show();
        verify( modal ).addHideHandler( any( HideHandler.class ) );
    }
View Full Code Here

Examples of org.uberfire.client.workbench.widgets.common.Modal

        verify( modal ).addHideHandler( any( HideHandler.class ) );
    }

    @Test
    public void hideDelegationTest() {
        Modal modal = splashViewUnitTestWrapper.getModal();
        splashViewUnitTestWrapper.hide();

        verify( modal ).hide();
    }
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.