com.microsoft.tfs.core.pendingcheckin
Class StandardPendingCheckinWorkItems

java.lang.Object
  extended by com.microsoft.tfs.core.pendingcheckin.StandardPendingCheckinWorkItems
All Implemented Interfaces:
PendingCheckinWorkItems

public class StandardPendingCheckinWorkItems
extends java.lang.Object
implements PendingCheckinWorkItems

Standard implementation of PendingCheckinWorkItems.

Since:
TEE-SDK-10.1
Thread-safety:
thread-safe

Constructor Summary
StandardPendingCheckinWorkItems(WorkItemCheckinInfo[] checkedWorkItems)
          Constructs a @ StandardPendingCheckinWorkItems} for the given checked work items.
 
Method Summary
 void addCheckedWorkItemsChangedListener(CheckedWorkItemsChangedListener listener)
          Adds a listener that's invoked whenever the work items that are checked in the user interface are changed (via PendingCheckinWorkItems.setCheckedWorkItems(WorkItemCheckinInfo[])).
 WorkItemCheckinInfo[] getCheckedWorkItems()
          
 void removeCheckedWorkItemsChangedListener(CheckedWorkItemsChangedListener listener)
          Removes a listener that was previously added by PendingCheckinWorkItems.addCheckedWorkItemsChangedListener(CheckedWorkItemsChangedListener) .
 void setCheckedWorkItems(WorkItemCheckinInfo[] checkedWorkItems)
          Sets the work items that are "checked" in the user interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardPendingCheckinWorkItems

public StandardPendingCheckinWorkItems(WorkItemCheckinInfo[] checkedWorkItems)
Constructs a @ StandardPendingCheckinWorkItems} for the given checked work items.

Parameters:
checkedWorkItems - the checked work items that will be updated when this checkin happens (must not be null)
Method Detail

addCheckedWorkItemsChangedListener

public void addCheckedWorkItemsChangedListener(CheckedWorkItemsChangedListener listener)
Adds a listener that's invoked whenever the work items that are checked in the user interface are changed (via PendingCheckinWorkItems.setCheckedWorkItems(WorkItemCheckinInfo[])).

Specified by:
addCheckedWorkItemsChangedListener in interface PendingCheckinWorkItems
Parameters:
listener - the listener to add (must not be null)

removeCheckedWorkItemsChangedListener

public void removeCheckedWorkItemsChangedListener(CheckedWorkItemsChangedListener listener)
Removes a listener that was previously added by PendingCheckinWorkItems.addCheckedWorkItemsChangedListener(CheckedWorkItemsChangedListener) .

Specified by:
removeCheckedWorkItemsChangedListener in interface PendingCheckinWorkItems
Parameters:
listener - the listener to remove (must not be null)

getCheckedWorkItems

public WorkItemCheckinInfo[] getCheckedWorkItems()

Specified by:
getCheckedWorkItems in interface PendingCheckinWorkItems
Returns:
the work items that are "checked" in the user interface (will be changed during this checkin).

setCheckedWorkItems

public void setCheckedWorkItems(WorkItemCheckinInfo[] checkedWorkItems)
Sets the work items that are "checked" in the user interface.

Specified by:
setCheckedWorkItems in interface PendingCheckinWorkItems
Parameters:
checkedWorkItems - the checked work items (must not be null)


© 2015 Microsoft. All rights reserved.