com.aspose.tasks

Interfaces

Classes

Exceptions

com.aspose.tasks

Class ResourceViewColumn



  • public class ResourceViewColumn
    extends ViewColumn

    Project's view class used in ResourceUsage view and ResourceSheet view.

    • Constructor Detail

      • ResourceViewColumn

        public ResourceViewColumn(String name,
                                  int width,
                                  ResourceToColumnTextConverter converter,
                                  int field)

        Initializes a new instance of the ResourceViewColumn class.

        Parameters:
        name - Column's name.
        width - Column's width in pixels.
        converter - Resource data to column text converter.
        field - Column field.
      • ResourceViewColumn

        public ResourceViewColumn(String name,
                                  int width,
                                  ResourceToColumnTextConverter converter)

        Initializes a new instance of the ResourceViewColumn class.

        Parameters:
        name - Column's name.
        width - Column's width in pixels.
        converter - Resource data to column text converter.
      • ResourceViewColumn

        public ResourceViewColumn(int width,
                                  int field)

        Initializes a new instance of the ResourceViewColumn class.

        Parameters:
        width - Column width in pixels.
        field - Column field.
    • Method Detail

      • getField

        public int getField()

        Returns column field. Field.

        Specified by:
        getField in class ViewColumn
        Returns:
        column field value.
      • setField

        public void setField(int value)
        Sets column field.
        Specified by:
        setField in class ViewColumn
        Parameters:
        value - column field value.
      • getColumnText

        public String getColumnText(Resource resource)

        Converts current resource to the column text.

        Parameters:
        resource - Current resource.
        Returns:
        The column text.