Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /* ====================================================================
     Licensed to the Apache Software Foundation (ASF) under one or more
     contributor license agreements.  See the NOTICE file distributed with
     this work for additional information regarding copyright ownership.
     The ASF licenses this file to You under the Apache License, Version 2.0
     (the "License"); you may not use this file except in compliance with
     the License.  You may obtain a copy of the License at
  
         http://www.apache.org/licenses/LICENSE-2.0
 
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
 ==================================================================== */
 
 package org.apache.poi.hwpf.model.types;
 
Table Autoformat Look sPecifier (TLP).

Class and fields descriptions are quoted from Microsoft Office Word 97-2007 Binary File Format NOTE: This source is automatically generated please do not modify this file. Either subclass or remove the record in src/records/definitions.

Author(s):
Sergey Vladimirov; according to Microsoft Office Word 97-2007 Binary File Format Specification [*.doc]
 
 public abstract class TLPAbstractType implements HDFType
 {
 
     protected short field_1_itl;
     protected byte field_2_tlp_flags;
     private static BitField fBorders = new BitField( 0x0001 );
     private static BitField fShading = new BitField( 0x0002 );
     private static BitField fFont = new BitField( 0x0004 );
     private static BitField fColor = new BitField( 0x0008 );
     private static BitField fBestFit = new BitField( 0x0010 );
     private static BitField fHdrRows = new BitField( 0x0020 );
     private static BitField fLastRow = new BitField( 0x0040 );
 
     public TLPAbstractType()
     {
 
     }
 
     protected void fillFieldsbyte[] dataint offset )
     {
          = LittleEndian.getShortdata, 0x0 + offset );
          = data[0x2 + offset];
     }
 
     public void serializebyte[] dataint offset )
     {
         LittleEndian.putShortdata, 0x0 + offset );
         data[0x2 + offset] = ;
     }
 
     public String toString()
     {
         StringBuffer buffer = new StringBuffer();
 
         buffer.append"[TLP]\n" );
 
         buffer.append"    .itl                  = " );
         buffer.append" (" ).appendgetItl() ).append" )\n" );
 
         buffer.append"    .tlp_flags            = " );
         buffer.append" (" ).appendgetTlp_flags() ).append" )\n" );
         buffer.append"         .fBorders                 = " )
                 .appendisFBorders() ).append'\n' );
         buffer.append"         .fShading                 = " )
                 .appendisFShading() ).append'\n' );
         buffer.append"         .fFont                    = " )
                 .appendisFFont() ).append'\n' );
         buffer.append"         .fColor                   = " )
                 .appendisFColor() ).append'\n' );
         buffer.append"         .fBestFit                 = " )
                 .appendisFBestFit() ).append'\n' );
         buffer.append"         .fHdrRows                 = " )
                 .appendisFHdrRows() ).append'\n' );
         buffer.append"         .fLastRow                 = " )
                 .appendisFLastRow() ).append'\n' );
 
         buffer.append"[/TLP]\n" );
         return buffer.toString();
     }

    
Size of record (exluding 4 byte header)
    public int getSize()
    {
        return 4 + +2 + 1;
    }

    
Get the itl field for the TLP record.
    public short getItl()
    {
        return ;
    }

    
Set the itl field for the TLP record.
    public void setItlshort field_1_itl )
    {
        this. = field_1_itl;
    }

    
Get the tlp_flags field for the TLP record.
    public byte getTlp_flags()
    {
        return ;
    }

    
Set the tlp_flags field for the TLP record.
    public void setTlp_flagsbyte field_2_tlp_flags )
    {
        this. = field_2_tlp_flags;
    }

    
Sets the fBorders field value. When == 1, use the border properties from the selected table look
    public void setFBordersboolean value )
    {
                value );
    }

    
When == 1, use the border properties from the selected table look

Returns:
the fBorders field value.
    public boolean isFBorders()
    {
        return .isSet );
    }

    
Sets the fShading field value. When == 1, use the shading properties from the selected table look
    public void setFShadingboolean value )
    {
                value );
    }

    
When == 1, use the shading properties from the selected table look

Returns:
the fShading field value.
    public boolean isFShading()
    {
        return .isSet );
    }

    
Sets the fFont field value. When == 1, use the font from the selected table look
    public void setFFontboolean value )
    {
         = (byte.setBooleanvalue );
    }

    
When == 1, use the font from the selected table look

Returns:
the fFont field value.
    public boolean isFFont()
    {
        return .isSet );
    }

    
Sets the fColor field value. When == 1, use the color from the selected table look
    public void setFColorboolean value )
    {
         = (byte.setBooleanvalue );
    }

    
When == 1, use the color from the selected table look

Returns:
the fColor field value.
    public boolean isFColor()
    {
        return .isSet );
    }

    
Sets the fBestFit field value. When == 1, do best fit from the selected table look
    public void setFBestFitboolean value )
    {
                value );
    }

    
When == 1, do best fit from the selected table look

Returns:
the fBestFit field value.
    public boolean isFBestFit()
    {
        return .isSet );
    }

    
Sets the fHdrRows field value. When == 1, apply properties from the selected table look to the header rows in the table
    public void setFHdrRowsboolean value )
    {
                value );
    }

    
When == 1, apply properties from the selected table look to the header rows in the table

Returns:
the fHdrRows field value.
    public boolean isFHdrRows()
    {
        return .isSet );
    }

    
Sets the fLastRow field value. When == 1, apply properties from the selected table look to the last row in the table
    public void setFLastRowboolean value )
    {
                value );
    }

    
When == 1, apply properties from the selected table look to the last row in the table

Returns:
the fLastRow field value.
    public boolean isFLastRow()
    {
        return .isSet );
    }
// END OF CLASS
New to GrepCode? Check out our FAQ X