NX Open C++ Reference Guide
Public Types | Public Member Functions | List of all members
NXOpen::BlockStyler::SetList Class Reference

Represents a SetList block
Created in NX6.0.0. More...

Inheritance diagram for NXOpen::BlockStyler::SetList:
NXOpen::BlockStyler::UIBlock NXOpen::TaggedObject

Public Types

typedef NXOpen::Callback1< int,
NXOpen::BlockStyler::SetList * > 
AddCallback
 Add callback
Created in NX6.0.0. More...
 
typedef NXOpen::Callback2< int,
NXOpen::BlockStyler::SetList
*, NXOpen::BlockStyler::UIBlock * > 
DeleteCallback
 Delete callback. More...
 
enum  InsertionLocation { InsertionLocationBefore, InsertionLocationAfter }
 During Insert, indicates whether component should be inserted before or after the insertion location. More...
 
typedef NXOpen::Callback4< int,
NXOpen::BlockStyler::SetList
*, NXOpen::BlockStyler::UIBlock
*, int, int > 
ReorderCallback
 Reorder callback
Created in NX6.0.0. More...
 

Public Member Functions

NXOpen::BlockStyler::UIBlockAddNewSet (bool copyPropertiesAndSelect)
 Adds an item to the end of the list. More...
 
NXString AddNewSetLabel ()
 Returns the AddNewSetLabel. More...
 
int DefaultColumnWidth ()
 Returns the DefaultColumnWidth
Created in NX8.5.0. More...
 
void Delete (NXOpen::BlockStyler::UIBlock *uicomp)
 Deletes an item from the list
Created in NX6.0.0. More...
 
NXOpen::BlockStyler::UIBlockFindUpdated ()
 When an update event occurs on the list, this method finds the item in the list that was updated. More...
 
std::vector< NXStringGetColumnLabels ()
 Gets the ColumnLabels. More...
 
std::vector< int > GetColumnWidths ()
 Gets the ColumnWidths. More...
 
std::vector
< NXOpen::BlockStyler::UIBlock * > 
GetItems ()
 Gets all the items in the list. More...
 
std::vector< NXStringGetItemText (NXOpen::BlockStyler::UIBlock *item)
 Gets the text for the specified item. More...
 
std::vector< NXStringGetLayoutMembers ()
 Gets the Layout members. More...
 
std::vector
< NXOpen::BlockStyler::UIBlock * > 
GetSelected ()
 Gets the selected items. More...
 
NXOpen::BlockStyler::UIBlockInsertNewSet (NXOpen::BlockStyler::UIBlock *location, NXOpen::BlockStyler::SetList::InsertionLocation insertBeforeOrAfter, bool copyPropertiesAndSelect)
 Inserts an item before or after a specified item. More...
 
bool IsAddButtonSensitive ()
 Returns the IsAddButtonSensitive
Created in NX8.5.0. More...
 
NXString LayoutAsString ()
 Returns the Layout as string
Created in NX8.5.0. More...
 
bool ListExpanded ()
 Returns the ListExpanded. More...
 
bool ListHideGroup ()
 Returns the ListHideGroup
Created in NX8.5.0. More...
 
int MaximumHeight ()
 Returns the MaximumHeight
Created in NX8.5.0. More...
 
int MinimumHeight ()
 Returns the MinimumHeight
Created in NX8.5.0. More...
 
bool MultipleEdit ()
 Returns the MultipleEdit
Created in NX8.5.0. More...
 
NXString NumberColumnString ()
 Returns the NumberColumnString as string
Created in NX8.5.0. More...
 
int NumberOfColumns ()
 Returns the NumberOfColumns
Created in NX8.5.0. More...
 
bool ResizeHeightWithDialog ()
 Returns the ResizeHeightWithDialog. More...
 
NXString SeedDlxFile ()
 Returns the SeedDlxFile as string
Created in NX8.5.0. More...
 
void SetAddButtonSensitive (bool addButton)
 Sets the IsAddButtonSensitive
Created in NX8.5.0. More...
 
void SetAddHandler (const NXOpen::BlockStyler::SetList::AddCallback &cb)
 Sets the AddNewSet handler. More...
 
void SetAddNewSetLabel (const NXString &label)
 Sets the AddNewSetLabel. More...
 
void SetAddNewSetLabel (const char *label)
 Sets the AddNewSetLabel. More...
 
void SetColumnLabels (std::vector< NXString > &labels)
 Sets the ColumnLabels
Created in NX8.5.0. More...
 
void SetColumnWidths (const std::vector< int > &width)
 Sets the ColumnWidths
Created in NX8.5.0. More...
 
void SetDefaultColumnWidth (int defaultWidth)
 Sets the DefaultColumnWidth
Created in NX8.5.0. More...
 
void SetDeleteHandler (const NXOpen::BlockStyler::SetList::DeleteCallback &cb)
 Sets the Delete handler. More...
 
void SetItemText (NXOpen::BlockStyler::UIBlock *item, std::vector< NXString > &strings)
 Sets the text for the specified item. More...
 
void SetLayoutAsString (const NXString &enumString)
 Sets the Layout as string
Created in NX8.5.0. More...
 
void SetLayoutAsString (const char *enumString)
 Sets the Layout as string
Created in NX8.5.0. More...
 
void SetListExpanded (bool expanded)
 Sets the ListExpanded. More...
 
void SetListHideGroup (bool listHideGroup)
 Sets the ListHideGroup
Created in NX8.5.0. More...
 
void SetMaximumHeight (int maxHeight)
 Sets the MaximumHeight
Created in NX8.5.0. More...
 
void SetMinimumHeight (int minHeight)
 Sets the MinimumHeight
Created in NX8.5.0. More...
 
void SetMultipleEdit (bool multipleEdit)
 Sets the MultipleEdit
Created in NX8.5.0. More...
 
void SetNumberColumnString (const NXString &columnString)
 Sets the NumberColumnString as string
Created in NX8.5.0. More...
 
void SetNumberColumnString (const char *columnString)
 Sets the NumberColumnString as string
Created in NX8.5.0. More...
 
void SetNumberOfColumns (int numColumns)
 Sets the NumberOfColumns
Created in NX8.5.0. More...
 
void SetReorderObserver (const NXOpen::BlockStyler::SetList::ReorderCallback &cb)
 Sets the Reorder observer. More...
 
void SetResizeHeightWithDialog (bool resize)
 Sets the ResizeHeightWithDialog. More...
 
void SetSeed (const NXString &dlxFile)
 Sets the seed using a dlx file. More...
 
void SetSeed (const char *dlxFile)
 Sets the seed using a dlx file. More...
 
void SetSeedDlxFile (const NXString &dlxName)
 Sets the SeedDlxFile as string
Created in NX8.5.0. More...
 
void SetSeedDlxFile (const char *dlxName)
 Sets the SeedDlxFile as string
Created in NX8.5.0. More...
 
void SetSelected (const std::vector< NXOpen::BlockStyler::UIBlock * > &items)
 Sets the selected items. More...
 
void SetShowAddNewSet (bool show)
 Sets the ShowAddNewSet. More...
 
void SetShowColumnHeadings (bool show)
 Sets the ShowColumnHeadings
Created in NX8.5.0. More...
 
void SetShowRemove (bool show)
 Sets the ShowRemove. More...
 
void SetShowReorderControls (bool show)
 Sets the ShowReorderControls
Created in NX8.5.0. More...
 
bool ShowAddNewSet ()
 Returns the ShowAddNewSet. More...
 
bool ShowColumnHeadings ()
 Returns the ShowColumnHeadings
Created in NX8.5.0. More...
 
bool ShowRemove ()
 Returns the ShowRemove. More...
 
bool ShowReorderControls ()
 Returns the ShowReorderControls
Created in NX8.5.0. More...
 
void Swap (NXOpen::BlockStyler::UIBlock *uicomp1, NXOpen::BlockStyler::UIBlock *uicomp2)
 Swaps the location of two items
Created in NX6.0.0. More...
 
- Public Member Functions inherited from NXOpen::BlockStyler::UIBlock
bool Enable ()
 Returns the Enable. More...
 
bool Expanded ()
 Returns the Expanded
Created in NX8.5.0. More...
 
void Focus ()
 Focuses on the block. More...
 
NXOpen::BlockStyler::PropertyListGetProperties ()
 Returns the properties of the block. More...
 
bool Group ()
 Returns the Group
Created in NX8.5.0. More...
 
NXString Label ()
 Returns the Label
Created in NX8.5.0. More...
 
NXString Name ()
 Returns the name of the block or BlockID
Created in NX6.0.0. More...
 
void SetEnable (bool enable)
 Sets the Enable. More...
 
void SetExpanded (bool expanded)
 Sets the Expanded
Created in NX8.5.0. More...
 
void SetGroup (bool group)
 Sets the Group
Created in NX8.5.0. More...
 
void SetLabel (const NXString &label)
 Sets the Label
Created in NX8.5.0. More...
 
void SetLabel (const char *label)
 Sets the Label
Created in NX8.5.0. More...
 
void SetShow (bool show)
 Sets the Visibility of block. More...
 
bool Show ()
 Returns the Visibility of block. More...
 
NXString Type ()
 Returns the type of block
Created in NX6.0.0. More...
 
- Public Member Functions inherited from NXOpen::TaggedObject
tag_t Tag () const
 Returns the tag of this object. More...
 

Detailed Description

Represents a SetList block
Created in NX6.0.0.


Member Typedef Documentation

Add callback
Created in NX6.0.0.



License requirements : None

Delete callback.

Return a non-zero value in order to veto the deletion.
Created in NX6.0.0.

License requirements : None

Reorder callback
Created in NX6.0.0.



License requirements : None

Member Enumeration Documentation

During Insert, indicates whether component should be inserted before or after the insertion location.

Enumerator
InsertionLocationBefore 

before

InsertionLocationAfter 

after

Member Function Documentation

NXOpen::BlockStyler::UIBlock* NXOpen::BlockStyler::SetList::AddNewSet ( bool  copyPropertiesAndSelect)

Adds an item to the end of the list.

Returns
The added item
Created in NX6.0.0.

License requirements : None
Parameters
copyPropertiesAndSelectIndicates whether to copy properties from the currently selected component and set focus to the new set
NXString NXOpen::BlockStyler::SetList::AddNewSetLabel ( )

Returns the AddNewSetLabel.

Specifies the label for AddNewSet button.
Created in NX8.5.0.

License requirements : None

int NXOpen::BlockStyler::SetList::DefaultColumnWidth ( )

Returns the DefaultColumnWidth
Created in NX8.5.0.



License requirements : None

void NXOpen::BlockStyler::SetList::Delete ( NXOpen::BlockStyler::UIBlock uicomp)

Deletes an item from the list
Created in NX6.0.0.



License requirements : None

Parameters
uicompItem to delete
NXOpen::BlockStyler::UIBlock* NXOpen::BlockStyler::SetList::FindUpdated ( )

When an update event occurs on the list, this method finds the item in the list that was updated.

Returns

Created in NX6.0.0.

License requirements : None
std::vector<NXString> NXOpen::BlockStyler::SetList::GetColumnLabels ( )

Gets the ColumnLabels.

Returns
Values to get from the property
Created in NX8.5.0.

License requirements : None
std::vector<int> NXOpen::BlockStyler::SetList::GetColumnWidths ( )

Gets the ColumnWidths.

Returns
Values to get from the property
Created in NX8.5.0.

License requirements : None
std::vector<NXOpen::BlockStyler::UIBlock *> NXOpen::BlockStyler::SetList::GetItems ( )

Gets all the items in the list.

Returns

Created in NX6.0.0.

License requirements : None
std::vector<NXString> NXOpen::BlockStyler::SetList::GetItemText ( NXOpen::BlockStyler::UIBlock item)

Gets the text for the specified item.

If the list has a title column, the title column is not included in the item text.

Returns
The text
Created in NX6.0.0.

License requirements : None
Parameters
itemitem
std::vector<NXString> NXOpen::BlockStyler::SetList::GetLayoutMembers ( )

Gets the Layout members.

Returns

Created in NX8.5.0.

License requirements : None
std::vector<NXOpen::BlockStyler::UIBlock *> NXOpen::BlockStyler::SetList::GetSelected ( )

Gets the selected items.

Returns

Created in NX6.0.0.

License requirements : None
NXOpen::BlockStyler::UIBlock* NXOpen::BlockStyler::SetList::InsertNewSet ( NXOpen::BlockStyler::UIBlock location,
NXOpen::BlockStyler::SetList::InsertionLocation  insertBeforeOrAfter,
bool  copyPropertiesAndSelect 
)

Inserts an item before or after a specified item.

Returns
The inserted item
Created in NX6.0.0.

License requirements : None
Parameters
locationLocation to insert the new item
insertBeforeOrAfterIndicates whether to insert the new item before or after the specified location
copyPropertiesAndSelectIndicates whether to copy properties from the currently selected component and set focus to the new set
bool NXOpen::BlockStyler::SetList::IsAddButtonSensitive ( )

Returns the IsAddButtonSensitive
Created in NX8.5.0.



License requirements : None

NXString NXOpen::BlockStyler::SetList::LayoutAsString ( )

Returns the Layout as string
Created in NX8.5.0.



License requirements : None

bool NXOpen::BlockStyler::SetList::ListExpanded ( )

Returns the ListExpanded.

If true, the list is expanded.
Created in NX8.5.0.

License requirements : None

bool NXOpen::BlockStyler::SetList::ListHideGroup ( )

Returns the ListHideGroup
Created in NX8.5.0.



License requirements : None

int NXOpen::BlockStyler::SetList::MaximumHeight ( )

Returns the MaximumHeight
Created in NX8.5.0.



License requirements : None

int NXOpen::BlockStyler::SetList::MinimumHeight ( )

Returns the MinimumHeight
Created in NX8.5.0.



License requirements : None

bool NXOpen::BlockStyler::SetList::MultipleEdit ( )

Returns the MultipleEdit
Created in NX8.5.0.



License requirements : None

NXString NXOpen::BlockStyler::SetList::NumberColumnString ( )

Returns the NumberColumnString as string
Created in NX8.5.0.



License requirements : None

int NXOpen::BlockStyler::SetList::NumberOfColumns ( )

Returns the NumberOfColumns
Created in NX8.5.0.



License requirements : None

bool NXOpen::BlockStyler::SetList::ResizeHeightWithDialog ( )

Returns the ResizeHeightWithDialog.

If true, height of the block changes dynamically with dialog.
Created in NX8.5.0.

License requirements : None

NXString NXOpen::BlockStyler::SetList::SeedDlxFile ( )

Returns the SeedDlxFile as string
Created in NX8.5.0.



License requirements : None

void NXOpen::BlockStyler::SetList::SetAddButtonSensitive ( bool  addButton)

Sets the IsAddButtonSensitive
Created in NX8.5.0.



License requirements : None

Parameters
addButtonaddbutton
void NXOpen::BlockStyler::SetList::SetAddHandler ( const NXOpen::BlockStyler::SetList::AddCallback cb)

Sets the AddNewSet handler.

If you set this handler, the handler will be called when the Add New Set button is pressed, and the handler will be responsible for adding an item to the list. Nothing will be added to the list unless the handler adds it.
Created in NX6.0.0.

License requirements : None

Parameters
cbcb
void NXOpen::BlockStyler::SetList::SetAddNewSetLabel ( const NXString label)

Sets the AddNewSetLabel.

Specifies the label for AddNewSet button.
Created in NX8.5.0.

License requirements : None

Parameters
labellabel
void NXOpen::BlockStyler::SetList::SetAddNewSetLabel ( const char *  label)

Sets the AddNewSetLabel.

Specifies the label for AddNewSet button.
Created in NX8.5.0.

License requirements : None

Parameters
labellabel
void NXOpen::BlockStyler::SetList::SetColumnLabels ( std::vector< NXString > &  labels)

Sets the ColumnLabels
Created in NX8.5.0.



License requirements : None

Parameters
labelsValues to set to the property
void NXOpen::BlockStyler::SetList::SetColumnWidths ( const std::vector< int > &  width)

Sets the ColumnWidths
Created in NX8.5.0.



License requirements : None

Parameters
widthValues to set to the property
void NXOpen::BlockStyler::SetList::SetDefaultColumnWidth ( int  defaultWidth)

Sets the DefaultColumnWidth
Created in NX8.5.0.



License requirements : None

Parameters
defaultWidthdefaultwidth
void NXOpen::BlockStyler::SetList::SetDeleteHandler ( const NXOpen::BlockStyler::SetList::DeleteCallback cb)

Sets the Delete handler.

If you set this handler, the handler will be called when the Delete button is pressed. The handler does not need to implement code to delete the item. The list will delete the item if and only if the handler returns 0.
Created in NX6.0.0.

License requirements : None

Parameters
cbcb
void NXOpen::BlockStyler::SetList::SetItemText ( NXOpen::BlockStyler::UIBlock item,
std::vector< NXString > &  strings 
)

Sets the text for the specified item.

If the list has a title column, the title column is not included in the item text.
Created in NX6.0.0.

License requirements : None

Parameters
itemitem
stringsThe text. The text may only contain characters in the locale character set
void NXOpen::BlockStyler::SetList::SetLayoutAsString ( const NXString enumString)

Sets the Layout as string
Created in NX8.5.0.



License requirements : None

Parameters
enumStringenumstring
void NXOpen::BlockStyler::SetList::SetLayoutAsString ( const char *  enumString)

Sets the Layout as string
Created in NX8.5.0.



License requirements : None

Parameters
enumStringenumstring
void NXOpen::BlockStyler::SetList::SetListExpanded ( bool  expanded)

Sets the ListExpanded.

If true, the list is expanded.
Created in NX8.5.0.

License requirements : None

Parameters
expandedexpanded
void NXOpen::BlockStyler::SetList::SetListHideGroup ( bool  listHideGroup)

Sets the ListHideGroup
Created in NX8.5.0.



License requirements : None

Parameters
listHideGrouplisthidegroup
void NXOpen::BlockStyler::SetList::SetMaximumHeight ( int  maxHeight)

Sets the MaximumHeight
Created in NX8.5.0.



License requirements : None

Parameters
maxHeightmaxheight
void NXOpen::BlockStyler::SetList::SetMinimumHeight ( int  minHeight)

Sets the MinimumHeight
Created in NX8.5.0.



License requirements : None

Parameters
minHeightminheight
void NXOpen::BlockStyler::SetList::SetMultipleEdit ( bool  multipleEdit)

Sets the MultipleEdit
Created in NX8.5.0.



License requirements : None

Parameters
multipleEditmultipleedit
void NXOpen::BlockStyler::SetList::SetNumberColumnString ( const NXString columnString)

Sets the NumberColumnString as string
Created in NX8.5.0.



License requirements : None

Parameters
columnStringcolumnstring
void NXOpen::BlockStyler::SetList::SetNumberColumnString ( const char *  columnString)

Sets the NumberColumnString as string
Created in NX8.5.0.



License requirements : None

Parameters
columnStringcolumnstring
void NXOpen::BlockStyler::SetList::SetNumberOfColumns ( int  numColumns)

Sets the NumberOfColumns
Created in NX8.5.0.



License requirements : None

Parameters
numColumnsnumcolumns
void NXOpen::BlockStyler::SetList::SetReorderObserver ( const NXOpen::BlockStyler::SetList::ReorderCallback cb)

Sets the Reorder observer.

If you set this observer, the observer will be called after an item is moved by pressing the Move Up and Down buttons. The observer does not need to implement the move up and down behavior and is called after the item has already been moved.
Created in NX6.0.0.

License requirements : None

Parameters
cbcb
void NXOpen::BlockStyler::SetList::SetResizeHeightWithDialog ( bool  resize)

Sets the ResizeHeightWithDialog.

If true, height of the block changes dynamically with dialog.
Created in NX8.5.0.

License requirements : None

Parameters
resizeresize
void NXOpen::BlockStyler::SetList::SetSeed ( const NXString dlxFile)

Sets the seed using a dlx file.

The seed must be set during initialization. Setting the seed will also reset any Add and Delete handlers that has been registered, so SetSeed should be called prior to calling SetAddHandler or SetDeleteHandler.
Created in NX6.0.0.

License requirements : None

Parameters
dlxFileThe dlx file used to create the seed
void NXOpen::BlockStyler::SetList::SetSeed ( const char *  dlxFile)

Sets the seed using a dlx file.

The seed must be set during initialization. Setting the seed will also reset any Add and Delete handlers that has been registered, so SetSeed should be called prior to calling SetAddHandler or SetDeleteHandler.
Created in NX6.0.0.

License requirements : None

Parameters
dlxFileThe dlx file used to create the seed
void NXOpen::BlockStyler::SetList::SetSeedDlxFile ( const NXString dlxName)

Sets the SeedDlxFile as string
Created in NX8.5.0.



License requirements : None

Parameters
dlxNamedlxname
void NXOpen::BlockStyler::SetList::SetSeedDlxFile ( const char *  dlxName)

Sets the SeedDlxFile as string
Created in NX8.5.0.



License requirements : None

Parameters
dlxNamedlxname
void NXOpen::BlockStyler::SetList::SetSelected ( const std::vector< NXOpen::BlockStyler::UIBlock * > &  items)

Sets the selected items.

If the "Multiple Edit" property is false, no more than one item can be selected
Created in NX6.0.0.

License requirements : None

Parameters
itemsitems
void NXOpen::BlockStyler::SetList::SetShowAddNewSet ( bool  show)

Sets the ShowAddNewSet.

If true, "Add New Set" button is shown.
Created in NX8.5.0.

License requirements : None

Parameters
showshow
void NXOpen::BlockStyler::SetList::SetShowColumnHeadings ( bool  show)

Sets the ShowColumnHeadings
Created in NX8.5.0.



License requirements : None

Parameters
showshow
void NXOpen::BlockStyler::SetList::SetShowRemove ( bool  show)

Sets the ShowRemove.

If true, "Remove" button is shown.
Created in NX8.5.0.

License requirements : None

Parameters
showshow
void NXOpen::BlockStyler::SetList::SetShowReorderControls ( bool  show)

Sets the ShowReorderControls
Created in NX8.5.0.



License requirements : None

Parameters
showshow
bool NXOpen::BlockStyler::SetList::ShowAddNewSet ( )

Returns the ShowAddNewSet.

If true, "Add New Set" button is shown.
Created in NX8.5.0.

License requirements : None

bool NXOpen::BlockStyler::SetList::ShowColumnHeadings ( )

Returns the ShowColumnHeadings
Created in NX8.5.0.



License requirements : None

bool NXOpen::BlockStyler::SetList::ShowRemove ( )

Returns the ShowRemove.

If true, "Remove" button is shown.
Created in NX8.5.0.

License requirements : None

bool NXOpen::BlockStyler::SetList::ShowReorderControls ( )

Returns the ShowReorderControls
Created in NX8.5.0.



License requirements : None

void NXOpen::BlockStyler::SetList::Swap ( NXOpen::BlockStyler::UIBlock uicomp1,
NXOpen::BlockStyler::UIBlock uicomp2 
)

Swaps the location of two items
Created in NX6.0.0.



License requirements : None

Parameters
uicomp1Item to swap
uicomp2Item to swap

The documentation for this class was generated from the following file:
Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.