Logo Search packages:      
Sourcecode: jexcelapi version File versions  Download package

final boolean jxl::biff::XFRecord::hasBorders (  )  [inline, inherited]

Determines if this cell format has any borders at all. Used to set the new borders when merging a group of cells

Returns:
TRUE if this cell has any borders, FALSE otherwise

Implements jxl::format::CellFormat.

Definition at line 1196 of file XFRecord.java.

References jxl::biff::XFRecord::bottomBorder, jxl::biff::XFRecord::formatInfoInitialized, jxl::biff::XFRecord::initializeFormatInformation(), jxl::biff::XFRecord::leftBorder, jxl::format::BorderLineStyle::NONE, jxl::biff::XFRecord::rightBorder, and jxl::biff::XFRecord::topBorder.

Referenced by jxl::write::biff::SheetWriter::checkMergedBorders().

  {
    if (!formatInfoInitialized)
    {
      initializeFormatInformation();
    }

    if (leftBorder   == BorderLineStyle.NONE &&
        rightBorder  == BorderLineStyle.NONE &&
        topBorder    == BorderLineStyle.NONE &&
        bottomBorder == BorderLineStyle.NONE)
    {
      return false;
    }

    return true;
  }


Generated by  Doxygen 1.6.0   Back to index