wt.clients.csm.widgets
Class IBAHoldersToTableVector

java.lang.Object
  extended bywt.clients.csm.widgets.IBAHoldersToTableVector

public class IBAHoldersToTableVector
extends Object


Field Summary
private  String col1header
           
private  Vector columnDefinitions
           
private  Vector columnEmptyVector
           
private  int columnWidthPadding
           
private  String CONSTRAINT_MAPPER_RESOURCE
           
private  DefaultAttributeContainer[] containers
           
private  RankingContextDefaultView currentContext
           
private  Vector data
           
private static boolean debug
           
private  FontMetrics fmh
           
private  FontMetrics fmt
           
private  Vector holders
           
private  Vector maxColumnWidth
           
(package private)  MeasurementSystemDefaultView ms
           
private  Vector orderedAttributes
           
static int PART_ICON_WIDTH
           
private  int rankcol
           
private static String RANKING_CONTEXT_KEY_PATTERN
           
private static String RANKING_VALUE_KEY_PATTERN
           
private  Vector sortedColumns
           
private  int startCount
           
private  AbstractNavStructView structure
           
private  String targetClassName
           
private  String WIDGETS_RESOURCE
           
private  ResourceBundle wresource
           
 
Constructor Summary
IBAHoldersToTableVector(QueryResultsIBAHolder[] holders, Vector attributes, MeasurementSystemDefaultView ms, String targetClassName, int start)
           
IBAHoldersToTableVector(Vector vectorOfHolders, MeasurementSystemDefaultView ms, String targetClassName, int start)
           
IBAHoldersToTableVector(Vector vectorOfHolders, Vector attributes, MeasurementSystemDefaultView ms, String targetClassName, int start)
           
IBAHoldersToTableVector(Vector vectorOfHolders, Vector attributes, MeasurementSystemDefaultView ms, String targetClassName, int start, AbstractNavStructView structure)
           
IBAHoldersToTableVector(Vector vectorOfHolders, Vector attributes, MeasurementSystemDefaultView ms, String targetClassName, int start, AbstractNavStructView structure, RankingContextDefaultView rankingContext)
           
 
Method Summary
private  void addSortedValues(Vector v, AbstractValueView[] values, boolean order)
           
private  void displayAllValues(Object obj)
           
private  void doConversion()
           
private  void exportData(PrintWriter out)
           
private  void exportHeader(PrintWriter out)
           
 void exportResults(PrintWriter out)
           
protected  void fillOrderedColumns(Vector attributes)
           
private  int findInsertPosition(Vector v, AbstractValueView obj, boolean order)
           
 int findRankingColumn(String classname)
           
static AttributeDefDefaultView getAttributeDefDefaultViewByPath(String defPath)
           
private  boolean getBooleanValue(int count)
           
 AttributeDefDefaultView getColumnAttribute(int index)
           
 Vector getColumnVector()
           
private  Object getCurrentContextData(Vector v)
           
 Vector getDataVector()
           
private  String getDefinitionName(Object obj, boolean exportflag)
           
private  String getDisplayString(Object obj)
           
 QueryResultsIBAHolder getIBAHolder(int row)
           
 Vector getIBAHolders(int[] rows)
           
 Vector getMaxColumnWidth()
           
private  int getMaxValueWidth(Vector v)
           
 int getRankingColumn()
           
static String getRankingContextAttribute(String rankableClassname)
           
static String getRankingValueAttribute(String rankableClassname)
           
protected  String getValueDisplayString(Object obj)
           
private  int getValueWidth(Object value)
           
protected  void initResource()
           
private  void insertFirstColumn()
           
 void printAllInfo()
           
private  void removeEmptyOrderedColumns()
           
 int resultCount()
           
 void updateIBAHolderAtIndex(int index, Object heavyObj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

private static boolean debug

CONSTRAINT_MAPPER_RESOURCE

private String CONSTRAINT_MAPPER_RESOURCE

WIDGETS_RESOURCE

private String WIDGETS_RESOURCE

RANKING_VALUE_KEY_PATTERN

private static final String RANKING_VALUE_KEY_PATTERN
See Also:
Constant Field Values

RANKING_CONTEXT_KEY_PATTERN

private static final String RANKING_CONTEXT_KEY_PATTERN
See Also:
Constant Field Values

wresource

private ResourceBundle wresource

holders

private Vector holders

containers

private DefaultAttributeContainer[] containers

data

private Vector data

columnDefinitions

private Vector columnDefinitions

orderedAttributes

private Vector orderedAttributes

columnEmptyVector

private Vector columnEmptyVector

sortedColumns

private Vector sortedColumns

maxColumnWidth

private Vector maxColumnWidth

targetClassName

private String targetClassName

rankcol

private int rankcol

fmt

private FontMetrics fmt

fmh

private FontMetrics fmh

columnWidthPadding

private int columnWidthPadding

startCount

private int startCount

col1header

private String col1header

ms

MeasurementSystemDefaultView ms

structure

private AbstractNavStructView structure

currentContext

private RankingContextDefaultView currentContext

PART_ICON_WIDTH

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

IBAHoldersToTableVector

public IBAHoldersToTableVector(QueryResultsIBAHolder[] holders,
                               Vector attributes,
                               MeasurementSystemDefaultView ms,
                               String targetClassName,
                               int start)

IBAHoldersToTableVector

public IBAHoldersToTableVector(Vector vectorOfHolders,
                               Vector attributes,
                               MeasurementSystemDefaultView ms,
                               String targetClassName,
                               int start,
                               AbstractNavStructView structure,
                               RankingContextDefaultView rankingContext)

IBAHoldersToTableVector

public IBAHoldersToTableVector(Vector vectorOfHolders,
                               Vector attributes,
                               MeasurementSystemDefaultView ms,
                               String targetClassName,
                               int start,
                               AbstractNavStructView structure)

IBAHoldersToTableVector

public IBAHoldersToTableVector(Vector vectorOfHolders,
                               Vector attributes,
                               MeasurementSystemDefaultView ms,
                               String targetClassName,
                               int start)

IBAHoldersToTableVector

public IBAHoldersToTableVector(Vector vectorOfHolders,
                               MeasurementSystemDefaultView ms,
                               String targetClassName,
                               int start)
Method Detail

initResource

protected void initResource()

fillOrderedColumns

protected void fillOrderedColumns(Vector attributes)

insertFirstColumn

private void insertFirstColumn()

doConversion

private void doConversion()

getCurrentContextData

private Object getCurrentContextData(Vector v)

getDefinitionName

private String getDefinitionName(Object obj,
                                 boolean exportflag)

getBooleanValue

private boolean getBooleanValue(int count)

removeEmptyOrderedColumns

private void removeEmptyOrderedColumns()

getColumnVector

public Vector getColumnVector()

getDataVector

public Vector getDataVector()

exportResults

public void exportResults(PrintWriter out)

exportHeader

private void exportHeader(PrintWriter out)

exportData

private void exportData(PrintWriter out)

getDisplayString

private String getDisplayString(Object obj)

getValueDisplayString

protected String getValueDisplayString(Object obj)

getColumnAttribute

public AttributeDefDefaultView getColumnAttribute(int index)

getRankingColumn

public int getRankingColumn()

findRankingColumn

public int findRankingColumn(String classname)

getAttributeDefDefaultViewByPath

public static AttributeDefDefaultView getAttributeDefDefaultViewByPath(String defPath)

getIBAHolder

public QueryResultsIBAHolder getIBAHolder(int row)

getIBAHolders

public Vector getIBAHolders(int[] rows)

getMaxValueWidth

private int getMaxValueWidth(Vector v)

getMaxColumnWidth

public Vector getMaxColumnWidth()

getValueWidth

private int getValueWidth(Object value)

addSortedValues

private void addSortedValues(Vector v,
                             AbstractValueView[] values,
                             boolean order)

findInsertPosition

private int findInsertPosition(Vector v,
                               AbstractValueView obj,
                               boolean order)

resultCount

public int resultCount()

printAllInfo

public void printAllInfo()

displayAllValues

private void displayAllValues(Object obj)

getRankingValueAttribute

public static String getRankingValueAttribute(String rankableClassname)
                                       throws WTException
Throws:
WTException

getRankingContextAttribute

public static String getRankingContextAttribute(String rankableClassname)
                                         throws WTException
Throws:
WTException

updateIBAHolderAtIndex

public void updateIBAHolderAtIndex(int index,
                                   Object heavyObj)