| Modifier and Type | Field and Description |
|---|---|
static int | FLAG_ALWAYSUPDATEAlways update the text. |
static int | FLAG_DISABLEDisable from start. |
static int | FLAG_NODISABLEDon't disable for host field. |
static int | FLAG_TEXTIDSTRINGText ID string |
int | indexThe index of this menu. |
PhantomMenuItem[] | menuItemsThe menu items. |
PhantomPanelData | panelDataThe panel data. |
String | textThe text of the menu. |
String | tooltipTextThe tool-tip text connected to the menu item. |
| Constructor and Description |
|---|
PhantomMenu(PhantomPanelData panelData, int index, PhantomMenuItem[] menuItems, String text)Creates a menu for Gui-on-the-fly. |
| Modifier and Type | Method and Description |
|---|---|
boolean | equals(Object o)Checks if two menus are equal. |
PhantomMenuItem[] | getMenuItems()Gets menu items for this menu, returns MenuItems[] |
int | getSaveSize()Calculates the size of the object when saved to file. |
void | rebind(PhantomApplicationData appData)Reloads objects for the menu items. |
void | resolveComponentReferences()Resolves references of all menu items to other panel components, after the panel has been loaded. |
void | save(PhantomOutputFile file)Saves the menu definition from the Phantom Panel file. |
void | updateReferences(ApplicationReferences refs)Updates the Applications References instance. |
public static final int FLAG_NODISABLE
public static final int FLAG_ALWAYSUPDATE
public static final int FLAG_DISABLE
public static final int FLAG_TEXTIDSTRING
public String text
public PhantomMenuItem[] menuItems
public PhantomPanelData panelData
public int index
public String tooltipText
public PhantomMenu(PhantomPanelData panelData, int index, PhantomMenuItem[] menuItems, String text)
public void save(PhantomOutputFile file) throws IOException
Base: + Text BYTE [32] + Count of menu items USHORT + Reserved BYTE [16]
file - the open file to write the dfinition to.IOException - if an I/O error occurs.public int getSaveSize()
public void rebind(PhantomApplicationData appData) throws IOException
IOExceptionpublic void resolveComponentReferences()
public PhantomMenuItem[] getMenuItems()
public void updateReferences(ApplicationReferences refs)
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© 2026 Mindus SARL. All rights reserved.