SimpleSaveOptions

Inheritance: java.lang.Object

public abstract class SimpleSaveOptions

This is an abstract base class that allow the user to specify basic options when saving a project into a particular format.

Constructors

ConstructorDescription
SimpleSaveOptions()

Methods

MethodDescription
getSaveFormat()Gets the format in which the document will be saved if this save options object is used.
getTasksComparer()Gets the comparer to sort tasks on Gantt chart and Task Sheet chart.
getTasksFilter()Gets the condition which is used to filter tasks rendered on Gantt, Task Sheet and Task Usage charts.
setTasksComparer(Comparator<Task> value)Sets the comparer to sort tasks on Gantt chart and Task Sheet chart.
setTasksFilter(ICondition<Task> value)Sets the condition which is used to filter tasks rendered on Gantt, Task Sheet and Task Usage charts.

SimpleSaveOptions()

public SimpleSaveOptions()

getSaveFormat()

public final int getSaveFormat()

Gets the format in which the document will be saved if this save options object is used.

Returns: int - the SaveFileFormat in which the document will be saved.

getTasksComparer()

public final Comparator<Task> getTasksComparer()

Gets the comparer to sort tasks on Gantt chart and Task Sheet chart.

Returns: java.util.Comparator<com.aspose.tasks.Task> - the comparer to sort tasks on Gantt chart and Task Sheet chart.

getTasksFilter()

public final ICondition<Task> getTasksFilter()

Gets the condition which is used to filter tasks rendered on Gantt, Task Sheet and Task Usage charts.


If value is not specified the default filter is used which removes non-visible tasks – i.e. descendant tasks of collapsed tasks.

Returns: ICondition - the condition which is used to filter tasks rendered on Gantt, Task Sheet and Task Usage charts.

setTasksComparer(Comparator<Task> value)

public final void setTasksComparer(Comparator<Task> value)

Sets the comparer to sort tasks on Gantt chart and Task Sheet chart.

Parameters:

ParameterTypeDescription
valuejava.util.Comparator<com.aspose.tasks.Task>the comparer to sort tasks on Gantt chart and Task Sheet chart.

setTasksFilter(ICondition<Task> value)

public final void setTasksFilter(ICondition<Task> value)

Sets the condition which is used to filter tasks rendered on Gantt, Task Sheet and Task Usage charts.


If value is not specified the default filter is used which removes non-visible tasks – i.e. descendant tasks of collapsed tasks.

Parameters:

ParameterTypeDescription
valuecom.aspose.tasks.ICondition<com.aspose.tasks.Task>the condition which is used to filter tasks rendered on Gantt, Task Sheet and Task Usage charts.