View
Inheritance: java.lang.Object
All Implemented Interfaces: java.lang.Comparable
public class View implements Comparable<View>
Represents a view in Project.
Constructors
Constructor | Description |
---|---|
View() | Initializes a new instance of the View class. |
Methods
Method | Description |
---|---|
compareTo(View other) | 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. |
equals(Object obj) | Returns a value indicating whether this instance is equal to a specified object. |
forViewScreen(int viewScreen) | Constructs a new instance of the View class. |
getFilter() | Gets a filter used in a single view. |
getGroup() | Gets a group of the single view. |
getHighlightFilter() | Gets a value indicating whether Microsoft Project highlights the filter for a single view. |
getName() | Gets the name of a View object. |
getPageInfo() | Gets an instance of the PageInfo (getPageInfo()) class. |
getParentProject() | Gets the parent of the View object. |
getScreen() | Gets the screen type for the single view. |
getShowInMenu() | Gets a value indicating whether Microsoft Project shows the single view name in the View or the Other Views drop-down lists in the Ribbon. |
getTable() | Gets a table of the single view. |
getType() | Gets the type of item in the single view, such as tasks or resources. |
getUid() | Gets the unique identifier of a view. |
getVisualObjectsPlacements() | Gets a collection of objects representing placement and appearance of OleObject in the view. |
hashCode() | Returns a hash code value for the instance of the Resource class. |
op_Equality(View a, View b) | Returns a value indicating whether this instance is equal to a specified object. |
op_GreaterThan(View a, View b) | Returns a value indicating whether this instance is greater than a specified object. |
op_GreaterThanOrEqual(View a, View b) | Returns a value indicating whether this instance is greater than or equal to a specified object. |
op_Inequality(View a, View b) | Returns a value indicating whether this instance is not equal to a specified object. |
op_LessThan(View a, View b) | Returns a value indicating whether this instance is less than a specified object. |
op_LessThanOrEqual(View a, View b) | Returns a value indicating whether this instance is less than or equal to a specified object. |
setFilter(Filter value) | Sets a filter used in a single view. |
setGroup(Group value) | Sets a group of the single view. |
setHighlightFilter(boolean value) | Sets a value indicating whether Microsoft Project highlights the filter for a single view. |
setName(String value) | Sets the name of a View object. |
setShowInMenu(boolean value) | Sets a value indicating whether Microsoft Project shows the single view name in the View or the Other Views drop-down lists in the Ribbon. |
setTable(Table value) | Sets a table of the single view. |
View()
public View()
Initializes a new instance of the View class.
compareTo(View other)
public final int compareTo(View other)
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.
Parameters:
Parameter | Type | Description |
---|---|---|
other | View | the specified View object to compare this instance to. |
Returns:
int - A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has these meanings: Value Meaning Less than zero This instance precedes other
in the sort order. Zero This instance occurs in the same position in the sort order as other
. Greater than zero This instance follows other
in the sort order.
equals(Object obj)
public boolean equals(Object obj)
Returns a value indicating whether this instance is equal to a specified object.
Parameters:
Parameter | Type | Description |
---|---|---|
obj | java.lang.Object | The object to compare with this instance. |
Returns: boolean - True if the specified object is a View that has the same Uid value as this instance; otherwise, false.
forViewScreen(int viewScreen)
public static View forViewScreen(int viewScreen)
Constructs a new instance of the View class.
Parameters:
Parameter | Type | Description |
---|---|---|
viewScreen | int | The screen type for which the view can be displayed. |
Returns: View - Constructed view.
getFilter()
public final Filter getFilter()
Gets a filter used in a single view.
Returns: Filter - a filter used in a single view.
getGroup()
public final Group getGroup()
Gets a group of the single view.
Returns: Group - a group of the single view.
getHighlightFilter()
public final boolean getHighlightFilter()
Gets a value indicating whether Microsoft Project highlights the filter for a single view.
Returns: boolean - a value indicating whether Microsoft Project highlights the filter for a single view.
getName()
public final String getName()
Gets the name of a View object.
Returns: java.lang.String - the name of a View object.
getPageInfo()
public final PageInfo getPageInfo()
Gets an instance of the PageInfo
(getPageInfo()) class. Represents page setup data which is present in mpp file format.
Returns:
PageInfo - an instance of the PageInfo
(getPageInfo()) class.
getParentProject()
public final Project getParentProject()
Gets the parent of the View object. Read-only Project.
Returns: Project - the parent of the View object.
getScreen()
public final int getScreen()
Gets the screen type for the single view. Read-only ViewScreen.
Returns: int - the screen type for the single view.
getShowInMenu()
public final boolean getShowInMenu()
Gets a value indicating whether Microsoft Project shows the single view name in the View or the Other Views drop-down lists in the Ribbon.
Returns: boolean - a value indicating whether Microsoft Project shows the single view name in the View or the Other Views drop-down lists in the Ribbon.
getTable()
public final Table getTable()
Gets a table of the single view.
Returns: Table - a table of the single view.
getType()
public final int getType()
Gets the type of item in the single view, such as tasks or resources. Read-only ItemType.
Returns: int - the type of item in the single view, such as tasks or resources.
getUid()
public final int getUid()
Gets the unique identifier of a view.
Returns: int - the unique identifier of a view.
getVisualObjectsPlacements()
public final List<VisualObjectPlacement> getVisualObjectsPlacements()
Gets a collection of objects representing placement and appearance of OleObject in the view.
Returns: java.util.List<com.aspose.tasks.VisualObjectPlacement> - a collection of objects representing placement and appearance of OleObject in the view.
hashCode()
public int hashCode()
Returns a hash code value for the instance of the Resource class.
Returns: int - returns a hash code value for this object.
op_Equality(View a, View b)
public static boolean op_Equality(View a, View b)
Returns a value indicating whether this instance is equal to a specified object.
Parameters:
Parameter | Type | Description |
---|---|---|
a | View | The first view. |
b | View | The second view. |
Returns: boolean - a value indicating whether this instance is equal to a specified object
op_GreaterThan(View a, View b)
public static boolean op_GreaterThan(View a, View b)
Returns a value indicating whether this instance is greater than a specified object.
Parameters:
Parameter | Type | Description |
---|---|---|
a | View | The first view. |
b | View | The second view. |
Returns: boolean - a value indicating whether this instance is greater than a specified object
op_GreaterThanOrEqual(View a, View b)
public static boolean op_GreaterThanOrEqual(View a, View b)
Returns a value indicating whether this instance is greater than or equal to a specified object.
Parameters:
Parameter | Type | Description |
---|---|---|
a | View | The first view. |
b | View | The second view. |
Returns: boolean - a value indicating whether this instance is greater than or equal to a specified object
op_Inequality(View a, View b)
public static boolean op_Inequality(View a, View b)
Returns a value indicating whether this instance is not equal to a specified object.
Parameters:
Parameter | Type | Description |
---|---|---|
a | View | The first view. |
b | View | The second view. |
Returns: boolean - a value indicating whether this instance is not equal to a specified object
op_LessThan(View a, View b)
public static boolean op_LessThan(View a, View b)
Returns a value indicating whether this instance is less than a specified object.
Parameters:
Parameter | Type | Description |
---|---|---|
a | View | The first filter. |
b | View | The second filter. |
Returns: boolean - a value indicating whether this instance is less than a specified object
op_LessThanOrEqual(View a, View b)
public static boolean op_LessThanOrEqual(View a, View b)
Returns a value indicating whether this instance is less than or equal to a specified object.
Parameters:
Parameter | Type | Description |
---|---|---|
a | View | The first view. |
b | View | The second view. |
Returns: boolean - a value indicating whether this instance is less than or equal to a specified object
setFilter(Filter value)
public final void setFilter(Filter value)
Sets a filter used in a single view.
Parameters:
Parameter | Type | Description |
---|---|---|
value | Filter | a filter used in a single view. |
setGroup(Group value)
public final void setGroup(Group value)
Sets a group of the single view.
Parameters:
Parameter | Type | Description |
---|---|---|
value | Group | a group of the single view. |
setHighlightFilter(boolean value)
public final void setHighlightFilter(boolean value)
Sets a value indicating whether Microsoft Project highlights the filter for a single view.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean | a value indicating whether Microsoft Project highlights the filter for a single view. |
setName(String value)
public final void setName(String value)
Sets the name of a View object.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | the name of a View object. |
setShowInMenu(boolean value)
public final void setShowInMenu(boolean value)
Sets a value indicating whether Microsoft Project shows the single view name in the View or the Other Views drop-down lists in the Ribbon.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean | a value indicating whether Microsoft Project shows the single view name in the View or the Other Views drop-down lists in the Ribbon. |
setTable(Table value)
public final void setTable(Table value)
Sets a table of the single view.
Parameters:
Parameter | Type | Description |
---|---|---|
value | Table | a table of the single view. |