/** * Return the column of the first cell that contains the hyperlink * * @return the 0-based column of the first cell that contains the hyperlink */ @Override public int getFirstColumn(){ return record.getFirstColumn(); }
/** * Removes the hyperlink for this cell, if there is one. */ public void removeHyperlink() { for (Iterator<RecordBase> it = _sheet.getSheet().getRecords().iterator(); it.hasNext();) { RecordBase rec = it.next(); if (rec instanceof HyperlinkRecord) { HyperlinkRecord link = (HyperlinkRecord) rec; if (link.getFirstColumn() == _record.getColumn() && link.getFirstRow() == _record.getRow()) { it.remove(); return; } } } }
/** * Get a Hyperlink in this sheet anchored at row, column * * @param row The index of the row of the hyperlink, zero-based * @param column the index of the column of the hyperlink, zero-based * @return hyperlink if there is a hyperlink anchored at row, column; otherwise returns null */ @Override public HSSFHyperlink getHyperlink(int row, int column) { for (RecordBase rec : _sheet.getRecords()) { if (rec instanceof HyperlinkRecord) { HyperlinkRecord link = (HyperlinkRecord) rec; if (link.getFirstColumn() == column && link.getFirstRow() == row) { return new HSSFHyperlink(link); } } } return null; }
/** * Return the column of the first cell that contains the hyperlink * * @return the 0-based column of the first cell that contains the hyperlink */ public int getFirstColumn(){ return record.getFirstColumn(); }
/** * Return the column of the first cell that contains the hyperlink * * @return the 0-based column of the first cell that contains the hyperlink */ @Override public int getFirstColumn(){ return record.getFirstColumn(); }
/** * Return the column of the first cell that contains the hyperlink * * @return the 0-based column of the first cell that contains the hyperlink */ public int getFirstColumn(){ return record.getFirstColumn(); }
HyperlinkRecord link = (HyperlinkRecord) record; Point point = new Point(link.getFirstColumn(), link.getFirstRow()); Cell cell = currentSheet.get(point); if (cell != null) {
/** * Removes the hyperlink for this cell, if there is one. */ public void removeHyperlink() { for (Iterator<RecordBase> it = _sheet.getSheet().getRecords().iterator(); it.hasNext();) { RecordBase rec = it.next(); if (rec instanceof HyperlinkRecord) { HyperlinkRecord link = (HyperlinkRecord) rec; if (link.getFirstColumn() == _record.getColumn() && link.getFirstRow() == _record.getRow()) { it.remove(); return; } } } }
/** * @return hyperlink associated with this cell or <code>null</code> if not found */ public HSSFHyperlink getHyperlink(){ for (Iterator<RecordBase> it = _sheet.getSheet().getRecords().iterator(); it.hasNext(); ) { RecordBase rec = it.next(); if (rec instanceof HyperlinkRecord){ HyperlinkRecord link = (HyperlinkRecord)rec; if(link.getFirstColumn() == _record.getColumn() && link.getFirstRow() == _record.getRow()){ return new HSSFHyperlink(link); } } } return null; }
/** * @return hyperlink associated with this cell or <code>null</code> if not found */ public HSSFHyperlink getHyperlink(){ for (Iterator<RecordBase> it = _sheet.getSheet().getRecords().iterator(); it.hasNext(); ) { RecordBase rec = it.next(); if (rec instanceof HyperlinkRecord){ HyperlinkRecord link = (HyperlinkRecord)rec; if(link.getFirstColumn() == _record.getColumn() && link.getFirstRow() == _record.getRow()){ return new HSSFHyperlink(link); } } } return null; }
/** * Get a Hyperlink in this sheet anchored at row, column * * @param row The index of the row of the hyperlink, zero-based * @param column the index of the column of the hyperlink, zero-based * @return hyperlink if there is a hyperlink anchored at row, column; otherwise returns null */ @Override public HSSFHyperlink getHyperlink(int row, int column) { for (RecordBase rec : _sheet.getRecords()) { if (rec instanceof HyperlinkRecord) { HyperlinkRecord link = (HyperlinkRecord) rec; if (link.getFirstColumn() == column && link.getFirstRow() == row) { return new HSSFHyperlink(link); } } } return null; }
HyperlinkRecord link = (HyperlinkRecord) record; Point point = new Point(link.getFirstColumn(), link.getFirstRow()); Cell cell = currentSheet.get(point); if (cell != null) {
HyperlinkRecord link = (HyperlinkRecord) record; Point point = new Point(link.getFirstColumn(), link.getFirstRow()); Cell cell = currentSheet.get(point); if (cell != null) {