ItemsLayoutBox is a storage-class that provides an access to existing items.
More...
ItemsLayoutBox is a storage-class that provides an access to existing items.
◆ addItem()
Adding an item to global item storage (ItemsLayoutBox).
In usual situation you do not need to use this function only if you create your own implementation of InterfaceBaseItem or create a new implementation of InterfaceFloatItem.
- Parameters
-
◆ getLayoutFloatItems()
static List<InterfaceBaseItem> com.spvessel.spacevil.ItemsLayoutBox.getLayoutFloatItems |
( |
UUID |
id | ) |
|
|
static |
Getting existing float items in specified window by its UUID.
Floating items are independent items that do not have a parent, or their root parent is a floating item. Examples: SideArea, FloatItem, ContextMenu and etc.
- Parameters
-
- Returns
- The list of existing float items in specified window by its UUID.
◆ getLayoutItems()
static List<InterfaceBaseItem> com.spvessel.spacevil.ItemsLayoutBox.getLayoutItems |
( |
UUID |
id | ) |
|
|
static |
Getting existing static items in specified window by its GUID.
Static items are items that depend on their parent. Parent controls their size, position and etc.
- Parameters
-
- Returns
- The list of existing static items in specified window by its UUID.
◆ getListOfItemsNames()
static String [] com.spvessel.spacevil.ItemsLayoutBox.getListOfItemsNames |
( |
CoreWindow |
layout | ) |
|
|
static |
Getting the list of names of existing items in the specified window.
- Parameters
-
- Returns
- The list of names of existing items in the specified window.
◆ printListOfItems()
static void com.spvessel.spacevil.ItemsLayoutBox.printListOfItems |
( |
CoreWindow |
layout | ) |
|
|
static |
Printing all existing items in the specified window.
- Parameters
-
◆ removeItem()
Removing an item from global item storage (ItemsLayoutBox).
In usual situation you do not need to use this function only if you create your own implementation of InterfaceBaseItem or want to remove IFloatItem instance.
- Parameters
-
- Returns
- True: if removal was successfull. False: if the specified item does not exist in the storage.
The documentation for this class was generated from the following file: