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.

Version:
1.60
See Also:
FlipOrientationTableModel, Serialized Form

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
 
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 getFormulaExpression()
           
 java.util.Vector getFormulaExpressions()
           
 Type getHolder()
           
 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.
 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 setFormulaExpressions(java.util.Vector new_formulaExpressions)
           
 void setUsingDefaultRendering(boolean new_isUsingDefaultRendering)
           
 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
 

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
Method Detail

addFormulaExpression

public void addFormulaExpression(FormulaExpression aFormulaExpression)

getContextFormulaExpression

public FormulaExpression getContextFormulaExpression()

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

getFormulaExpression

public java.lang.String getFormulaExpression()

getIconExpression

public java.lang.String getIconExpression()

getFormulaExpressions

public java.util.Vector getFormulaExpressions()

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

isUsingDefaultRendering

public boolean isUsingDefaultRendering()

isEditorAlwaysVisible

public boolean isEditorAlwaysVisible()

isXUIcontrolled

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


setFormulaExpressions

public void setFormulaExpressions(java.util.Vector new_formulaExpressions)

setUsingDefaultRendering

public void setUsingDefaultRendering(boolean new_isUsingDefaultRendering)

swapFormula

public void swapFormula(int from,
                        int to)

updateLine

public void updateLine(Type type,
                       long modus)

allowContextNavigation

public boolean allowContextNavigation()

reset

public void reset()

toString

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

copy

public ColumnInfo copy(Type type)

getHolder

public Type getHolder()

getCachedValue

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