Examples of RowData


Examples of org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.table.RowData

    TableRenderingContext tContext,
    UIComponent           column)
    throws IOException
  {
    ColumnData colData = tContext.getColumnData();
    RowData rowData = tContext.getRowData();
    final int physicalIndex  = colData.getPhysicalColumnIndex();
    final int subRow = rowData.getCurrentSubRow();
    // this is the row span for the entire row:
    final int currentRowSpan = rowData.getCurrentRowSpan();

    // check to see if each cell in this column comprises of multiple rows:
    if (colData.useSeparateRows(physicalIndex))
      handleSeparateRows:
    {
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.table.RowData

    FacesContext context,
    TableRenderingContext tContext) throws IOException
  {
    if (tContext.isExplicitHeaderIDMode())
    {
      RowData rowData = tContext.getRowData();
      String rowID = rowData.getCurrentRowHeaderID();

      ColumnData colData = tContext.getColumnData();
      int physicalIndex  = colData.getPhysicalColumnIndex();
      String headers = colData.getHeaderIDs(physicalIndex);
      if (rowID != null)
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.table.RowData

      writer.startElement(XhtmlConstants.TABLE_HEADER_ELEMENT, column);
      cellClass = TableRenderer.getRowHeaderFormatClass();
      if (tContext.isExplicitHeaderIDMode())
      {
        String headerID = column.getClientId(context);
        RowData rowData = tContext.getRowData();
        rowData.setCurrentRowHeaderID(headerID);
        writer.writeAttribute(XhtmlConstants.ID_ATTRIBUTE, headerID, null);
      }
      else
      {
        writer.writeAttribute("scope", "row", null);
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.table.RowData

  public static String getDataStyleClass(TableRenderingContext tContext)
  {
    final String cellClass;
    final ColumnData colData = tContext.getColumnData();
    final RowData rowData = tContext.getRowData();
    int logicalColumn = colData.getLogicalColumnIndex();
    //ystem.out.println("logCol:"+logicalColumn);
    BandingData banding = tContext.getBanding();
    boolean band = banding.getBand(tContext,
                                   rowData.getRangeIndex(),
                                   colData.getPhysicalColumnIndex(),
                                   logicalColumn);

    if (band)
    {
View Full Code Here

Examples of org.eclipse.swt.layout.RowData

    layout.marginLeft = 0;
    layout.marginRight = 0;
    layout.spacing = 0;
    legend.setLayout(layout);

    RowData data;
    for (int i = 0; i < blockColors.length; i++) {
      int r = config.getIntParameter(keys[i] + ".red", -1);
      if (r >= 0) {
        int g = config.getIntParameter(keys[i] + ".green");
        int b = config.getIntParameter(keys[i] + ".blue");
       
        Color color = ColorCache.getColor(panel.getDisplay(), r, g, b);
        blockColors[i] = color;
      }

      Composite colorSet = new Composite(legend, SWT.NONE);

      colorSet.setLayout(new RowLayout(SWT.HORIZONTAL));

      final Canvas cColor = new Canvas(colorSet, SWT.BORDER);
      cColor.setData("Index", new Integer(i));
      // XXX Use paint instead of setBackgrond, because OSX does translucent
      // crap
      cColor.addPaintListener(new PaintListener() {
        public void paintControl(PaintEvent e) {
          int i = ((Integer)cColor.getData("Index")).intValue();
          e.gc.setBackground(blockColors[i]);
          e.gc.fillRectangle(e.x, e.y, e.width, e.height);
        }
      });

      cColor.addMouseListener(new MouseAdapter() {
        public void mouseUp(MouseEvent e) {
          Integer iIndex = (Integer)cColor.getData("Index");
          if (iIndex == null)
            return;
          int index = iIndex.intValue();

          if (e.button == 1) {
            ColorDialog cd = new ColorDialog(panel.getShell());
            cd.setRGB(blockColors[index].getRGB());
           
            RGB rgb = cd.open();
            if (rgb != null)
              config.setRGBParameter(keys[index], rgb.red, rgb.green, rgb.blue);
          } else {
            config.removeRGBParameter(keys[index]);
          }
        }
      });

      Label lblDesc = new Label(colorSet, SWT.NULL);
      Messages.setLanguageText(lblDesc, keys[i]);

      data = new RowData();
      data.width = 20;
      data.height = lblDesc.computeSize(SWT.DEFAULT, SWT.DEFAULT).y - 3;
      cColor.setLayoutData(data);
     
      // If color changes, update our legend
View Full Code Here

Examples of org.eclipse.swt.layout.RowData

    skin = (SWTSkin)JMuleUIManager.getJMuleUI().getSkin();
   
  }catch(Throwable t) {
  }
   
    RowData rd;
    display = parent.getDisplay();
    listener = _listener;
   
    tableColumns = new ArrayList<TableColumn>();
    for(int i = 0;i<editTable.getColumnCount();i++){
      int id = editTable.getColumnOrder()[i];
      tableColumns.add(editTable.getColumn(id));
    }
   
    newEnabledState = new HashMap<TableColumn,Boolean>();

    for(TableColumn column : tableColumns) {
      int column_id = (Integer)column.getData(SWTConstants.COLUMN_NAME_KEY);
      Boolean status = SWTPreferences.getInstance().isColumnVisible(column_id);
      newEnabledState.put(column, status);
    }
   
   
    blue = new Color(display,0,0,128);
  
    Shell shell1=new Shell(display,SWT.ON_TOP);
  shell=new Shell(shell1,SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);
  shell.setText(Localizer._("columneditorwindow.title"));
  shell.setImage(SWTImageRepository.getImage("columns_setup.png"));
 
    GridLayout layout = new GridLayout();
    shell.setLayout (layout);
   
    GridData gridData;
   
    Label label = new Label(shell,SWT.NULL);
    label.setText(Localizer._("columneditorwindow.draghint"));
    gridData = new GridData(GridData.FILL_HORIZONTAL);
    label.setLayoutData(gridData);
   
    table = new Table (shell, SWT.VIRTUAL | SWT.CHECK | SWT.SINGLE | SWT.BORDER | SWT.FULL_SELECTION);
    gridData = new GridData(GridData.FILL_BOTH);
    table.setLayoutData(gridData);
    table.setHeaderVisible(true);
   
    Composite cButtonArea = new Composite(shell, SWT.NULL);
    gridData = new GridData(GridData.HORIZONTAL_ALIGN_END);
    cButtonArea.setLayoutData(gridData);
    RowLayout rLayout = new RowLayout(SWT.HORIZONTAL);
    rLayout.marginLeft = 0;
   rLayout.marginTop = 0;
   rLayout.marginRight = 0;
   rLayout.marginBottom = 0;
   rLayout.spacing = 5;
   cButtonArea.setLayout (rLayout);
   
    Button bOk = new Button(cButtonArea,SWT.PUSH);
    bOk.setFont(skin.getButtonFont());
    bOk.setImage(skin.getButtonImage(SkinConstants.FINISH_BUTTON_IMAGE));
    bOk.setText(Localizer._("mainwindow.button.ok"));
    rd = new RowData();
    rd.width = 70;
    bOk.setLayoutData(rd);
    bOk.addListener(SWT.Selection,new Listener() {
      public void handleEvent(Event e) {
        saveAndApply();
        close();
      }
    });
   
    Button bCancel = new Button(cButtonArea,SWT.PUSH);
    bCancel.setFont(skin.getButtonFont());
    bCancel.setImage(skin.getButtonImage(SkinConstants.CANCEL_BUTTON_IMAGE));
    bCancel.setText(Localizer._("mainwindow.button.cancel"));
    rd = new RowData();
    rd.width = 70;
    bCancel.setLayoutData(rd);
    bCancel.addListener(SWT.Selection,new Listener() {
      public void handleEvent(Event e) {
        close();
      }
    });
   
    Button bApply = new Button(cButtonArea,SWT.PUSH);
    bApply.setFont(skin.getButtonFont());
    bApply.setImage(skin.getButtonImage(SkinConstants.OK_BUTTON_IMAGE));
    bApply.setText(Localizer._("mainwindo.button.apply"));
    rd = new RowData();
    rd.width = 70;
    bApply.setLayoutData(rd);
    bApply.addListener(SWT.Selection,new Listener() {
      public void handleEvent(Event e) {
        saveAndApply();
View Full Code Here

Examples of org.eclipse.swt.layout.RowData

        rl.type = SWT.VERTICAL;
        rl.wrap = false;
        rl.justify = true;
        topshell.setLayout(rl);
        preference = new Composite(topshell, SWT.BORDER);
        preference.setLayoutData(new RowData(
                topshell.getClientArea().width, 50));
        RowLayout rl2 = new RowLayout();
        rl2.spacing = 10;
        preference.setLayout(rl2);
        lbDevice = new Label(preference, SWT.READ_ONLY);
        lbDevice.setText("Device: ");
        RowData rowd = new RowData();
        rowd.height = 45;
        rowd.width = 130;
        device = new List(preference, SWT.SINGLE | SWT.V_SCROLL);
        device.setLayoutData(rowd);
        visualizing = new List(preference, SWT.SINGLE);
        visualizing.setItems(new String[] {"Read", "Write"});
        visualizing.setSelection(0);
        lastVis = "Read";
        Label lbmin = new Label(preference,SWT.NONE);
        lbmin.setText("Min Blockno.");
        min = new Spinner(preference,SWT.NONE);
        min.setMinimum(0);
        min.setMaximum(1000000);
        Label lbmax = new Label(preference,SWT.NONE);
        lbmax.setText("Max Blockno.");
        max = new Spinner(preference,SWT.NONE);
        max.setMinimum(0);
        max.setMaximum(1000000);
        btResetHistory = new Button(preference, SWT.PUSH);
        btResetHistory.setText("Reset Touch History");
        btResetHistory.addSelectionListener(this);
        details = new Composite(preference, SWT.BORDER);
        details.setLayout(new FillLayout());
        lbDetails = new Label(details, SWT.NONE);
        lbDetails.setText("Details: N/A");
        preference.pack();
        c = new Canvas(topshell, SWT.DOUBLE_BUFFERED | SWT.BORDER);
        c.setLayoutData(new RowData(topshell.getClientArea().width,
                topshell.getClientArea().height - 150));
        c.setBackground(parent.getDisplay().getSystemColor(SWT.COLOR_BLACK));
        c.addPaintListener(this);
        c.addMouseMoveListener(this);
        xPos = new int[lines * colums];
 
View Full Code Here

Examples of org.eclipse.swt.layout.RowData

    /**
     * Method which orders recalculation of Grid if Frame is resized.
     * @param e ControlEvent
     */
    public final void controlResized(final ControlEvent e) {
        preference.setLayoutData(new RowData(
                topshell.getClientArea().width - 10, 60));
        c.setLayoutData(new RowData(
                topshell.getClientArea().width - 10,
                topshell.getClientArea().height - 80));
        first = true;
        c.redraw();
    }
View Full Code Here

Examples of org.eclipse.swt.layout.RowData

        rl.justify = true;
        topshell.setLayout(rl);
        topshell.addDisposeListener(this);
        preference = new Composite(topshell, SWT.BORDER);
        preference.setLayoutData(
                new RowData(topshell.getClientArea().width, 50));
        preference.setLayout(new RowLayout());
        lbDevice = new Label(preference, SWT.READ_ONLY);
        lbDevice.setText("Device: ");
        RowData rowd = new RowData();
        rowd.height = 45;
        rowd.width = 130;
        device = new List(preference, SWT.READ_ONLY | SWT.V_SCROLL);
        device.setLayoutData(rowd);
        lbType = new Label(preference, SWT.SHADOW_IN);
        lbType.setText("Type: ");
        typ = new List(preference, SWT.READ_ONLY);
        typ.setItems(new String[] {"Linear", "Logarithmic"});
        typ.setSelection(0);
        lbAggregation = new Label(preference, SWT.SHADOW_IN);
        lbAggregation.setText("Values are :");
        cumulative = new List(preference, SWT.READ_ONLY);
        cumulative.setItems(new String[] {"accumulated", "not accumulated"});
        cumulative.setSelection(1);
        lbAccessType = new Label(preference, SWT.READ_ONLY);
        lbAccessType.setText("Visualizing: ");
        visualizing = new List(preference, SWT.READ_ONLY);
        visualizing.setItems(new String[] {"Read" , "Write"});
        visualizing.setSelection(0);
        c = new Canvas(topshell, SWT.DOUBLE_BUFFERED | SWT.BORDER);
        c.setLayoutData(new RowData(topshell.getClientArea().width,
                topshell.getClientArea().height - 75));
        c.addPaintListener(this);
        value = new float[noOfBins];
        for (int i = 0; i < noOfBins; i++) {
            value[i] = 0;
View Full Code Here

Examples of org.eclipse.swt.layout.RowData

     * Method which orders repainting of the histogram.
     * @param e ControlEvent
     */
    public final void controlResized(final ControlEvent e) {
        preference.setLayoutData(
               new RowData(topshell.getClientArea().width - 10, 60));
        c.setLayoutData(new RowData(topshell.getClientArea().width - 10,
                topshell.getClientArea().height - 80));
        c.redraw();
    }
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.