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

Examples of com.google.gwt.user.client.ui.IsWidget


    public void testPerspectiveChange() throws Exception {

        Perspective perspective = mock(Perspective.class);
        ArrayList<NavigationItemBuilder> navigationItemBuilders = new ArrayList<NavigationItemBuilder>();

        final IsWidget header = mock(IsWidget.class);
        final IsWidget content = mock(IsWidget.class);
        final IsWidget headerThatIsNeverShown = mock(IsWidget.class);
        final IsWidget contentThatIsNeverShown = mock(IsWidget.class);

        navigationItemBuilders.add(createNavigationItemBuilder(true, header, content));
        navigationItemBuilders.add(createNavigationItemBuilder(false, headerThatIsNeverShown, contentThatIsNeverShown));
        when(
                perspective.getBuilders(eq(clientFactory), any(ResettableEventBus.class))
View Full Code Here


                newRow(fact, field.getName());
            }

            // Sets row data
            int fieldRowIndex = rowIndexByFieldName.getRowIndex(field.getName());
            IsWidget editableCell = editableCell(
                    field,
                    fact,
                    fact.getType());
            widget.setWidget(fieldRowIndex,
                    col,
View Full Code Here

      private void handleCustomCell(Grid wrapped, Element element, List<IsWidget> childWidgets,
               int columnIndex) {
         checkGridSize(wrapped, columnIndex);
         // should only contains one widget per <g:customCell> tag
         IsWidget w = (childWidgets.size() > 0) ? childWidgets.get(0) : null;
         wrapped.setWidget(currentRowIndex, columnIndex, w);

         handleCellStyle(wrapped, element, columnIndex);
      }
View Full Code Here

                newRow( fact, field.getName() );
            }

            // Sets row data
            int fieldRowIndex = rowIndexByFieldName.getRowIndex( field.getName() );
            IsWidget editableCell = editableCell(
                    field,
                    fact,
                    fact.getType() );
            widget.setWidget( fieldRowIndex,
                              col,
View Full Code Here

    public void testPerspectiveChange() throws Exception {

        Perspective perspective = mock(Perspective.class);
        ArrayList<NavigationItemBuilder> navigationItemBuilders = new ArrayList<NavigationItemBuilder>();

        final IsWidget header = mock(IsWidget.class);
        final IsWidget content = mock(IsWidget.class);
        final IsWidget headerThatIsNeverShown = mock(IsWidget.class);
        final IsWidget contentThatIsNeverShown = mock(IsWidget.class);

        navigationItemBuilders.add(createNavigationItemBuilder(true, header, content));
        navigationItemBuilders.add(createNavigationItemBuilder(false, headerThatIsNeverShown, contentThatIsNeverShown));
        when(
                perspective.getBuilders(eq(clientFactory), any(ResettableEventBus.class))
View Full Code Here

    }

    private Widget getEditorWidget( final RuleMetadata rm,
                                    final int idx,
                                    final boolean isReadOnly ) {
        IsWidget editor;

        if ( rm.getAttributeName().equals( LOCK_LHS ) || rm.getAttributeName().equals( LOCK_RHS ) ) {
            editor = new InfoPopup( GuidedRuleEditorResources.CONSTANTS.FrozenAreas(),
                                    GuidedRuleEditorResources.CONSTANTS.FrozenExplanation() );
        } else {
View Full Code Here

                newRow(fact, field.getName());
            }

            // Sets row data
            int fieldRowIndex = rowIndexByFieldName.getRowIndex(field.getName());
            IsWidget editableCell = editableCell(
                    field,
                    fact,
                    fact.getType());
            widget.setWidget(fieldRowIndex,
                    col,
View Full Code Here

    }

    @SuppressWarnings("unused")
    private void onChangeTitleWidgetEvent( @Observes ChangeTitleWidgetEvent event ) {
        final PlaceRequest place = event.getPlaceRequest();
        final IsWidget titleDecoration = event.getTitleDecoration();
        final String title = event.getTitle();
        for ( Map.Entry<PanelDefinition, WorkbenchPanelPresenter> e : mapPanelDefinitionToPresenter.entrySet() ) {
            final PanelDefinition panel = e.getKey();
            final WorkbenchPanelPresenter presenter = e.getValue();
            for ( PartDefinition part : panel.getParts() ) {
View Full Code Here

        final WorkbenchPartPresenter.View sourceView = (WorkbenchPartPresenter.View) super.context.selectedWidgets.get( 0 );
        final PartDefinition sourcePart = sourceView.getPresenter().getDefinition();
        final PanelDefinition sourcePanel = sourceView.getPresenter().getDefinition().getParentPanel();
        final PlaceRequest place = sourcePart.getPlace();
        final String title = sourceView.getPresenter().getTitle();
        final IsWidget titleDecoration = sourceView.getPresenter().getTitleDecoration();
        final String contextId = sourceView.getPresenter().getContextId();
        final IsWidget widget = sourceView.getPresenter().getPartView().getWrappedWidget();
        final Integer height = sourcePanel.getHeight();
        final Integer width = sourcePanel.getWidth();
        final Integer minHeight = sourcePanel.getMinHeight();
        final Integer minWidth = sourcePanel.getMinWidth();
        final WorkbenchDragContext context = new WorkbenchDragContext( place,
View Full Code Here

        super.launch( place,
                      callback );

        onStartup( place );

        final IsWidget widget = getWidget();

        popup.setContent( widget );
        popup.setTitle( getTitle() );
        popup.show();
View Full Code Here

TOP

Related Classes of com.google.gwt.user.client.ui.IsWidget

Copyright © 2018 www.massapicom. 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.