ResourceViewColumn
Contents
[
Hide
]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
Constructor | Description |
---|---|
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
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
name | java.lang.String | Column’s name. |
width | int | Column’s width in pixels. |
converter | ResourceToColumnTextConverter | Resource data to column text converter. |
field | int | Column 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:
Parameter | Type | Description |
---|---|---|
name | java.lang.String | Column’s name. |
width | int | Column’s width in pixels. |
converter | ResourceToColumnTextConverter | Resource 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:
Parameter | Type | Description |
---|---|---|
width | int | Column width in pixels. |
field | int | Column field. |
getColumnText(Resource resource)
public final String getColumnText(Resource resource)
Converts current resource to the column text.
Parameters:
Parameter | Type | Description |
---|---|---|
resource | Resource | Current 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:
Parameter | Type | Description |
---|---|---|
value | int | column field value. |