Package org.apache.poi.hslf.record
Class InteractiveInfoAtom
java.lang.Object
org.apache.poi.hslf.record.Record
org.apache.poi.hslf.record.RecordAtom
org.apache.poi.hslf.record.InteractiveInfoAtom
- All Implemented Interfaces:
GenericRecord
Tne atom that holds metadata on Links in the document.
(The actual link is held Document.ExObjList.ExHyperlink)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static enum
static enum
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byte
static final byte
static final byte
static final byte
static final byte
static final byte
Action Tablestatic final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
static final byte
Jump Tablestatic final byte
static final byte
static final byte
static final byte
static final byte
Types of hyperlinksstatic final byte
static final byte
static final byte
static final byte
static final byte
static final byte
-
Method Summary
Modifier and TypeMethodDescriptionbyte
Hyperlink Action.byte
getFlags()
Flags Bit 1: Animated.int
Gets the link number.byte
hyperlink typebyte
getJump()
Jumpbyte
Only valid when action == OLEAction.long
Gets the record type.int
a reference to a sound in the sound collection.void
setAction
(byte val) Hyperlink Actionvoid
setFlags
(byte val) Flags Bit 1: Animated.void
setHyperlinkID
(int number) Sets the persistent unique identifier of the linkvoid
setHyperlinkType
(byte val) hyperlink typevoid
setJump
(byte val) Jumpvoid
setOleVerb
(byte val) Only valid when action == OLEAction.void
setSoundRef
(int val) a reference to a sound in the sound collection.void
writeOut
(OutputStream out) Write the contents of the record back, so it can be written to diskMethods inherited from class org.apache.poi.hslf.record.RecordAtom
getChildRecords, getMaxRecordLength, isAnAtom, setMaxRecordLength
Methods inherited from class org.apache.poi.hslf.record.Record
buildRecordAtOffset, createRecordForType, findChildRecords, getGenericChildren, getGenericRecordType, writeLittleEndian, writeLittleEndian
-
Field Details
-
ACTION_NONE
public static final byte ACTION_NONEAction Table- See Also:
-
ACTION_MACRO
public static final byte ACTION_MACRO- See Also:
-
ACTION_RUNPROGRAM
public static final byte ACTION_RUNPROGRAM- See Also:
-
ACTION_JUMP
public static final byte ACTION_JUMP- See Also:
-
ACTION_HYPERLINK
public static final byte ACTION_HYPERLINK- See Also:
-
ACTION_OLE
public static final byte ACTION_OLE- See Also:
-
ACTION_MEDIA
public static final byte ACTION_MEDIA- See Also:
-
ACTION_CUSTOMSHOW
public static final byte ACTION_CUSTOMSHOW- See Also:
-
JUMP_NONE
public static final byte JUMP_NONEJump Table- See Also:
-
JUMP_NEXTSLIDE
public static final byte JUMP_NEXTSLIDE- See Also:
-
JUMP_PREVIOUSSLIDE
public static final byte JUMP_PREVIOUSSLIDE- See Also:
-
JUMP_FIRSTSLIDE
public static final byte JUMP_FIRSTSLIDE- See Also:
-
JUMP_LASTSLIDE
public static final byte JUMP_LASTSLIDE- See Also:
-
JUMP_LASTSLIDEVIEWED
public static final byte JUMP_LASTSLIDEVIEWED- See Also:
-
JUMP_ENDSHOW
public static final byte JUMP_ENDSHOW- See Also:
-
LINK_NextSlide
public static final byte LINK_NextSlideTypes of hyperlinks- See Also:
-
LINK_PreviousSlide
public static final byte LINK_PreviousSlide- See Also:
-
LINK_FirstSlide
public static final byte LINK_FirstSlide- See Also:
-
LINK_LastSlide
public static final byte LINK_LastSlide- See Also:
-
LINK_CustomShow
public static final byte LINK_CustomShow- See Also:
-
LINK_SlideNumber
public static final byte LINK_SlideNumber- See Also:
-
LINK_Url
public static final byte LINK_Url- See Also:
-
LINK_OtherPresentation
public static final byte LINK_OtherPresentation- See Also:
-
LINK_OtherFile
public static final byte LINK_OtherFile- See Also:
-
LINK_NULL
public static final byte LINK_NULL- See Also:
-
-
Method Details
-
getHyperlinkID
public int getHyperlinkID()Gets the link number. You will normally look the ExHyperlink with this number to get the details.- Returns:
- the link number
-
setHyperlinkID
public void setHyperlinkID(int number) Sets the persistent unique identifier of the link- Parameters:
number
- the persistent unique identifier of the link
-
getSoundRef
public int getSoundRef()a reference to a sound in the sound collection. -
setSoundRef
public void setSoundRef(int val) a reference to a sound in the sound collection.- Parameters:
val
- a reference to a sound in the sound collection
-
getAction
public byte getAction()Hyperlink Action.see
ACTION_*
constants for the list of actions- Returns:
- hyperlink action.
-
setAction
public void setAction(byte val) Hyperlink Actionsee
ACTION_*
constants for the list of actions- Parameters:
val
- hyperlink action.
-
getOleVerb
public byte getOleVerb()Only valid when action == OLEAction. OLE verb to use, 0 = first verb, 1 = second verb, etc. -
setOleVerb
public void setOleVerb(byte val) Only valid when action == OLEAction. OLE verb to use, 0 = first verb, 1 = second verb, etc. -
getJump
public byte getJump()Jumpsee
JUMP_*
constants for the list of actions- Returns:
- jump
-
setJump
public void setJump(byte val) Jumpsee
JUMP_*
constants for the list of actions- Parameters:
val
- jump
-
getFlags
public byte getFlags()Flags- Bit 1: Animated. If 1, then button is animated
- Bit 2: Stop sound. If 1, then stop current sound when button is pressed.
- Bit 3: CustomShowReturn. If 1, and this is a jump to custom show, then return to this slide after custom show.
-
setFlags
public void setFlags(byte val) Flags- Bit 1: Animated. If 1, then button is animated
- Bit 2: Stop sound. If 1, then stop current sound when button is pressed.
- Bit 3: CustomShowReturn. If 1, and this is a jump to custom show, then return to this slide after custom show.
-
getHyperlinkType
public byte getHyperlinkType()hyperlink type- Returns:
- hyperlink type
-
setHyperlinkType
public void setHyperlinkType(byte val) hyperlink type- Parameters:
val
- hyperlink type
-
getRecordType
public long getRecordType()Gets the record type.- Specified by:
getRecordType
in classRecord
- Returns:
- the record type.
-
writeOut
Write the contents of the record back, so it can be written to disk- Specified by:
writeOut
in classRecord
- Parameters:
out
- the output stream to write to.- Throws:
IOException
- if an error occurs.
-
getGenericProperties
-