com.microsoft.tfs.core.clients.workitem.query.qe
Class ResultOptions
java.lang.Object
com.microsoft.tfs.core.clients.workitem.query.qe.ResultOptions
public class ResultOptions
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ResultOptions
public ResultOptions(QueryDocument queryDocument)
ResultOptions
public ResultOptions(DisplayFieldCollection displayFields,
SortFieldCollection sortFields,
QueryDocument queryDocument)
ResultOptions
public ResultOptions(ResultOptions existingOptions,
boolean makeDeepCopy,
QueryDocument queryDocument)
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.