ResourceViewColumn

Inheritance: java.lang.Object, com.aspose.tasks.ViewColumn

public final class ResourceViewColumn extends ViewColumn

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

Constructors

ConstructorDescription
ResourceViewColumn(String name, int width, ResourceToColumnTextConverter converter, int field)Initializes a new instance of the ResourceViewColumn class.
ResourceViewColumn(String name, int width, ResourceToColumnTextConverter converter)Initializes a new instance of the ResourceViewColumn class.
ResourceViewColumn(int width, int field)Initializes a new instance of the ResourceViewColumn class.

Methods

MethodDescription
getColumnText(Resource resource)Converts current resource to the column text.
getField()Returns column field.
setField(int value)Sets column field.

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

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

Initializes a new instance of the ResourceViewColumn class.

Parameters:

ParameterTypeDescription
namejava.lang.StringColumn’s name.
widthintColumn’s width in pixels.
converterResourceToColumnTextConverterResource data to column text converter.
fieldintColumn field.

ResourceViewColumn(String name, int width, ResourceToColumnTextConverter converter)

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

Initializes a new instance of the ResourceViewColumn class.

Parameters:

ParameterTypeDescription
namejava.lang.StringColumn’s name.
widthintColumn’s width in pixels.
converterResourceToColumnTextConverterResource data to column text converter.

ResourceViewColumn(int width, int field)

public ResourceViewColumn(int width, int field)

Initializes a new instance of the ResourceViewColumn class.

Parameters:

ParameterTypeDescription
widthintColumn width in pixels.
fieldintColumn field.

getColumnText(Resource resource)

public final String getColumnText(Resource resource)

Converts current resource to the column text.

Parameters:

ParameterTypeDescription
resourceResourceCurrent resource.

Returns: java.lang.String - The column text.

getField()

public int getField()

Returns column field. Field.

Returns: int - column field value.

setField(int value)

public void setField(int value)

Sets column field.

Parameters:

ParameterTypeDescription
valueintcolumn field value.