public final class Column extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ALIGN_CENTER |
static int |
ALIGN_LEFT
Column alignment constants.
|
static int |
ALIGN_RIGHT |
Constructor and Description |
---|
Column(ProjectFile project)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final int ALIGN_LEFT
public static final int ALIGN_CENTER
public static final int ALIGN_RIGHT
public Column(ProjectFile project)
project
- reference to the parent projectpublic int getAlignData()
public int getAlignTitle()
public FieldType getFieldType()
public String getTitle()
public String getTitle(Locale locale)
locale
- required locale for the default column titlepublic 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 widthCopyright © 2000–2024 Packwood Software. All rights reserved.