Default Constructor super("type", POSITION_LAST, 100, TableManager.TABLE_MYSHARES);
super("type", POSITION_LAST, 100, TableManager.TABLE_MYSHARES);
ShareResource item = (ShareResource)cell.getDataSource(); String text = ""; if( item != null ) { int type = item.getType(); if( !cell.setSortValue( type ) && cell.isValid() ) { return; } if (type == ShareResource.ST_DIR) text = MessageText.getString( "MySharesView.type.dir" ); else if (type == ShareResource.ST_FILE) text = MessageText.getString( "MySharesView.type.file" ); else if (type == ShareResource.ST_DIR_CONTENTS) { ShareResourceDirContents s = (ShareResourceDirContents)item; if (s.isRecursive()) text = MessageText.getString( "MySharesView.type.dircontentsrecursive" ); else text = MessageText.getString( "MySharesView.type.dircontents" ); } } cell.setText( text );