public class ENPObject extends Object implements IENPObjectOwner
Modifier and Type | Field and Description |
---|---|
static ENPObject[] |
EMPTY
Empty array.
|
protected String |
extra
Extra information.
|
String |
id
The identifier.
|
protected String |
info
Local info, used by the type (such as Screen name or Control Index).
|
Constructor and Description |
---|
ENPObject(int type,
String id)
Creates a new Object with just the type and ID, no extra information or specific image.
|
ENPObject(int type,
String id,
String extra)
Creates a new Object with just the type and ID, extra information and no specific image.
|
Modifier and Type | Method and Description |
---|---|
void |
add(ENPObject child)
Adds a child.
|
void |
addBarFileReference(PhantomApplicationData appData,
String barFile)
Adds a text ID reference.
|
void |
addControlReference(PhantomPanelData panel,
String controlID)
Creates a reference-type object for an control.
|
void |
addHostFieldReference(PhantomHostData hostData,
String screen,
String hostField)
Adds a host field reference.
|
void |
addHostScreenReference(PhantomRuntime runtime,
String screenName)
Creates a reference-type object for an Object.
|
void |
addImageReference(PhantomRuntime runtime,
String image)
Adds an image reference.
|
void |
addObjectReference(PhantomApplicationData appData,
String objectID)
Creates a reference-type object for an Object.
|
void |
addPanelReference(PhantomApplicationData appData,
String panelID)
Creates a reference-type object for an host screen.
|
void |
addTextIDReference(PhantomApplicationData appData,
String textID)
Adds a text ID reference.
|
void |
append(Transaction trans)
Appends the object to a transaction.
|
void |
appendSelectionInfo(Transaction trans)
Appends just selection information about the object, for Explorer selection from Editor.
|
boolean |
equals(Object o)
Checks for equality.
|
String |
getExtra()
Gets the extra text.
|
String |
getLocalInfo()
Gets local info.
|
protected boolean |
invalidateIfDifferent(String s1,
String s2)
Verifies two strings for difference (null too), if not equal, onENPObjectInvalidated is called.
|
boolean |
isUnresolved()
Checks if unresolved.
|
void |
onENPObjectInvalidated()
Invalidates the chain of objects up to the owner in order to get it sent to Eclipse.
|
void |
resolve()
Called to resolve, passed on to all children.
|
void |
setExtra(String text)
Sets the extra text string.
|
void |
setFileReferrer(String file)
Sets the file referrer for reference objects.
|
void |
setImage(int index)
Sets the image index to use, INetPhantomEclipseConstants.IMG_*.
|
void |
setLocalInfo(String info)
Sets local info.
|
void |
setOwner(IENPObjectOwner owner)
Sets the owner (once only).
|
void |
setResolved(int type,
String extra)
Sets the Object as resolved with specified parameters.
|
void |
setUnresolved()
Sets unresolved, if change occurs, invalidates the owner tree upwards.
|
void |
setUnresolved(boolean on)
Sets unresolved, if change occurs, invalidates the owner tree upwards.
|
void |
setUnresolved(boolean on,
String extra)
Sets unresolved and extra text, if change occurs, invalidates the owner tree upwards.
|
void |
setUnresolved(int type,
String extra)
Sets unresolved state with extra info, invalidates the owner tree upwards if changed.
|
public static final ENPObject[] EMPTY
public final String id
protected String extra
protected String info
public ENPObject(int type, String id)
public void setFileReferrer(String file)
protected boolean invalidateIfDifferent(String s1, String s2)
public void setOwner(IENPObjectOwner owner)
public void onENPObjectInvalidated()
onENPObjectInvalidated
in interface IENPObjectOwner
public void resolve()
public void setResolved(int type, String extra)
public void setUnresolved()
public void setUnresolved(boolean on)
public void setUnresolved(boolean on, String extra)
public void setUnresolved(int type, String extra)
public void setImage(int index)
public void setExtra(String text)
public void setLocalInfo(String info)
public String getLocalInfo()
public void add(ENPObject child)
public void append(Transaction trans)
public void appendSelectionInfo(Transaction trans)
public boolean isUnresolved()
public String getExtra()
public void addTextIDReference(PhantomApplicationData appData, String textID)
public void addHostScreenReference(PhantomRuntime runtime, String screenName)
public void addHostFieldReference(PhantomHostData hostData, String screen, String hostField)
hostData
- The host data.screen
- Screen name if available, null or empty for none.hostField
- The host field.public void addPanelReference(PhantomApplicationData appData, String panelID)
public void addObjectReference(PhantomApplicationData appData, String objectID)
public void addBarFileReference(PhantomApplicationData appData, String barFile)
public void addImageReference(PhantomRuntime runtime, String image)
public void addControlReference(PhantomPanelData panel, String controlID)
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.