public class PhantomPopupMenu extends Object
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> |
connectedControls
The hash table containing the connected controls (as key and value).
|
PhantomPopupMenuItem[] |
menuItems
The menu items.
|
| Constructor and Description |
|---|
PhantomPopupMenu(PhantomFile file,
PhantomApplicationData application,
String id)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getIndex()
Gets the index of this pop-up menu.
|
String |
getName()
Gets the name (ID) of the pop-up menu.
|
PhantomPopupMenuItem[] |
getPopupMenuItems()
Gets the pop-up menu items.
|
void |
load(PhantomFile file,
PhantomApplicationData application,
String id)
Creates and loads the definition of a pop-up menu.
|
boolean |
needsReload()
Check if this file needs to be reloaded.
|
int |
reload(boolean force)
Reload internal state from external sources.
|
void |
reloadObject()
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 |
setApplication(PhantomApplicationData application)
Set the runtime reference.
|
void |
setIndex(int index)
Sets the index of this pop-up menu.
|
public PhantomPopupMenuItem[] menuItems
public PhantomPopupMenu(PhantomFile file, PhantomApplicationData application, String id) throws IOException
file - application - id - IOExceptionpublic void load(PhantomFile file, PhantomApplicationData application, 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(boolean force)
throws IOException
force - - force the reload.IOExceptionpublic void setApplication(PhantomApplicationData application)
rt - public void reloadObject()
throws IOException
IOExceptionpublic void resolveComponentReferences()
public PhantomPopupMenuItem[] getPopupMenuItems()
Phantom® and NetPhantom® are registered trademarks of Nexum Technologies SARL.
© Copyright Nexum Technologies SARL, 2011. All rights reserved.