@Override public HyperlinkRecord clone() { HyperlinkRecord rec = new HyperlinkRecord(); rec._range = _range.copy(); rec._guid = _guid; rec._linkOpts = _linkOpts; rec._fileOpts = _fileOpts; rec._label = _label; rec._address = _address; rec._moniker = _moniker; rec._shortFilename = _shortFilename; rec._targetFrame = _targetFrame; rec._textMark = _textMark; rec._uninterpretedTail = _uninterpretedTail; return rec; } }
/** * Construct a new hyperlink * * This method is internal to be used only by * {@link HSSFCreationHelper#createHyperlink(HyperlinkType)}. * * @param type the type of hyperlink to create */ @Internal(since="3.15 beta 3") protected HSSFHyperlink( HyperlinkType type ) { this.link_type = type; record = new HyperlinkRecord(); switch(type){ case URL: case EMAIL: record.newUrlLink(); break; case FILE: record.newFileLink(); break; case DOCUMENT: record.newDocumentLink(); break; default: throw new IllegalArgumentException("Invalid type: " + type); } }
protected HSSFHyperlink(Hyperlink other) { if (other instanceof HSSFHyperlink) { HSSFHyperlink hlink = (HSSFHyperlink) other; record = hlink.record.clone(); link_type = getType(record); } else { link_type = other.getType(); record = new HyperlinkRecord(); setFirstRow(other.getFirstRow()); setFirstColumn(other.getFirstColumn()); setLastRow(other.getLastRow()); setLastColumn(other.getLastColumn()); } }
public Object clone() { HyperlinkRecord rec = new HyperlinkRecord(); rec._range = _range.copy(); rec._guid = _guid; rec._linkOpts = _linkOpts; rec._fileOpts = _fileOpts; rec._label = _label; rec._address = _address; rec._moniker = _moniker; rec._shortFilename = _shortFilename; rec._targetFrame = _targetFrame; rec._textMark = _textMark; rec._uninterpretedTail = _uninterpretedTail; return rec; } }
public Object clone() { HyperlinkRecord rec = new HyperlinkRecord(); rec._range = _range.copy(); rec._guid = _guid; rec._linkOpts = _linkOpts; rec._fileOpts = _fileOpts; rec._label = _label; rec._address = _address; rec._moniker = _moniker; rec._shortFilename = _shortFilename; rec._targetFrame = _targetFrame; rec._textMark = _textMark; rec._uninterpretedTail = _uninterpretedTail; return rec; } }
@Override public HyperlinkRecord clone() { HyperlinkRecord rec = new HyperlinkRecord(); rec._range = _range.copy(); rec._guid = _guid; rec._linkOpts = _linkOpts; rec._fileOpts = _fileOpts; rec._label = _label; rec._address = _address; rec._moniker = _moniker; rec._shortFilename = _shortFilename; rec._targetFrame = _targetFrame; rec._textMark = _textMark; rec._uninterpretedTail = _uninterpretedTail; return rec; } }
case HideObjRecord.sid: return new HideObjRecord(in); case HorizontalPageBreakRecord.sid: return new HorizontalPageBreakRecord(in); case HyperlinkRecord.sid: return new HyperlinkRecord(in); case IndexRecord.sid: return new IndexRecord(in); case InterfaceEndRecord.sid: return InterfaceEndRecord.create(in);
/** * Construct a new hyperlink * * @param type the type of hyperlink to create */ public HSSFHyperlink( int type ) { this.link_type = type; record = new HyperlinkRecord(); switch(type){ case LINK_URL: case LINK_EMAIL: record.newUrlLink(); break; case LINK_FILE: record.newFileLink(); break; case LINK_DOCUMENT: record.newDocumentLink(); break; } }
/** * Construct a new hyperlink * * @param type the type of hyperlink to create */ public HSSFHyperlink( int type ) { this.link_type = type; record = new HyperlinkRecord(); switch(type){ case LINK_URL: case LINK_EMAIL: record.newUrlLink(); break; case LINK_FILE: record.newFileLink(); break; case LINK_DOCUMENT: record.newDocumentLink(); break; } }
/** * Construct a new hyperlink * * This method is internal to be used only by * {@link HSSFCreationHelper#createHyperlink(HyperlinkType)}. * * @param type the type of hyperlink to create */ @Internal(since="3.15 beta 3") protected HSSFHyperlink( HyperlinkType type ) { this.link_type = type; record = new HyperlinkRecord(); switch(type){ case URL: case EMAIL: record.newUrlLink(); break; case FILE: record.newFileLink(); break; case DOCUMENT: record.newDocumentLink(); break; default: throw new IllegalArgumentException("Invalid type: " + type); } }
protected HSSFHyperlink(Hyperlink other) { if (other instanceof HSSFHyperlink) { HSSFHyperlink hlink = (HSSFHyperlink) other; record = hlink.record.clone(); link_type = getType(record); } else { link_type = other.getType(); record = new HyperlinkRecord(); setFirstRow(other.getFirstRow()); setFirstColumn(other.getFirstColumn()); setLastRow(other.getLastRow()); setLastColumn(other.getLastColumn()); } }
case HideObjRecord.sid: return new HideObjRecord(in); case HorizontalPageBreakRecord.sid: return new HorizontalPageBreakRecord(in); case HyperlinkRecord.sid: return new HyperlinkRecord(in); case IndexRecord.sid: return new IndexRecord(in); case InterfaceEndRecord.sid: return InterfaceEndRecord.create(in);
case HideObjRecord.sid: return new HideObjRecord(in); case HorizontalPageBreakRecord.sid: return new HorizontalPageBreakRecord(in); case HyperlinkRecord.sid: return new HyperlinkRecord(in); case IndexRecord.sid: return new IndexRecord(in); case InterfaceEndRecord.sid: return InterfaceEndRecord.create(in);
case HideObjRecord.sid: return new HideObjRecord(in); case HorizontalPageBreakRecord.sid: return new HorizontalPageBreakRecord(in); case HyperlinkRecord.sid: return new HyperlinkRecord(in); case IndexRecord.sid: return new IndexRecord(in); case InterfaceEndRecord.sid: return InterfaceEndRecord.create(in);