Examples of CellData


Examples of com.google.refine.exporters.TabularSerializer.CellData

            public void start(Project project) {
                serializer.startFile(options);
                if (outputColumnHeaders) {
                    List<CellData> cells = new ArrayList<TabularSerializer.CellData>(columnNames.size());
                    for (String name : columnNames) {
                        cells.add(new CellData(name, name, name, null));
                    }
                    serializer.addRow(cells, true);
                }
            }

            @Override
            public boolean visit(Project project, int rowIndex, Row row) {
                List<CellData> cells = new ArrayList<TabularSerializer.CellData>(columnNames.size());
                int nonBlankCount = 0;
               
                for (String columnName : columnNames) {
                    Column column = project.columnModel.getColumnByName(columnName);
                    CellFormatter formatter = columnNameToFormatter.get(columnName);
                    CellData cellData = formatter.format(
                        project,
                        column,
                        row.getCell(column.getCellIndex()));
                   
                    cells.add(cellData);
View Full Code Here

Examples of com.google.refine.exporters.TabularSerializer.CellData

                            text = dateFormatter.format((Date) value);
                        } else {
                            text = value.toString();
                        }
                    }
                    return new CellData(column.getName(), value, text, link);
                }
            }
            return null;
        }
View Full Code Here

Examples of de.iritgo.aktera.ui.listing.CellData

    ScheduleActionFormPartInfo partInfo = scheduleActionFormPartManager.getActionFormPart(type);
    String info = partInfo.getFormPart().createListInfo(request, data);

    if (info != null)
    {
      return new CellData(info, ListingColumnViewer.MESSAGE, partInfo.getBundle());
    }

    return new CellData(partInfo.getInfoKey(), ListingColumnViewer.MESSAGE, partInfo.getBundle());
  }
View Full Code Here

Examples of next.i.view.CellData

  }

  @Override
  public IsWidget getViewContent() {

    CellData d0 = new CellData(null, "Rounded", new XButton("Rounded"));
    CellData d1 = new CellData(null, "Shadow", new XButton("Shadow", XButtonType.Shadow));
    CellData d2 = new CellData(null, "Navigation", new XButton("Navigation", XButtonType.Navigation));
    CellData d3 = new CellData(null, "Blue", new XButton("Blue", XButtonType.NavigationBlue));
    CellData d4 = new CellData(null, "Red", new XButton("Red", XButtonType.NavigationRed));
    CellData d5 = new CellData(null, "Black", new XButton("Black", XButtonType.NavigationBlack));
    CellData d6 = new CellData(null, "Image button", new XButton("Left", XButtonType.Image, "images/icons/xbuttonImage.png", "images/icons/xbuttonImageSelected.png", true));
    CellData d7 = new CellData(null, "Image button", new XButton("Right", XButtonType.Image, "images/icons/xbuttonImage.png", "images/icons/xbuttonImageSelected.png", false));
   
    XTableView tableView = new XTableView();
    tableView.addItem(new XTableCell(d0), new XTableCell(d1), new XTableCell(d2), new XTableCell(d3),
        new XTableCell(d4), new XTableCell(d5), new XTableCell(d6), new XTableCell(d7));
View Full Code Here

Examples of next.i.view.CellData

  }

  @Override
  public IsWidget getViewContent() {

    CellData data = new CellData();
    data.setWestWidgets(new Image("images/icons/list00.png"));
    data.setTextWidgets(new Label("Ariplane Mode"));
    data.setEastWidgets(new XSwitch(true));
    XTableCell c0 = new XTableCell(data);

    data = new CellData();
    data.setWestWidgets(new Image("images/icons/list01.png"));
    data.setTextWidgets(new Label("WI-FI"));
    data.setEastWidgets(new Image("images/icons/list1x.png"));
    XTableCell c1 = new XTableCell(data);

    data = new CellData();
    data.setWestWidgets(new Image("images/icons/list02.png"));
    data.setTextWidgets(new Label("Notifications"));
    data.setEastWidgets(new Image("images/icons/list2x.png"));
    XTableCell c2 = new XTableCell(data);

    data = new CellData();
    data.setWestWidgets(new Image("images/icons/list03.png"));
    data.setTextWidgets(new Label("Sound"));
    data.setEastWidgets(new XSlider(60));
    XTableCell c3 = new XTableCell(data);

    XTableView tableView = new XTableView();
    tableView.addItem(c0, c1, c2, c3);
View Full Code Here

Examples of next.i.view.CellData

    ((XTableView) getView()).showChevron(true);

    TableData tableDS = new TableData();
    tableDS.add(
        new CellData(null, "Top", null),
        new CellData(null, "Right", null),
        new CellData(null, "Bottom", null),
        new CellData(null, "Left", null),
        new CellData(null, "Center", null)
        );

    initDataSource(tableDS);
  }
View Full Code Here

Examples of next.i.view.CellData

        "Paraguay", "Peru", "Puerto Rico", "Uruguay", "Venezuela" };

    int len = names.length;
    CellData[] arr = new CellData[len];
    for (int i = 0; i < len; i++) {
      arr[i] = new CellData(names[i]);
    }

    return arr;
  }
View Full Code Here

Examples of next.i.view.CellData

    ((XTableView) getView()).showChevron(true);

    TableData tableDS = new TableData();

    tableDS.add(new CellData(createImage("images/icons/i-list.png"), "Lists", null), new CellData(
        createImage("images/icons/i-slider.png"), "Slider", null), new CellData(
        createImage("images/icons/i-radio.png"), "Radio Button", null), new CellData(
        createImage("images/icons/i-button.png"), "Buttons", null), new CellData(
        createImage("images/icons/i-picker.png"), "Picker", null), new CellData(
        createImage("images/icons/i-switch.png"), "Switch", null), new CellData(createImage("images/icons/i-form.png"),
        "Form", null), new CellData(createImage("images/icons/i-progress.png"), "Progress", null), new CellData(
        createImage("images/icons/i-checkbox.png"), "CheckBox", null), new CellData(
        createImage("images/icons/i-image.png"), "Label and Image", null), new CellData(
        createImage("images/icons/i-navigation.png"), "Navigation", null)
    // new CellData(createImage("images/icons/i-TODO.png"), "Popup", null)
        );
    // , "Slide"
View Full Code Here

Examples of org.eclipse.ui.internal.layout.CellData

            }

          });

          // try to get the layout correct...
          toolBarData = new CellData();
          toolBarData.align(SWT.FILL, SWT.FILL);
          menuTB.setLayoutData(toolBarData);
        }

        // Construct the ToolBar containing the 'Fast' views
        fastViewBar = new ToolBarManager(SWT.FLAT | SWT.WRAP | orientation);
        fastViewBar.add(new ShowFastViewContribution(window));

        fastViewBar.createControl(fvbComposite);

        getToolBar().addListener(SWT.MenuDetect, menuListener);

        IDragOverListener fastViewDragTarget = new IDragOverListener() {

            public IDropTarget drag(Control currentControl,
                    Object draggedObject, Point position,
                    Rectangle dragRectangle) {
                ToolItem targetItem = getToolItem(position);
                if (draggedObject instanceof ViewPane) {
                    ViewPane pane = (ViewPane) draggedObject;

                    // Can't drag views between windows
                    if (pane.getWorkbenchWindow() != window) {
                        return null;
                    }

                    List newList = new ArrayList(1);
                    newList.add(draggedObject);

                    return createDropTarget(newList, targetItem);
                }
                if (draggedObject instanceof ViewStack) {
                    ViewStack folder = (ViewStack) draggedObject;

                    if (folder.getWorkbenchWindow() != window) {
                        return null;
                    }

                    List viewList = new ArrayList(folder.getItemCount());
                    LayoutPart[] children = folder.getChildren();

                    for (int idx = 0; idx < children.length; idx++) {
                        if (!(children[idx] instanceof PartPlaceholder)) {
                            viewList.add(children[idx]);
                        }
                    }

                    return createDropTarget(viewList, targetItem);
                }

                return null;
            }

        };

        toolBarData = new CellData();
        toolBarData.align(SWT.FILL, SWT.FILL);

        getToolBar().setLayoutData(toolBarData);
        PresentationUtil.addDragListener(getToolBar(), dragListener);
        DragUtil.addDragTarget(getControl(), fastViewDragTarget);
View Full Code Here

Examples of org.eclipse.ui.internal.layout.CellData

        //Label over the table
        Label l = new Label(dialogArea, SWT.NONE);
        l.setText(WorkbenchMessages.WorkbenchEditorsDialog_label);
        l.setFont(font);
        l.setLayoutData(new CellData().align(SWT.FILL, SWT.CENTER));
        //Table showing the editors name, full path and perspective
        editorsTable = new Table(dialogArea, SWT.MULTI | SWT.BORDER
                | SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION);
        editorsTable.setLinesVisible(true);
        editorsTable.setHeaderVisible(true);
        editorsTable.setFont(font);

        final int height = 16 * editorsTable.getItemHeight();
        final int width = (int) (2.5 * height);

        CellData tableData = new CellData().align(SWT.FILL, SWT.FILL).setHint(
                CellData.OVERRIDE, width, height);

        editorsTable.setLayoutData(tableData);
        editorsTable.setLayout(new Layout() {
            protected Point computeSize(Composite composite, int wHint,
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.