CoolBar.setItemLayout

Sets the receiver's item order, wrap indices, and item sizes all at once. This method is typically used to restore the displayed state of the receiver to a previously stored state. <p> The item order is the order in which the items in the receiver should be displayed, given in terms of the zero-relative ordering of when the items were added. </p><p> The wrap indices are the indices of all item(s) in the receiver that will begin on a new row. The indices are given in the order specified by the item order. The 0th item always begins the first row, therefore it does not count as a wrap index. If wrap indices is null or empty, the items will be placed on one line. </p><p> The sizes are specified in an array of points whose x and y coordinates describe the new widths and heights (respectively) of the receiver's items in the order specified by the item order. </p>

@param itemOrder an array of indices that describe the new order to display the items in @param wrapIndices an array of wrap indices, or null @param sizes an array containing the new sizes for each of the receiver's items in visual order

@exception SWTException <ul> <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> </ul> @exception IllegalArgumentException <ul> <li>ERROR_INVALID_ARGUMENT - if item order or sizes is not the same length as the number of items</li> </ul>

class CoolBar
void
setItemLayout

Meta