public class View extends Object implements Comparable
Represents a view in Project.
Constructor and Description |
---|
View() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object obj)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
|
boolean |
equals(Object obj)
Returns a value indicating whether this instance is equal to a specified object.
|
Filter |
getFilter()
Gets a Filter object representing the filter used in a single view.
|
Group |
getGroup()
Gets a Group object representing the group of the single view.
|
boolean |
getHighlightFilter()
True if Microsoft Project highlights the filter for a single view.
|
int |
getIndex()
Gets the index of a View object in the Views containing object.
|
String |
getName()
Gets the name of a View object.
|
PageInfo |
getPageInfo()
An instance of the
PageInfo class. |
Project |
getParentProject()
Gets the parent of the View object.
|
int |
getScreen()
Gets the screen type for the single view.
|
boolean |
getShowInMenu()
True if Project shows the single view name in the View or the Other Views drop-down lists in the Ribbon.
|
Table |
getTable()
Gets a Table object representing the table of the single view.
|
int |
getType()
Gets the type of item in the single view, such as tasks or resources.
|
int |
getUid()
The unique identifier of a view.
|
int |
hashCode()
Returns a hash code for this View.
|
void |
setFilter(Filter value)
Sets a Filter object representing the filter used in a single view.
|
void |
setGroup(Group value)
Sets a Group object representing the group of the single view.
|
void |
setHighlightFilter(boolean value)
Sets highlight flag for a view.
|
void |
setName(String value)
Gets the name of a View object.
|
void |
setShowInMenu(boolean value)
Sets a flag which specifies whether to show the single view name in the View or the Other Views drop-down lists in the Ribbon.
|
void |
setTable(Table value)
Gets a Table object representing the table of the single view.
|
public int compareTo(Object obj)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
compareTo
in interface Comparable
obj
- An object to compare with this instance.obj
in the sort order. Zero This instance occurs in the same position in the sort order as obj
. Greater than zero This instance follows obj
in the sort order.public boolean equals(Object obj)
Returns a value indicating whether this instance is equal to a specified object.
public Filter getFilter()
Gets a Filter object representing the filter used in a single view.
Read/write Filter
.
public void setFilter(Filter value)
value
- the specified filter.public Group getGroup()
Gets a Group object representing the group of the single view.
Read/write Group
.
public void setGroup(Group value)
value
- the specified group value.public boolean getHighlightFilter()
True if Microsoft Project highlights the filter for a single view.
Read/write bool
.
public void setHighlightFilter(boolean value)
value
- true if Microsoft Project highlights the filter for a single view; otherwise, false.public int getIndex()
Gets the index of a View object in the Views containing object.
Read-only int
.
public String getName()
Gets the name of a View object. Read/write String.
public void setName(String value)
Gets the name of a View object. Read/write String.
value
- the specified name of the view.public PageInfo getPageInfo()
An instance of the PageInfo
class. Represents page setup data which is present in mpp file format.
PageInfo
class which represents page setup data.public Project getParentProject()
Gets the parent of the View object.
Read-only Project
.
public int getScreen()
Gets the screen type for the single view.
Read-only ViewScreen
.
public boolean getShowInMenu()
True if Project shows the single view name in the View or the Other Views drop-down lists in the Ribbon. Read/write Boolean.
public void setShowInMenu(boolean value)
value
- the specified flag value.public Table getTable()
Gets a Table object representing the table of the single view.
Read/write Table
.
public void setTable(Table value)
value
- the specified table.public int getType()
Gets the type of item in the single view, such as tasks or resources.
Read-only ItemType
.
public int getUid()
The unique identifier of a view.
Copyright (c) 2008-2018 Aspose Pty Ltd. All Rights Reserved.