|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.mpxj.Column
public final class Column
This class represents a column in an MS Project table. The attributes held here describe the layout of the column, along with the title text that has been associated with the column. The title text will either be the default value supplied by MS Project, or it will be a user defined value.
| Field Summary | |
|---|---|
static int |
ALIGN_CENTER
|
static int |
ALIGN_LEFT
Column alignment constants. |
static int |
ALIGN_RIGHT
|
| Constructor Summary | |
|---|---|
Column(ProjectFile project)
Constructor. |
|
| Method Summary | |
|---|---|
int |
getAlignData()
Retrieves a value representing the alignment of data displayed in the column. |
int |
getAlignTitle()
Retrieves a value representing the alignment of the column title text. |
FieldType |
getFieldType()
Retrieves the type data displayed in the column. |
String |
getTitle()
Retrieves the column title. |
String |
getTitle(Locale locale)
Retrieves the column title for the given locale. |
int |
getWidth()
Retrieves the width of the column represented as a number of characters. |
void |
setAlignData(int alignment)
Sets the alignment of the data in the column. |
void |
setAlignTitle(int alignment)
Sets the alignment of the column title. |
void |
setFieldType(FieldType type)
Sets the type data displayed in the column. |
void |
setTitle(String title)
Sets the user defined column title. |
void |
setWidth(int width)
Sets the width of the column in characters. |
String |
toString()
This method dumps the contents of this column as a String. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int ALIGN_LEFT
public static final int ALIGN_CENTER
public static final int ALIGN_RIGHT
| Constructor Detail |
|---|
public Column(ProjectFile project)
project - reference to the parent project| Method Detail |
|---|
public int getAlignData()
public int getAlignTitle()
public FieldType getFieldType()
public String getTitle()
public String getTitle(Locale locale)
locale - required locale for the default column title
public int getWidth()
public void setAlignData(int alignment)
alignment - data alignmentpublic void setAlignTitle(int alignment)
alignment - column title alignmentpublic void setFieldType(FieldType type)
type - field typepublic void setTitle(String title)
title - user defined column titlepublic void setWidth(int width)
width - column widthpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||