Library | Package Java Toolkit

Interface SelectionBuffer

package com.ptc.pfc.pfcSelect;

public interface SelectionBuffer
  extends com.ptc.pfc.pfcObject.Child



Description

This class represents a selection buffer, where items preselected by the user are stored to be used by tools and popupmenus.



Method Summary
voidAddSelection (Selection ToAdd)
     Add an item to the selection buffer.
voidClear ()
    Clear the selection buffer of all contents.
/*optional*/ SelectionsGetContents ()
    Get method for attribute "Contents"
    Contents of the active selection buffer.
voidRemoveSelection (int IndexToRemove)
    Removes the selection at the indicated location from the selection tool.

Methods Inherited from Interface com.ptc.pfc.pfcObject.Child
GetDBParent, GetOId

Method Detail

GetContents

/*optional*/ SelectionsGetContents ()


    Contents of the active selection buffer.

Exceptions thrown (but not limited to):

XToolkitCantAccess - There is no Object/Action selection tool active.

XToolkitNotFound - There are no objects in the current selection tool.


Manual References:
Selection: Reading the Contents of the Selection Buffer, Selection: Removing the Items of the Selection Buffer



AddSelection

voidAddSelection (Selection ToAdd)


     Add an item to the selection buffer.

Exceptions thrown (but not limited to):

XToolkitCantAccess - There is no Object/Action selection tool active.

XToolkitInvalidItem - The selection does not correctly reference the current model.

XToolkitNotDisplayed - The item is not currently displayed and so cannot be added to the buffer.

XToolkitBadContext - The selection cannot be added to the buffer in combination with one or more objects that are already in the buffer (e.g. geometry and features selected at the same time).

XToolkitCantModify - Buffer modification is prohibited.


Manual References:
Selection: Adding Items to the Selection Buffer, Selection: Adding Items to the Selection Buffer
Parameters:
ToAdd
Selection to be added to the buffer.
Returns:


RemoveSelection

voidRemoveSelection (int IndexToRemove)


    Removes the selection at the indicated location from the selection tool.

Exceptions thrown (but not limited to):

XToolkitCantAccess - There is no Object/Action selection tool active.

XToolkitCantModify - Buffer modification is prohibited.


Manual References:
Selection: Removing the Items of the Selection Buffer, Selection: Removing the Items of the Selection Buffer
Parameters:
IndexToRemove
Index of the item to remove from the currently active selection tool.
Returns:


Clear

voidClear ()


    Clear the selection buffer of all contents.

Exceptions thrown (but not limited to):

XToolkitCantAccess - There is no Object/Action selection tool active.

XToolkitCantModify - Buffer modification is prohibited.


Manual References:
Selection: Removing the Items of the Selection Buffer
Returns: