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

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


     * @param scenario = the scenario to add/remove from
     */
    public VerifyRulesFiredWidget( final FixtureList rfl,
                                   final Scenario scenario,
                                   final boolean showResults ) {
        outer = new Grid( 2,
                          1 );
        this.showResults = showResults;
        outer.getCellFormatter().setStyleName( 0,
                                               0,
                                               "modeller-fact-TypeHeader" ); //NON-NLS
View Full Code Here


    }

    private Widget getScorecardProperties() {

        scorecardPropertiesGrid = new Grid( 4,
                                            4 );
        scorecardPropertiesGrid.setCellSpacing( 5 );
        scorecardPropertiesGrid.setCellPadding( 5 );

        tbInitialScore = TextBoxFactory.getTextBox( DataType.TYPE_NUMERIC_DOUBLE );
View Full Code Here

public class ProjectGeneralPreferencesPane extends ProjectPreferencesPane
{
   @Inject
   public ProjectGeneralPreferencesPane()
   {       
      Grid grid = new Grid(4, 2);
      grid.addStyleName(RESOURCES.styles().workspaceGrid());
      grid.setCellSpacing(8);
     
      Label infoLabel = new Label("Use (Default) to inherit the global default setting");
      infoLabel.addStyleName(PreferencesDialogBaseResources.INSTANCE.styles().infoLabel());
      grid.setWidget(0, 0, infoLabel);
     
      // restore workspace
      grid.setWidget(1, 0, new Label("Restore .RData into workspace at startup"));
      grid.setWidget(1, 1, restoreWorkspace_ = new YesNoAskDefault(false));
    
      // save workspace     
      grid.setWidget(2, 0, new Label("Save workspace to .RData on exit"));
      grid.setWidget(2, 1, saveWorkspace_ = new YesNoAskDefault(true));

      // always save history
      grid.setWidget(3, 0, new Label("Always save history (even if not saving .RData)"));
      grid.setWidget(3, 1, alwaysSaveHistory_ = new YesNoAskDefault(false));
     
      add(grid);
     
     
   }
View Full Code Here

      }
    });

    updateUIFromAlbum();

    final Grid g = new Grid(5, 2);

    int row = 0;
    g.setText(row, 0, "Name:");
    g.setWidget(row, 1, name);

    row++;
    g.setText(row, 0, "Artist:");
    g.setWidget(row, 1, artist);

    row++;
    g.setText(row, 0, "Format:");
    g.setWidget(row, 1, format);

    row++;
    g.setText(row, 0, "Release Date:");
    g.setWidget(row, 1, releaseDate);

    row++;
    g.setWidget(row, 1, saveButton);

    initWidget(g);
  }
View Full Code Here

    public VerifyFactWidget( final VerifyFact vf,
                             final Scenario sc,
                             final AsyncPackageDataModelOracle oracle,
                             final ExecutionTrace executionTrace,
                             final boolean showResults ) {
        outer = new Grid( 2,
                          1 );
        outer.getCellFormatter().setStyleName( 0,
                                               0,
                                               "modeller-fact-TypeHeader" ); //NON-NLS
        outer.getCellFormatter().setAlignment( 0,
View Full Code Here

        List<ProcessType> processTypes = user.getNonStatusProcessTypes();

        List<Application> applications = user.getSchoolRankings();

        mainGrid = new Grid(applications.size() + 1,
                processTypes.size() + 2);

        int row = 0;
        int col = 1;
View Full Code Here

        }

        public void load(User user) {
            List<RatingType> ratings = user.getRatingTypes();

            Grid mainGrid = new Grid(ratings.size() + 1, 2);

            mainGrid.setWidget(0, 0, new Label("Priority"));
            mainGrid.setWidget(0, 1, new Label("Weight"));

            int row = 1;
            for (RatingType ratingType : ratings) {
                mainGrid.setWidget(row, 0,
                        new Label(ratingType.getName()));

                int myPriority = user.getPriority(ratingType);

                RatingChooser chooser = new RatingChooser(ratingType,
                        myPriority);
                mainGrid.setWidget(row, 1, chooser);

                chooser.addChangeListener(this);

                row++;
            }
View Full Code Here

        this(null);
    }

    public PlaceHolderPanel(Widget content) {
        this.content = content;
        main = new Grid(1, 1);
        main.setCellPadding(0);
        main.setCellSpacing(0);
        if (content != null) {
            setContent(content);
        }
View Full Code Here

    public void testTableAppendRow() {
    }

    public void beginTableAppendRow(final Table type, final Integer rows) {
        if (Table.GRID.equals(type)) {
            final Grid grid;
            table = grid = new Grid();
            grid.resizeColumns(1);

        } else if (Table.FLEX_TABLE.equals(type)) {
            table = new FlexTable();

        } else if (Table.OBJECT_LIST_TABLE.equals(type)) {
View Full Code Here

    public void testTableInsertRow() {
    }

    public void beginTableInsertRow(final Table type, final Integer rows) {
        if (Table.GRID.equals(type)) {
            final Grid grid;
            table = grid = new Grid();
            grid.resizeColumns(1);

        } else if (Table.FLEX_TABLE.equals(type)) {
            table = new FlexTable();

        } else if (Table.OBJECT_LIST_TABLE.equals(type)) {
View Full Code Here

TOP

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

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.