* @see echopointng.treetable.DefaultTreeTableModel#getValueAt(java.lang.Object, int)
*/
@Override
public Object getValueAt(Object node, int column) {
if ((node!=null) && (node instanceof TrPositionTreeNode)) {
TrPosition position = ((TrPositionTreeNode) node).getPosition();
logger.debug("Showing position");
String s;
if (position != null) {
logger.debug(position.getPosNumber() + " " + position.getId());
((TrPositionTreeNode) node).setUserObject(position.getPosNumber());
switch (column) {
case 0:
return position.getPosNumber();
case 1:
if ((position instanceof ArticlePosition) && (((ArticlePosition)position).getArticle()!=null) && (((ArticlePosition)position).getArticle().getUserNo()!=null))
return ((ArticlePosition)position).getArticle().getUserNo();
else
return "";
case 2:
s = "";
if (position instanceof NormalPosition) {
s = String.valueOf(((NormalPosition) position).getQuantity());
}
return s;
case 3:
s = position.getShortText(ClientGlobals.getMainDbLanguage());
if (s == null) {
s = "";
}
return s;
case 4: