com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class View

    • Constructor Summary

      Constructors 
      Constructor and Description
      View() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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.
    • Constructor Detail

      • View

        public View()
    • Method Detail

      • getFilter

        public Filter getFilter()

        Gets a Filter object representing the filter used in a single view. Read/write Filter.

        Returns:
        filter used in a view.
      • setFilter

        public void setFilter(Filter value)
        Sets a Filter object representing the filter used in a single view.
        Parameters:
        value - the specified filter.
      • getUid

        public int getUid()

        The unique identifier of a view.

        Returns:
        the unique id of a view.
      • getIndex

        public int getIndex()

        Gets the index of a View object in the Views containing object. Read-only int.

        Returns:
        index of a view in the Views collection.
      • getHighlightFilter

        public boolean getHighlightFilter()

        True if Microsoft Project highlights the filter for a single view. Read/write bool.

        Returns:
        flag value.
      • setHighlightFilter

        public void setHighlightFilter(boolean value)
        Sets highlight flag for a view.
        Parameters:
        value - true if Microsoft Project highlights the filter for a single view; otherwise, false.
      • getName

        public String getName()

        Gets the name of a View object. Read/write String.

        Returns:
        returns the name of the view.
      • setName

        public void setName(String value)

        Gets the name of a View object. Read/write String.

        Parameters:
        value - the specified name of the view.
      • getScreen

        public int getScreen()

        Gets the screen type for the single view. Read-only ViewScreen.

        Returns:
        view screen type.
      • getParentProject

        public Project getParentProject()

        Gets the parent of the View object. Read-only Project.

        Returns:
        parent project.
      • getGroup

        public Group getGroup()

        Gets a Group object representing the group of the single view. Read/write Group.

        Returns:
        the group of a view.
      • setGroup

        public void setGroup(Group value)
        Sets a Group object representing the group of the single view.
        Parameters:
        value - the specified group value.
      • getTable

        public Table getTable()

        Gets a Table object representing the table of the single view. Read/write Table.

        Returns:
        the table of a view.
      • setTable

        public void setTable(Table value)
        Gets a Table object representing the table of the single view.
        Parameters:
        value - the specified table.
      • getType

        public int getType()

        Gets the type of item in the single view, such as tasks or resources. Read-only ItemType.

        Returns:
        view type.
      • getShowInMenu

        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.

        Returns:
        flag value.
      • setShowInMenu

        public 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.
        Parameters:
        value - the specified flag value.
      • getPageInfo

        public PageInfo getPageInfo()

        An instance of the PageInfo class. Represents page setup data which is present in mpp file format.

        Returns:
        returns an instance of the PageInfo class which represents page setup data.
      • equals

        public boolean equals(Object obj)

        Returns a value indicating whether this instance is equal to a specified object.

        Overrides:
        equals in class Object
        Parameters:
        obj - The object to compare with this instance.
        Returns:
        <b>True</b> if the specified object is a View that has the same Uid value as this instance; otherwise, <b>false</b>.
      • hashCode

        public int hashCode()
        Returns a hash code for this View.
        Overrides:
        hashCode in class Object
        Returns:
        Returns a hash code value for this object.
      • compareTo

        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.

        Specified by:
        compareTo in interface Comparable
        Parameters:
        obj - An object to compare with this instance.
        Returns:
        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 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.