public class Filter extends Object implements Comparable<Filter>
Represents a filter in Project.
Constructor and Description |
---|
Filter() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Filter other)
Compares this instance to the specified instance of the
Filter class and returns an indication of their
relative order. |
boolean |
equals(Object obj)
Returns a value indicating whether this instance is equal to a specified object.
|
FilterCriteria |
getCriteria()
Gets the criteria that tasks or resources must meet to be displayed in MSP view.
|
int |
getFilterType()
Gets the type of the filter.
|
int |
getIndex()
Gets the index of a
Filter object in the Filters containing object. |
String |
getName()
Gets the name of a Filter object.
|
Project |
getParentProject()
Gets the parent of the Filter object.
|
boolean |
getShowInMenu()
Gets a value indicating whether project shows the filter name in the Filter drop-down list on the View tab of the
Ribbon.
|
boolean |
getShowRelatedSummaryRows()
Gets a value indicating whether related summary rows are displayed for the filter.
|
int |
getUid()
Gets the unique identifier of a filter.
|
int |
hashCode()
Returns a hash code for this Filter.
|
void |
setCriteria(FilterCriteria value)
Sets the criteria that tasks or resources must meet to be displayed in MSP view.
|
void |
setName(String value)
Sets the name of a Filter object.
|
void |
setShowInMenu(boolean value)
Sets a value indicating whether project shows the filter name in the Filter drop-down list on the View tab of the
Ribbon.
|
void |
setShowRelatedSummaryRows(boolean value)
Sets a value indicating whether related summary rows are displayed for the filter.
|
public final int compareTo(Filter other)
Compares this instance to the specified instance of the Filter
class and returns an indication of their
relative order.
compareTo
in interface Comparable<Filter>
other
- the specified instance of the Filter
class to compare to this object.public final FilterCriteria getCriteria()
Gets the criteria that tasks or resources must meet to be displayed in MSP view.
public final void setCriteria(FilterCriteria value)
Sets the criteria that tasks or resources must meet to be displayed in MSP view.
value
- the criteria that tasks or resources must meet to be displayed in MSP view.public final int getFilterType()
Gets the type of the filter.
public final int getIndex()
Gets the index of a Filter
object in the Filters containing object.
Filter
object in the Filters containing object.public final String getName()
Gets the name of a Filter object.
public final void setName(String value)
Sets the name of a Filter object.
value
- the name of a Filter object.public final Project getParentProject()
Gets the parent of the Filter object.
public final boolean getShowInMenu()
Gets a value indicating whether project shows the filter name in the Filter drop-down list on the View tab of the Ribbon.
public final void setShowInMenu(boolean value)
Sets a value indicating whether project shows the filter name in the Filter drop-down list on the View tab of the Ribbon.
value
- a value indicating whether project shows the filter name in the Filter drop-down list on the
View tab of the Ribbon.public final boolean getShowRelatedSummaryRows()
Gets a value indicating whether related summary rows are displayed for the filter.
public final void setShowRelatedSummaryRows(boolean value)
Sets a value indicating whether related summary rows are displayed for the filter.
value
- a value indicating whether related summary rows are displayed for the filter.public final int getUid()
Gets the unique identifier of a filter.
public boolean equals(Object obj)
Returns a value indicating whether this instance is equal to a specified object.