com.jaxfront.core.xui
Class ColumnInfo

java.lang.Object
  extended by com.jaxfront.core.xui.ColumnInfo
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class ColumnInfo
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

A lineInfo holds information how to display a row/column within a JTable.

See Also:
FlipOrientationTableModel, Serialized Form

Field Summary
static int ALIGN_BOTTOM
           
static int ALIGN_CENTER
           
static int ALIGN_LEFT
           
static int ALIGN_MIDDLE
           
static int ALIGN_RIGHT
           
static int ALIGN_TOP
           
 
Constructor Summary
ColumnInfo(Type holder, int index, java.lang.String name)
          Create a line info by name only.Used when constructing a "default" table info
ColumnInfo(Type holder, int index, java.lang.String name, java.lang.String formulaExpression)
          Create a line info by name only.
ColumnInfo(Type holder, int index, java.lang.String name, java.lang.String formulaExpression, java.lang.String iconExpression, int lineWidth, boolean allowContextNavigation, boolean editorAlwaysVisible, java.lang.String contextFormExType)
          Main constructor using
ColumnInfo(Type holder, int index, java.lang.String name, java.lang.String formulaExpression, java.lang.String iconExpression, int lineWidth, boolean allowContextNavigation, boolean editorAlwaysVisible, java.lang.String contextFormExType, int hAlign, int vAlign, java.lang.String cssHeaderStyle, java.lang.String cssStyle)
          Main constructor using
 
Method Summary
 void addFormulaExpression(FormulaExpression aFormulaExpression)
           
 boolean allowContextNavigation()
           
 ColumnInfo copy(Type type)
           
 java.lang.Object evalFormulaObject(int index)
          Evaluate the formula expression for a certain column (index).
 java.lang.Object getCachedValue(int index)
           
 FormulaExpression getContextFormulaExpression()
           
 java.lang.String getCSSHeaderStyle()
           
 java.lang.String getCSSStyle()
           
 java.lang.String getFormulaExpression()
           
 java.util.Vector getFormulaExpressions()
           
 java.lang.String getHAlign()
           
 java.lang.String getHAlignHeader()
           
 Type getHolder()
           
 int getHorizontalAlign()
           
 java.lang.String getIconExpression()
           
 java.util.Vector getIconExpressions()
           
 int getLineWidth()
          Return the line's width.
 java.lang.String getName()
          Get the name of the lineInfo.
 java.lang.String getNamePDF()
           
 java.lang.String getToolTip(Type currentType)
          Returns the NLS Tooltip text for the given list item type.
 java.lang.String getVAlign()
           
 java.lang.String getVAlignHeader()
           
 int getVerticalAlign()
           
 boolean isEditorAlwaysVisible()
           
 boolean isUsingDefaultRendering()
           
 boolean isXUIcontrolled()
          If the line info was created as default, ie without xuiType, false is returned, otherwise true.
 void reset()
           
 void setCSSHeaderStyle(java.lang.String cssStyle)
           
 void setCSSStyle(java.lang.String cssStyle)
           
 void setFormulaExpressions(java.util.Vector new_formulaExpressions)
           
 void setHorizontalAlign(int align)
           
 void setIconExpressions(java.util.Vector iconExpressions)
           
 void setLineWidth(int lineWidth)
           
 void setUsingDefaultRendering(boolean new_isUsingDefaultRendering)
           
 void setVerticalAlign(int align)
           
 void swapFormula(int from, int to)
           
 java.lang.String toString()
           
 void updateLine(Type type, long modus)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ALIGN_BOTTOM

public static final int ALIGN_BOTTOM
See Also:
Constant Field Values

ALIGN_CENTER

public static final int ALIGN_CENTER
See Also:
Constant Field Values

ALIGN_LEFT

public static final int ALIGN_LEFT
See Also:
Constant Field Values

ALIGN_MIDDLE

public static final int ALIGN_MIDDLE
See Also:
Constant Field Values

ALIGN_RIGHT

public static final int ALIGN_RIGHT
See Also:
Constant Field Values

ALIGN_TOP

public static final int ALIGN_TOP
See Also:
Constant Field Values
Constructor Detail

ColumnInfo

public ColumnInfo(Type holder,
                  int index,
                  java.lang.String name)
Create a line info by name only.Used when constructing a "default" table info


ColumnInfo

public ColumnInfo(Type holder,
                  int index,
                  java.lang.String name,
                  java.lang.String formulaExpression)
Create a line info by name only. Used when constructing a "default" table info


ColumnInfo

public ColumnInfo(Type holder,
                  int index,
                  java.lang.String name,
                  java.lang.String formulaExpression,
                  java.lang.String iconExpression,
                  int lineWidth,
                  boolean allowContextNavigation,
                  boolean editorAlwaysVisible,
                  java.lang.String contextFormExType)
Main constructor using

Parameters:
name - The "name" of the line Info
xuiType - The XUI Type that will influence the FormulaExpression used for evaluating this line via XPath
lineWidth - The width the line should have
allowContextNavigation - defines if the column/row allows context navigation (used for key/keyRef relationships)
contextFormExType - a xui type that represents a formula expression for the contextView displayed in the current column/row

ColumnInfo

public ColumnInfo(Type holder,
                  int index,
                  java.lang.String name,
                  java.lang.String formulaExpression,
                  java.lang.String iconExpression,
                  int lineWidth,
                  boolean allowContextNavigation,
                  boolean editorAlwaysVisible,
                  java.lang.String contextFormExType,
                  int hAlign,
                  int vAlign,
                  java.lang.String cssHeaderStyle,
                  java.lang.String cssStyle)
Main constructor using

Parameters:
name - The "name" of the line Info
xuiType - The XUI Type that will influence the FormulaExpression used for evaluating this line via XPath
lineWidth - The width the line should have
allowContextNavigation - defines if the column/row allows context navigation (used for key/keyRef relationships)
contextFormExType - a xui type that represents a formula expression for the contextView displayed in the current column/row
Method Detail

addFormulaExpression

public void addFormulaExpression(FormulaExpression aFormulaExpression)

allowContextNavigation

public boolean allowContextNavigation()

copy

public ColumnInfo copy(Type type)

evalFormulaObject

public java.lang.Object evalFormulaObject(int index)
Evaluate the formula expression for a certain column (index). If there is a icon expression defined, return an object array with the value (first element) and the icon-name (as second element).

Parameters:
index - column

getCachedValue

public java.lang.Object getCachedValue(int index)
Returns:
Returns the _value.

getContextFormulaExpression

public FormulaExpression getContextFormulaExpression()

getCSSHeaderStyle

public java.lang.String getCSSHeaderStyle()

getCSSStyle

public java.lang.String getCSSStyle()

getFormulaExpression

public java.lang.String getFormulaExpression()

getFormulaExpressions

public java.util.Vector getFormulaExpressions()

getHAlign

public java.lang.String getHAlign()

getHAlignHeader

public java.lang.String getHAlignHeader()

getHolder

public Type getHolder()

getHorizontalAlign

public int getHorizontalAlign()

getIconExpression

public java.lang.String getIconExpression()

getIconExpressions

public java.util.Vector getIconExpressions()

getLineWidth

public int getLineWidth()
Return the line's width.


getName

public java.lang.String getName()
Get the name of the lineInfo.


getNamePDF

public java.lang.String getNamePDF()

getToolTip

public java.lang.String getToolTip(Type currentType)
Returns the NLS Tooltip text for the given list item type.

Parameters:
currentType - a given list item type
Returns:
the NLS Tooltip text

getVAlign

public java.lang.String getVAlign()

getVAlignHeader

public java.lang.String getVAlignHeader()

getVerticalAlign

public int getVerticalAlign()

isEditorAlwaysVisible

public boolean isEditorAlwaysVisible()

isUsingDefaultRendering

public boolean isUsingDefaultRendering()

isXUIcontrolled

public boolean isXUIcontrolled()
If the line info was created as default, ie without xuiType, false is returned, otherwise true.


reset

public void reset()

setCSSHeaderStyle

public void setCSSHeaderStyle(java.lang.String cssStyle)

setCSSStyle

public void setCSSStyle(java.lang.String cssStyle)

setFormulaExpressions

public void setFormulaExpressions(java.util.Vector new_formulaExpressions)

setHorizontalAlign

public void setHorizontalAlign(int align)

setIconExpressions

public void setIconExpressions(java.util.Vector iconExpressions)

setLineWidth

public void setLineWidth(int lineWidth)

setUsingDefaultRendering

public void setUsingDefaultRendering(boolean new_isUsingDefaultRendering)

setVerticalAlign

public void setVerticalAlign(int align)

swapFormula

public void swapFormula(int from,
                        int to)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

updateLine

public void updateLine(Type type,
                       long modus)