Examples of CellStyleHandler


Examples of com.smartgwt.client.widgets.viewer.CellStyleHandler

                return "Lifespan: " + value;
            }
        });

        DetailViewerField statusField = new DetailViewerField("status");
        statusField.setCellStyleHandler(new CellStyleHandler() {
            public String execute(Object value, DetailViewerField field, Record record) {
                if ("Endangered".equals(value)) {
                    return "endangered";
                } else if ("Threatened".equals(value)) {
                    return "threatened";
View Full Code Here

Examples of com.smartgwt.client.widgets.viewer.CellStyleHandler

                return "Lifespan: " + value;
            }
        });

        DetailViewerField statusField = new DetailViewerField("status");
        statusField.setCellStyleHandler(new CellStyleHandler() {
            public String execute(Object value, DetailViewerField field, Record record) {
                if("Endangered".equals(value)) {
                    return "endangered";
                } else if ("Threatened".equals(value)) {
                    return "threatened";
View Full Code Here

Examples of org.odftoolkit.simple.table.CellStyleHandler

    try {
      SpreadsheetDocument doc = SpreadsheetDocument.loadDocument(ResourceUtilities
          .getTestResourceAsStream(filename));
      Table table = doc.getTableByName("A");
      Cell cell1 = table.getCellByPosition("A2");
      CellStyleHandler handler1 = cell1.getStyleHandler();
      Font font1 = handler1.getFont(Document.ScriptType.WESTERN);
      Assert.assertEquals(font1Base, font1);

      Cell cell2 = table.getCellByPosition("A3");
      CellStyleHandler handler2 = cell2.getStyleHandler();
      Font font2 = handler2.getFont(Document.ScriptType.WESTERN);
      Assert.assertEquals(font2Base, font2);

      Cell cell3 = table.getCellByPosition("A4");
      CellStyleHandler handler3 = cell3.getStyleHandler();
      Font font3 = handler3.getFont(Document.ScriptType.CJK);
      Assert.assertEquals(font3Base, font3);
      Font font4 = handler3.getFont(Document.ScriptType.WESTERN);
      Assert.assertEquals(font4Base, font4);

      Cell cell5 = table.getCellByPosition("B2");
      cell5.getStyleHandler().setFont(font1Base);
      cell5.setStringValue("Arial Italic black 10");
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.