ALBPM Process API

fuego.papi
Class Presentation.Column

java.lang.Object
  extended by fuego.papi.Presentation.Column
All Implemented Interfaces:
Serializable
Enclosing interface:
Presentation

public static class Presentation.Column
extends Object
implements Serializable

Column contains every attribute for a column, the main idea is to get and keep all the neccesary info, like size and id etc.

See Also:
Serialized Form

Constructor Summary
Presentation.Column(String variableId, int size)
           
Presentation.Column(String variableId, int size, ColumnFormat columnFormat)
           
Presentation.Column(VarDefinition varDefinition)
          Constructor to create a column.
 
Method Summary
 ColumnFormat getColumnFormat()
          Gets the format of this column
 String getFormattedValue(Object value, Locale locale)
          Gets the value received formatted following the variable definition for this column.
 String getFormattedValue(Object value, Locale locale, PresentationColumnFormat columFormat)
          Gets the value received formatted by the given column format.
 String getId()
          Returns the key of this column.
 String getLabel(Locale locale)
          Returns the localized label for this column.
 int getSize()
          Returns the size of this column.
 VarDefinition getVarDefinition()
           
 void setColumnFormat(ColumnFormat columnFormat)
          Sets the format of this column
 void setSize(int size)
          Sets the size of this column.
 void setVarDefinition(VarDefinition varDefinition)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Presentation.Column

public Presentation.Column(VarDefinition varDefinition)
Constructor to create a column.

Parameters:
varDefinition - The definition of the objects that will be paced inside this column.

Presentation.Column

public Presentation.Column(String variableId,
                           int size)

Presentation.Column

public Presentation.Column(String variableId,
                           int size,
                           ColumnFormat columnFormat)
Method Detail

getFormattedValue

public String getFormattedValue(Object value,
                                Locale locale)
Gets the value received formatted following the variable definition for this column.

Parameters:
value - The value to be formatted
locale - The locale to be used to format the value
Returns:
A String with the formatted value

getFormattedValue

public String getFormattedValue(Object value,
                                Locale locale,
                                PresentationColumnFormat columFormat)
Gets the value received formatted by the given column format.

Parameters:
value - The value to be formatted
locale - The locale to be used to format the value
columFormat - The custom formatter
Returns:
A String with the formatted value

getId

public String getId()
Returns the key of this column. example : "Description"


getLabel

public String getLabel(Locale locale)
Returns the localized label for this column.


setSize

public void setSize(int size)
Sets the size of this column.

Parameters:
size - The new size of this column.

getSize

public int getSize()
Returns the size of this column.

Returns:
int The size of this column

setVarDefinition

public void setVarDefinition(VarDefinition varDefinition)

getVarDefinition

public VarDefinition getVarDefinition()

getColumnFormat

public ColumnFormat getColumnFormat()
Gets the format of this column

Returns:
the format

setColumnFormat

public void setColumnFormat(ColumnFormat columnFormat)
Sets the format of this column

Parameters:
columnFormat -

ALBPM Process API

© Copyright 1996/2005 Fuego Inc. All Rights Reserved