public class PhantomPopupMenu extends Object implements Cloneable, INPObjects, IENPObjectOwner
The VirtualRuntime will also set the "dirty" flag for all text prompts containing text file references in the case of a change of the text file.
| Modifier and Type | Field and Description |
|---|---|
HashSet<String> | connectedControlsThe hash table containing the connected controls (as key and value). |
PhantomPopupMenuItem[] | menuItemsThe menu items. |
| Modifier and Type | Method and Description |
|---|---|
boolean | equals(Object o)Checks if two menu items are equal. |
ENPRootObject | getCachedNPObject()Gets the cached NPObject root. |
int | getIndex()Gets the index of this pop-up menu. |
String | getName()Gets the name (ID) of the pop-up menu. |
ENPRootObject | getNPObject()Gets the NPObjects for the host data. |
String | getNPObjectName()Gets the NP Object file name in the project application directory. |
PhantomObject | getObject()Gets the associated Phantom Object. |
PhantomPopupMenuItem[] | getPopupMenuItems()Gets the pop-up menu items. |
ArrayList<FileError> | getUpdatedErrors()For the Editor, checks for a change in the error list of this instance. |
void | load(PhantomFile file, PhantomRuntime runtime, String id)Creates and loads the definition of a pop-up menu. |
boolean | needsReload()Check if this file needs to be reloaded. |
void | onENPObjectInvalidated()Invalidates the chain of objects up to the owner in order to get it sent to Eclipse. |
void | rebind(PhantomApplicationData appData)Reloads objects for the menu items. |
int | reload()Reload internal state from external sources. |
void | resolveComponentReferences()Resolves references of all menu items to other panel components, after the panel has been loaded. |
void | save(String fileName)Saves the file. |
void | setIndex(int index)Sets the index of this pop-up menu. |
void | updateReferences(ApplicationReferences refs)Updates the Applications References instance. |
public PhantomPopupMenuItem[] menuItems
public PhantomObject getObject()
public void load(PhantomFile file, PhantomRuntime runtime, String id) throws IOException
IOException - if an I/O error occurs.public boolean needsReload()
public String getName()
public void setIndex(int index)
public int getIndex()
Note: The PhantomApplicationData class will discard all pop-up menus after they are loaded, if they aren't referenced anywhere in the application (index = -1).
public int reload()
throws MaybeIOExceptionMaybeIOExceptionpublic void rebind(PhantomApplicationData appData) throws IOException
IOExceptionpublic void resolveComponentReferences()
public PhantomPopupMenuItem[] getPopupMenuItems()
public boolean equals(Object o)
public void save(String fileName) throws IOException
fileName - The file name.IOException - For I/O errors.public void updateReferences(ApplicationReferences refs)
public ArrayList<FileError> getUpdatedErrors()
public String getNPObjectName()
getNPObjectName in interface INPObjectspublic void onENPObjectInvalidated()
onENPObjectInvalidated in interface IENPObjectOwnerpublic ENPRootObject getCachedNPObject()
getCachedNPObject in interface INPObjectspublic ENPRootObject getNPObject()
getNPObject in interface INPObjectsPhantom® and NetPhantom® are registered trademarks of Mindus SARL.
© 2026 Mindus SARL. All rights reserved.