Examples of CellStyle


Examples of org.nocrala.tools.texttablefmt.CellStyle

            tab.addCell("Last Update");
            for(ZooKeeperInfo.Broker b: brokerFarm.getAllBrokers().values()){
                tab.addCell(b.getHost() + ":" + b.getPort());
                tab.addCell(b.getStatus().toString());
                tab.addCell(String.valueOf(loading.get(b.getHost()).getLoading()), numberStyle);
                tab.addCell(String.valueOf(b.getReserved()), new CellStyle(HorizontalAlign.center));
                tab.addCell(new SimpleDateFormat("HH:mm:ss").format(loading.get(b.getHost()).getLastUpdate()), new CellStyle(HorizontalAlign.center));
                if(b.getReserved())
                    reserved.add(b.getHost());
            }
            myConsole.logResponseNL(tab.render());
View Full Code Here

Examples of org.nocrala.tools.texttablefmt.CellStyle

            tab.addCell("Auth");
            tab.addCell("Host");
            tab.addCell("Ref. Count");
            for(Connection conn : Daemon.connectionPool) {
                tab.addCell(String.valueOf(conn.getId()));
                tab.addCell(String.valueOf(conn.isConnected()), new CellStyle(HorizontalAlign.center));
                tab.addCell(conn.getType());
                tab.addCell(conn.getConfig().getUsername() + ":*");
                tab.addCell(conn.getConnectionString());
                tab.addCell(String.valueOf(conn.getReferenceCount()), new CellStyle(HorizontalAlign.right));
            }
            strOut.write(tab.render() + "\n");
        }

        return strOut.toString();
View Full Code Here

Examples of org.openoffice.xmerge.converter.xml.sxc.CellStyle

      Debug.log(Debug.TRACE, "No default cell Style Attribute was found");

    } else {

          CellStyle cellStyle = (CellStyle)styleCat.lookup(cellStyleName,
                                SxcConstants.TABLE_CELL_STYLE_FAMILY, null,
                                CellStyle.class);
      Format defaultFmt = new Format(cellStyle.getFormat());
      col.setFormat(defaultFmt);
    }

    String styleName = new String("");
 
View Full Code Here

Examples of org.openoffice.xmerge.converter.xml.sxc.CellStyle

      Debug.log(Debug.TRACE, "No defined Style Attribute was found");

    } else if(styleName.length()!=0) {

          CellStyle cStyle = (CellStyle)styleCat.lookup(styleName,
                                SxcConstants.TABLE_CELL_STYLE_FAMILY, null,
                                CellStyle.class);

      Format definedFormat = cStyle.getFormat();
      fmt = new Format(definedFormat);
    }

        // There is a number of cols repeated attribute
        if (colsRepeatedNode != null) {
View Full Code Here

Examples of org.openoffice.xmerge.converter.xml.sxc.CellStyle

          if (autoStylesNode == null) {
              autoStylesNode = doc.createElement(TAG_OFFICE_AUTOMATIC_STYLES);
              doc.insertBefore(autoStylesNode, bodyNode);
           }
     
      CellStyle tStyle = new
      CellStyle"Default",SxcConstants.TABLE_CELL_STYLE_FAMILY,
            SxcConstants.DEFAULT_STYLE, fmt, null);
      String styleName;
      Style result[] = (Style[]) styleCat.getMatching(tStyle);
      if(result.length==0) {
       
          tStyle.setName("ce" + textStyles++);
          styleName = tStyle.getName();
          Debug.log(Debug.TRACE,"No existing style found, adding " + styleName);
          styleCat.add(tStyle);
      } else {
          CellStyle existingStyle = (CellStyle) result[0];
          styleName = existingStyle.getName();
          Debug.log(Debug.TRACE,"Existing style found : " + styleName);
      }
     
            cellElement.setAttribute(ATTRIBUTE_TABLE_STYLE_NAME, styleName);
     
View Full Code Here

Examples of org.openoffice.xmerge.converter.xml.sxc.CellStyle

          if (autoStylesNode == null) {
              autoStylesNode = doc.createElement(TAG_OFFICE_AUTOMATIC_STYLES);
              doc.insertBefore(autoStylesNode, bodyNode);
           }
     
      CellStyle tStyle = new
      CellStyle"Default",SxcConstants.TABLE_CELL_STYLE_FAMILY,
            SxcConstants.DEFAULT_STYLE, fmt, null);
      String styleName;
      Style result[] = (Style[]) styleCat.getMatching(tStyle);
      if(result.length==0) {
       
          tStyle.setName("ce" + textStyles++);
          styleName = tStyle.getName();
          Debug.log(Debug.TRACE,"No existing style found, adding " + styleName);
          styleCat.add(tStyle);
      } else {
          CellStyle existingStyle = (CellStyle) result[0];
          styleName = existingStyle.getName();
          Debug.log(Debug.TRACE,"Existing style found : " + styleName);
      }
     
            cellElement.setAttribute(ATTRIBUTE_TABLE_STYLE_NAME, styleName);
     
View Full Code Here

Examples of org.openoffice.xmerge.converter.xml.sxc.CellStyle

      Debug.log(Debug.TRACE, "No default cell Style Attribute was found");

    } else {

          CellStyle cellStyle = (CellStyle)styleCat.lookup(cellStyleName,
                                SxcConstants.TABLE_CELL_STYLE_FAMILY, null,
                                CellStyle.class);
      Format defaultFmt = new Format(cellStyle.getFormat());
      col.setFormat(defaultFmt);
    }

    String styleName = new String("");
View Full Code Here

Examples of org.openoffice.xmerge.converter.xml.sxc.CellStyle

      Debug.log(Debug.TRACE, "No defined Style Attribute was found");

    } else if(styleName.length()!=0) {

          CellStyle cStyle = (CellStyle)styleCat.lookup(styleName,
                                SxcConstants.TABLE_CELL_STYLE_FAMILY, null,
                                CellStyle.class);

      Format definedFormat = cStyle.getFormat();
      fmt = new Format(definedFormat);
    }

        // There is a number of cols repeated attribute
        if (colsRepeatedNode != null) {
View Full Code Here

Examples of org.openoffice.xmerge.converter.xml.sxc.CellStyle

      Debug.log(Debug.TRACE, "No default cell Style Attribute was found");

    } else {

          CellStyle cellStyle = (CellStyle)styleCat.lookup(cellStyleName,
                                SxcConstants.TABLE_CELL_STYLE_FAMILY, null,
                                CellStyle.class);
      Format defaultFmt = new Format(cellStyle.getFormat());
      col.setFormat(defaultFmt);
    }

    String styleName = new String("");
View Full Code Here

Examples of org.openoffice.xmerge.converter.xml.sxc.CellStyle

      Debug.log(Debug.TRACE, "No defined Style Attribute was found");

    } else if(styleName.length()!=0) {

          CellStyle cStyle = (CellStyle)styleCat.lookup(styleName,
                                SxcConstants.TABLE_CELL_STYLE_FAMILY, null,
                                CellStyle.class);

      Format definedFormat = cStyle.getFormat();
      fmt = new Format(definedFormat);
    }

        // There is a number of cols repeated attribute
        if (colsRepeatedNode != null) {
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.