Examples of TextRecord


Examples of org.apache.poi.hssf.record.TextRecord

    return r;
  }

  private TextRecord createTextRecord()
  {
    TextRecord r = new TextRecord();
    r.setHorizontalAlignment(TextRecord.HORIZONTAL_ALIGNMENT_CENTER);
    r.setVerticalAlignment(TextRecord.VERTICAL_ALIGNMENT_CENTER);
    r.setDisplayMode((short)1);
    r.setRgbColor(0x00000000);
    r.setX(-37);
    r.setY(-60);
    r.setWidth(0);
    r.setHeight(0);
    r.setAutoColor(true);
    r.setShowKey(false);
    r.setShowValue(false);
    r.setVertical(false);
    r.setAutoGeneratedText(true);
    r.setGenerated(true);
    r.setAutoLabelDeleted(false);
    r.setAutoBackground(true);
    r.setRotation((short)0);
    r.setShowCategoryLabelAsPercentage(false);
    r.setShowValueAsPercentage(false);
    r.setShowBubbleSizes(false);
    r.setShowLabel(false);
    r.setIndexOfColorValue((short)77);
    r.setDataLabelPlacement((short)0);
    r.setTextRotation((short)0);
    return r;
  }
View Full Code Here

Examples of org.apache.poi.hssf.record.TextRecord

    return r;
  }

  private TextRecord createAllTextRecord()
  {
    TextRecord r = new TextRecord();
    r.setHorizontalAlignment( TextRecord.HORIZONTAL_ALIGNMENT_CENTER );
    r.setVerticalAlignment( TextRecord.VERTICAL_ALIGNMENT_CENTER );
    r.setDisplayMode( TextRecord.DISPLAY_MODE_TRANSPARENT );
    r.setRgbColor( 0 );
    r.setX( -37 );
    r.setY( -60 );
    r.setWidth( 0 );
    r.setHeight( 0 );
    r.setAutoColor( true );
    r.setShowKey( false );
    r.setShowValue( true );
    r.setVertical( false );
    r.setAutoGeneratedText( true );
    r.setGenerated( true );
    r.setAutoLabelDeleted( false );
    r.setAutoBackground( true );
    r.setRotation( (short) 0 );
    r.setShowCategoryLabelAsPercentage( false );
    r.setShowValueAsPercentage( false );
    r.setShowBubbleSizes( false );
    r.setShowLabel( false );
    r.setIndexOfColorValue( (short) 77 );
    r.setDataLabelPlacement( (short) 0 );
    r.setTextRotation( (short) 0 );
    return r;
  }
View Full Code Here

Examples of org.apache.poi.hssf.record.TextRecord

    return r;
  }

  private TextRecord createUnknownTextRecord()
  {
    TextRecord r = new TextRecord();
    r.setHorizontalAlignment( TextRecord.HORIZONTAL_ALIGNMENT_CENTER );
    r.setVerticalAlignment( TextRecord.VERTICAL_ALIGNMENT_CENTER );
    r.setDisplayMode( TextRecord.DISPLAY_MODE_TRANSPARENT );
    r.setRgbColor( 0 );
    r.setX( -37 );
    r.setY( -60 );
    r.setWidth( 0 );
    r.setHeight( 0 );
    r.setAutoColor( true );
    r.setShowKey( false );
    r.setShowValue( false );
    r.setVertical( false );
    r.setAutoGeneratedText( true );
    r.setGenerated( true );
    r.setAutoLabelDeleted( false );
    r.setAutoBackground( true );
    r.setRotation( (short) 0 );
    r.setShowCategoryLabelAsPercentage( false );
    r.setShowValueAsPercentage( false );
    r.setShowBubbleSizes( false );
    r.setShowLabel( false );
    r.setIndexOfColorValue( (short) 77 );
    r.setDataLabelPlacement( (short) 11088 );
    r.setTextRotation( (short) 0 );
    return r;
  }
View Full Code Here

Examples of org.nfctools.ndef.wkt.records.TextRecord

*
*/
public class NdefExampleRecords {

  public static GenericControlRecord createVibrateModeGc() {
    GenericControlRecord gcr = new GenericControlRecord(new GcTargetRecord(new TextRecord("PropertyManager")));
    gcr.setAction(new GcActionRecord(new TextRecord("SilentMode")));
    gcr.setData(new GcDataRecord(new TextRecord("VIBRATE")));
    return gcr;
  }
View Full Code Here

Examples of org.nfctools.ndef.wkt.records.TextRecord

    gcr.setData(new GcDataRecord(new TextRecord("VIBRATE")));
    return gcr;
  }

  public static GenericControlRecord createNavigationGc() {
    GenericControlRecord gcr = new GenericControlRecord(new GcTargetRecord(new TextRecord("Navigation")));
    gcr.setAction(new GcActionRecord(Action.DEFAULT_ACTION));
    gcr.setData(new GcDataRecord(new TextRecord("D", "Street 3, 12345 City")));
    return gcr;
  }
View Full Code Here

Examples of org.nfctools.ndef.wkt.records.TextRecord

    gcr.setData(new GcDataRecord(new TextRecord("D", "Street 3, 12345 City")));
    return gcr;
  }

  public static GenericControlRecord createSilentModeGc() {
    GenericControlRecord gcr = new GenericControlRecord(new GcTargetRecord(new TextRecord("PropertyManager")));
    gcr.setAction(new GcActionRecord(new TextRecord("SilentMode")));
    gcr.setData(new GcDataRecord(new TextRecord("ON")));
    return gcr;
  }
View Full Code Here

Examples of org.nfctools.ndef.wkt.records.TextRecord

    gcr.setData(new GcDataRecord(new TextRecord("ON")));
    return gcr;
  }

  public static GenericControlRecord createSilentModeOffGc() {
    GenericControlRecord gcr = new GenericControlRecord(new GcTargetRecord(new TextRecord("PropertyManager")));
    gcr.setAction(new GcActionRecord(new TextRecord("SilentMode")));
    gcr.setData(new GcDataRecord(new TextRecord("OFF")));
    return gcr;
  }
View Full Code Here

Examples of org.nfctools.ndef.wkt.records.TextRecord

    gcr.setData(new GcDataRecord(new TextRecord("OFF")));
    return gcr;
  }

  public static GenericControlRecord createWifiSetting() {
    GenericControlRecord gcr = new GenericControlRecord(new GcTargetRecord(new TextRecord("WifiManager")));
    gcr.setAction(new GcActionRecord(Action.DEFAULT_ACTION));
    gcr.setData(new GcDataRecord(new TextRecord("T", "WPA"), new TextRecord("S", "somelan"), new TextRecord("P",
        "26888282a6eff09dbc7e91e61dccf99bd660881ea69a6fad5941288f6cbc0f35")));
    return gcr;
  }
View Full Code Here

Examples of org.nfctools.ndef.wkt.records.TextRecord

    return uriRecord;
  }

  public static SmartPosterRecord createSmartPoster() {
    SmartPosterRecord spr = new SmartPosterRecord();
    spr.setTitle(new TextRecord("Hello, this is a SmartPosterTag for NFC Tools", Charset.forName("UTF8"),
        Locale.ENGLISH));
    spr.setUri(new UriRecord("http://www.nfctools.org"));
    spr.setAction(new ActionRecord(Action.DEFAULT_ACTION));
    return spr;
  }
View Full Code Here

Examples of org.nfctools.ndef.wkt.records.TextRecord

    Information information = (Information)pduDecoder.decode(data);

    List<byte[]> ndefMessages = NdefPushProtocol.parse(information.getServiceDataUnit());

    for (byte[] ndef : ndefMessages) {
      TextRecord record = NdefContext.getNdefMessageDecoder().decodeToRecord(ndef);
      assertEquals("NDEF Push Sample", record.getText());

    }

  }
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.