com.microsoft.tfs.core.clients.workitem.query.qe
Class ResultOptions

java.lang.Object
  extended by com.microsoft.tfs.core.clients.workitem.query.qe.ResultOptions

public class ResultOptions
extends java.lang.Object


Field Summary
static int CHANGE_TYPE_COLUMNS
           
static int CHANGE_TYPE_NONE
           
static int CHANGE_TYPE_SORT
           
static int CHANGE_TYPE_WIDTHS
           
 
Constructor Summary
ResultOptions(DisplayFieldCollection displayFields, SortFieldCollection sortFields, QueryDocument queryDocument)
           
ResultOptions(QueryDocument queryDocument)
           
ResultOptions(ResultOptions existingOptions, boolean makeDeepCopy, QueryDocument queryDocument)
           
 
Method Summary
static boolean checkChangeFlag(int flags, int flagToCheck)
           
static int determineChange(ResultOptions orig, ResultOptions current)
           
static int getDefaultColumnWidth(FieldDefinition fieldDefinition)
           
static int getDefaultColumnWidth(java.lang.String fieldName, FieldDefinitionCollection fieldDefinitions)
           
 DisplayFieldCollection getDisplayFields()
           
 java.lang.String getOrderByClause(FieldDefinitionCollection fieldDefinitions)
           
 java.lang.String getSelectClause(FieldDefinitionCollection fieldDefinitions)
           
 SortFieldCollection getSortFields()
           
 boolean isLinkQuery()
           
 void loadFromMemento(Memento memento)
          Restores the viewable state of the ResultOptions (column widths) from the given Memento.
 void onQueryTypeChanged(FieldDefinitionCollection fieldDefinitions)
           
 void saveToMemento(Memento memento)
          Saves the viewable state of the ResultOptions (column widths) to the given empty Memento.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHANGE_TYPE_NONE

public static final int CHANGE_TYPE_NONE
Constant Field Value:
0
See Also:
Constant Field Values

CHANGE_TYPE_WIDTHS

public static final int CHANGE_TYPE_WIDTHS
Constant Field Value:
1
See Also:
Constant Field Values

CHANGE_TYPE_COLUMNS

public static final int CHANGE_TYPE_COLUMNS
Constant Field Value:
2
See Also:
Constant Field Values

CHANGE_TYPE_SORT

public static final int CHANGE_TYPE_SORT
Constant Field Value:
4
See Also:
Constant Field Values
Constructor Detail

ResultOptions

public ResultOptions(QueryDocument queryDocument)

ResultOptions

public ResultOptions(DisplayFieldCollection displayFields,
                     SortFieldCollection sortFields,
                     QueryDocument queryDocument)

ResultOptions

public ResultOptions(ResultOptions existingOptions,
                     boolean makeDeepCopy,
                     QueryDocument queryDocument)
Method Detail

checkChangeFlag

public static boolean checkChangeFlag(int flags,
                                      int flagToCheck)

determineChange

public static int determineChange(ResultOptions orig,
                                  ResultOptions current)

getDefaultColumnWidth

public static int getDefaultColumnWidth(java.lang.String fieldName,
                                        FieldDefinitionCollection fieldDefinitions)

getDefaultColumnWidth

public static int getDefaultColumnWidth(FieldDefinition fieldDefinition)

isLinkQuery

public boolean isLinkQuery()

onQueryTypeChanged

public void onQueryTypeChanged(FieldDefinitionCollection fieldDefinitions)

saveToMemento

public void saveToMemento(Memento memento)
Saves the viewable state of the ResultOptions (column widths) to the given empty Memento.

Parameters:
memento - the Memento to save state to (must not be null)

loadFromMemento

public void loadFromMemento(Memento memento)
Restores the viewable state of the ResultOptions (column widths) from the given Memento.

Parameters:
memento - the Memento to read state from (may be null)

getOrderByClause

public java.lang.String getOrderByClause(FieldDefinitionCollection fieldDefinitions)

getSelectClause

public java.lang.String getSelectClause(FieldDefinitionCollection fieldDefinitions)

getDisplayFields

public DisplayFieldCollection getDisplayFields()

getSortFields

public SortFieldCollection getSortFields()


© 2015 Microsoft. All rights reserved.