/** * 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); } }
/** * 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); } }