Class OleObject
- java.lang.Object
-
- com.aspose.tasks.OleObject
-
public class OleObject extends Object
Represents an OLE object which can be inserter into Gantt Chart View of an MPP file.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getApplicationName()
Gets the application name to open the embedded object with.byte[]
getContent()
Gets the embedded file's data; null if no data was embedded.boolean
getDisplayAsIcon()
Gets a flag indicating that OLE object should be shown either as an icon or as its regular picture.String
getFileFormat()
Gets the file format of the embedded object.String
getFullPath()
Gets the full path of the inserted object.int
getId()
Gets the object id.String
getLabel()
Gets the label of the inserted object.boolean
getLinked()
Gets a value indicating whether the project file contains only a link to the actual data stored at the link source.String
getName()
Gets the name of the instance of the OLE object.String
getTemporaryFile()
Gets the path to the temporary file of the inserted object.View
getView()
void
setApplicationName(String value)
Sets the application name to open the embedded object with.void
setContent(byte[] value)
Sets the embedded file's data; null if no data was embedded.void
setDisplayAsIcon(boolean value)
Sets a flag indicating that OLE object should be shown either as an icon or as its regular picture.void
setFileFormat(String value)
Sets the file format of the embedded object.void
setFullPath(String value)
Sets the full path of the inserted object.void
setId(int value)
Sets the object id.void
setLabel(String value)
Sets the label of the inserted object.void
setName(String value)
Sets the name of the instance of the OLE object.void
setTemporaryFile(String value)
Sets the path to the temporary file of the inserted object.void
setView(View value)
-
-
-
Constructor Detail
-
OleObject
public OleObject()
Initializes a new instance of the
OleObject
class.
-
-
Method Detail
-
getApplicationName
public final String getApplicationName()
Gets the application name to open the embedded object with.
- Returns:
- the application name to open the embedded object with.
-
setApplicationName
public final void setApplicationName(String value)
Sets the application name to open the embedded object with.
- Parameters:
value
- the application name to open the embedded object with.
-
getContent
public final byte[] getContent()
Gets the embedded file's data; null if no data was embedded.
- Returns:
- the embedded file's data; null if no data was embedded.
-
setContent
public final void setContent(byte[] value)
Sets the embedded file's data; null if no data was embedded.
- Parameters:
value
- the embedded file's data; null if no data was embedded.
-
getDisplayAsIcon
public final boolean getDisplayAsIcon()
Gets a flag indicating that OLE object should be shown either as an icon or as its regular picture.
- Returns:
- a flag indicating that OLE object should be shown either as an icon or as its regular picture.
-
setDisplayAsIcon
public final void setDisplayAsIcon(boolean value)
Sets a flag indicating that OLE object should be shown either as an icon or as its regular picture.
- Parameters:
value
- a flag indicating that OLE object should be shown either as an icon or as its regular picture.
-
getFileFormat
public final String getFileFormat()
Gets the file format of the embedded object.
- Returns:
- the file format of the embedded object.
-
setFileFormat
public final void setFileFormat(String value)
Sets the file format of the embedded object.
- Parameters:
value
- the file format of the embedded object.
-
getFullPath
public final String getFullPath()
Gets the full path of the inserted object.
- Returns:
- the full path of the inserted object.
-
setFullPath
public final void setFullPath(String value)
Sets the full path of the inserted object.
- Parameters:
value
- the full path of the inserted object.
-
getId
public final int getId()
Gets the object id.
- Returns:
- the object id.
-
setId
public final void setId(int value)
Sets the object id.
- Parameters:
value
- the object id.
-
getLabel
public final String getLabel()
Gets the label of the inserted object.
- Returns:
- the label of the inserted object.
-
setLabel
public final void setLabel(String value)
Sets the label of the inserted object.
- Parameters:
value
- the label of the inserted object.
-
getLinked
public final boolean getLinked()
Gets a value indicating whether the project file contains only a link to the actual data stored at the link source.
- Returns:
- a value indicating whether the project file contains only a link to the actual data stored at the link source.
-
getName
public final String getName()
Gets the name of the instance of the OLE object.
- Returns:
- the name of the instance of the OLE object.
-
setName
public final void setName(String value)
Sets the name of the instance of the OLE object.
- Parameters:
value
- the name of the instance of the OLE object.
-
getTemporaryFile
public final String getTemporaryFile()
Gets the path to the temporary file of the inserted object.
- Returns:
- the path to the temporary file of the inserted object.
-
setTemporaryFile
public final void setTemporaryFile(String value)
Sets the path to the temporary file of the inserted object.
- Parameters:
value
- the path to the temporary file of the inserted object.
-
getView
public final View getView()
Gets the instance of the
View
(getView()
/setView(View)
) class the inserted object belongs to.- Returns:
- the instance of the
View
(getView()
/setView(View)
) class the inserted object belongs to.
-
setView
public final void setView(View value)
Sets the instance of the
View
(getView()
/setView(View)
) class the inserted object belongs to.- Parameters:
value
- the instance of theView
(getView()
/setView(View)
) class the inserted object belongs to.
-
-