public class PControl extends Object implements MouseListener, MouseMotionListener, NetPhantomConstants, DocumentListener, UserEventListener, ContainerListener
create method in order to read the basic control data from the create transaction.| Modifier and Type | Field and Description |
|---|---|
Bounds | boundsCurrent bounds of the control. |
protected PPanel | panelThe control is inside this panel. |
static int | TYPE_BUTTONControl type: push button. |
static int | TYPE_CHECKControl type: check box. |
static int | TYPE_COMBOControl type: combination box. |
static int | TYPE_FRAMEControl type: frame. |
static int | TYPE_GRAPHControl type: business graphics. |
static int | TYPE_GROUPControl type: group box. |
static int | TYPE_INOUTControl type: entry field. |
static int | TYPE_LISTControl type: list box. |
static int | TYPE_MLEControl type: multiple-line entry field. |
static int | TYPE_NOTEControl type: notebook. |
static int | TYPE_OUTControl type: output text. |
static int | TYPE_RADIOControl type: radio button. |
static int | TYPE_RECTControl type: rectangle. |
static int | TYPE_SPINControl type: spin button. |
static int | TYPE_SUBControl type: subwindow. |
static int | TYPE_TEXTControl type: static text. |
static int | TYPE_TREEControl type: tree. |
static int | TYPE_UNKNOWNControl type: unknown. |
static int | TYPE_USERControl type: user window. |
ACTION_CLOSEWINDOW, ACTION_CONTROL, ACTION_HOSTKEY, ACTION_MENU, ACTION_NONE, ACTION_NOTEBOOKPAGE, ACTION_POPUPMENU, BUILD_NUMBER, BUILD_STRING, CC_BACKGROUND, CC_BOTH, CC_FOREGROUND, CC_NONE, CLIPBOARD_GET, CLIPBOARD_SET, DATEF_DMY, DATEF_MDY, DATEF_SYSTEM, DATEF_YMD, DDE_ADVISE, DDE_EXECUTE, DDE_INITIATE, DDE_POKE, DDE_REQUEST, DDE_TERMINATE, DDE_UNADVISE, DDE_UPDATE, DDEVAR_DISABLE, DDEVAR_ENABLE, DDEVAR_REQUEST, DDEVAR_SET, DDEVAR_VALIDATE, EFT_AMOUNT, EFT_DATE, EFT_DATEAMOUNT, EFT_NORMAL, EFT_PASSWORD, EVENT_CHAR, EVENT_CHECK, EVENT_CLICK, EVENT_COMMAND, EVENT_DBLCLICK, EVENT_DDECONNECTION, EVENT_DDEDATA, EVENT_DDEERROR, EVENT_DDEEXECUTE, EVENT_DDEINVALIDATE, EVENT_DDEPOKE, EVENT_DDEREQUEST, EVENT_DEFOCUS, EVENT_FOCUS, EVENT_PAGEDOWN, EVENT_PAGEUP, EVENT_SELECT, EVENT_UNKNOWN, EVENT_USERCHANGE, EXTENDEDINFO_IDS_TO_CLIENT, FOCUSTYPE_CLIENTTARGET, FOCUSTYPE_CONTROL, FOCUSTYPE_NONE, ICON_CRITICAL, ICON_INFORMATION, ICON_NOICON, ICON_QUERY, ICON_WARNING, J_AUTO, J_BOTTOM, J_BOTTOMLEFT, J_BOTTOMRIGHT, J_CENTER, J_LEFT, J_RIGHT, J_TOP, J_TOPLEFT, J_TOPRIGHT, MAX_PANELS_PER_SESSION, MAX_SESSIONS, MB_ABORTRETRYIGNORE, MB_CANCEL, MB_ENTER, MB_ENTERCANCEL, MB_OK, MB_OKCANCEL, MB_RETRYCANCEL, MB_YESNO, MB_YESNOCANCEL, MBID_CANCEL, MBID_DEFAULT, MBID_ENTER, MBID_IGNORE, MBID_NO, MBID_OK, MBID_RETRY, MBID_YES, MS_MOVE, MS_NONE, MS_SIZE, NETPHANTOM_COPYRIGHT, NETPHANTOM_COPYRIGHT2, NETPHANTOM_VERSION, OBJEVENT_CHECK, OBJEVENT_CLICK, OBJEVENT_DBLCLICK, OBJEVENT_DEFOCUS, OBJEVENT_FOCUS, OBJEVENT_SELECT, OBJEVENT_USERCHANGE, PANELCREATE_APPPANEL, PANELCREATE_DANGLINGPANEL, PANELCREATE_DLGFRAME, PANELCREATE_EXTENDEDINFO, PANELCREATE_ICON, PANELCREATE_INDIVIDUALSIZE, PANELCREATE_POPUP, REPLYTYPE_CLIENTEXECUTE, REPLYTYPE_CLIPBOARD, REPLYTYPE_DDE, REPLYTYPE_FFONTLIST, REPLYTYPE_MESSAGEBOX, REPLYTYPE_REPORT, REPLYTYPE_SAVEPROPS, REPLYTYPE_TERMMARK, RPRT_CANCELPRINTJOB, RPRT_CLOSEPRINTJOB, RPRT_CONTPRINTJOB, RPRT_OPENPRINTJOB, RPRT_PRINTJOBCANCLD, RPRT_PRINTJOBCLOSED, RPRT_PRINTJOBCONT, RPRT_PRINTJOBOPENED, RPRT_PRINTJOBSTARTED, RPRT_STARTPRINTJOB, SELMODE_NORMAL, SELMODE_NOTALLOWED, SELMODE_REQUIRED, SELTYPE_MULTIPLE, SELTYPE_SINGLE, SEPARATOR, SEPARATORCHAR, TEST_BUILD, TRANS_APPLICATIONCHANGE, TRANS_CALLOBJECT, TRANS_CANCELEXIT, TRANS_CLEARLOCK, TRANS_CLIENTEXECUTE, TRANS_CLIENTJARS, TRANS_CLIENTTEXTTABLE, TRANS_CLIENTUPDATED, TRANS_CLIENTUPDATEDNOLOCK, TRANS_CLIPBOARD, TRANS_CLIPBOARDCOMPONENT, TRANS_CLOSETERMINALWINDOW, TRANS_CONNECTIONREFUSED, TRANS_COUNTRYINFO, TRANS_CREATEPANEL, TRANS_CREATESESSION, TRANS_DDE, TRANS_DDEEVENT, TRANS_DDEEVENTREPLY, TRANS_DDEVAREVENT, TRANS_DISPLAYHELP, TRANS_DISPLAYTERMINAL, TRANS_DISPLAYTOOLTIPS, TRANS_ENDCONVERSATION, TRANS_EXIT, TRANS_FONTSUBSTITUTION, TRANS_HOSTCOLORTABLE, TRANS_HOSTPRINT, TRANS_HWND, TRANS_INACTIVESESSION, TRANS_INITIATE, TRANS_KEEPALIVE, TRANS_LOCALE, TRANS_LOGEVENT, TRANS_MESSAGEBOX, TRANS_MESSAGEBOXWITHREPLY, TRANS_MODALREPLY, TRANS_MULTTERM, TRANS_PING, TRANS_PRINTCOMPONENT, TRANS_PRINTPANEL, TRANS_PRINTREPORT, TRANS_PRTWINKEY, TRANS_RECONNECT, TRANS_REDIRECTION, TRANS_REMOVEPANELATLEVEL, TRANS_REMOVETERMINAL, TRANS_RENEGOTIATESSL, TRANS_REQUESTHELP, TRANS_RESOURCEURL, TRANS_SELECTSESSION, TRANS_SESSIONACTIVE, TRANS_SESSIONSELECTED, TRANS_SETCOLORS, TRANS_SETFOCUS, TRANS_SETLOCK, TRANS_SETPANELNESTLEVEL, TRANS_SETUPPARAMS, TRANS_SHOWDOCUMENT, TRANS_SOCKET, TRANS_SOUNDALARM, TRANS_STARTUPINFO, TRANS_STOPSESSION, TRANS_TERMINALDATA, TRANS_TERMINALUPDATE, TRANS_TERMINALWINDOW, TRANS_TERMWINTEXT, TRANS_UPDATEAPPLICATION, TRANS_UPDATEPANEL, TRANS_USEREXITPRTKEY, TRANSACTION_VERSION, TS_CLOSE, TS_DATA, TS_ERROR, TS_OPEN, VERSION_MAJOR, VERSION_MINOR, VERSION_NUMBER, VERSION_STRING, VSIGN_MINUS, VSIGN_NONE, VSIGN_PLUSMINUS, YEARF_6DIG, YEARF_8DIG, YEARF_EXP8| Constructor and Description |
|---|
PControl() |
| Modifier and Type | Method and Description |
|---|---|
void | changedUpdate(DocumentEvent e)The entry field item has changed. |
void | componentAdded(ContainerEvent e)Invoked when a component has been added to the container. |
void | componentRemoved(ContainerEvent e)Invoked when a component has been removed from the container. |
int | getBackgroundIndex()Gets the background color index of this control (zero is none). |
Component | getComponent() |
Container | getContainer() |
String | getControlID()Gets the control ID. |
int | getFont()Gets the font index of this control. |
int | getForegroundIndex()Gets the foreground color index of this control (zero is none). |
int | getIndex()Returns the index of the control in the panel. |
Phantom | getPhantomApplet()Gets the reference to the Phantom instance (applet). |
se.entra.phantom.client.PCPopupMenu | getPopupMenu()Gets the pop-up menu associated with this control (null for none). |
PPanel | getPPanel() |
SessionManager | getSessionManager()Gets the session manager. |
Color | getStandardBackground()Get control standard background color. |
Color | getStandardForeground()Get control standard foreground color. |
String | getText(Rectangle area)Gets the text for the clipboard operation when performing a rectangle marking in the panel. |
String | getTooltipText()Gets the tooltip text of this control, null for none. |
int | getType()Gets the type of control (see values TYPE_*). |
void | insertUpdate(DocumentEvent e)The entry field item is changed due to an insertion of text. |
boolean | isEnabled()Checks if this control is enabled. |
boolean | isUserChanged()Access method for the userChanged flag. |
void | mouseClicked(MouseEvent e)Invoked when the mouse has been clicked on a component. |
void | mouseDragged(MouseEvent e)Mouse dragged/moved. |
void | mouseEntered(MouseEvent e)Invoked when the mouse enters a component (does nothing). |
void | mouseExited(MouseEvent e)Invoked when the mouse exits a component (does nothing). |
void | mouseMoved(MouseEvent e) |
void | mousePressed(MouseEvent e)Invoked when a mouse button has been pressed on a component. |
void | mouseReleased(MouseEvent e) |
void | notifyUserEvent(int event)Notification of a user event. |
void | removeUpdate(DocumentEvent e)The entry field item is changed due to text removal. |
void | setEnabled(boolean s)Sets the enabled state of this control. |
void | setMarkingAllowed(boolean on)Sets if marking is allowed in the panel. |
void | setTabHandled()Check if this control skips the tab stop or not. |
void | setUserChanged(boolean isUserChanged)Access method to set the userChanged flag from the actual control. |
void | setUserChangeLightEvent(boolean userChangeLightEvent)Set User change light-event on every document change. |
protected void | showPopupMenu(se.entra.phantom.client.PCPopupMenu popupMenu, Component component, int x, int y, int index, int column)Shows the pop-up menu. |
public static final int TYPE_UNKNOWN
public static final int TYPE_TEXT
public static final int TYPE_INOUT
public static final int TYPE_LIST
public static final int TYPE_BUTTON
public static final int TYPE_CHECK
public static final int TYPE_RADIO
public static final int TYPE_OUT
public static final int TYPE_GROUP
public static final int TYPE_RECT
public static final int TYPE_FRAME
public static final int TYPE_GRAPH
public static final int TYPE_USER
public static final int TYPE_MLE
public static final int TYPE_COMBO
public static final int TYPE_SPIN
public static final int TYPE_SUB
public static final int TYPE_NOTE
public static final int TYPE_TREE
public Bounds bounds
protected PPanel panel
public String getControlID()
public void componentAdded(ContainerEvent e)
componentAdded in interface ContainerListenerpublic void componentRemoved(ContainerEvent e)
componentRemoved in interface ContainerListenerpublic Phantom getPhantomApplet()
public SessionManager getSessionManager()
public PPanel getPPanel()
public Component getComponent()
public Container getContainer()
public int getFont()
public int getForegroundIndex()
public int getBackgroundIndex()
public int getType()
public boolean isEnabled()
public void setEnabled(boolean s)
public int getIndex()
public void setTabHandled()
public se.entra.phantom.client.PCPopupMenu getPopupMenu()
public void mouseClicked(MouseEvent e)
This will display a pop-up menu if mouse button 2 (the right one) is pressed inside the control. Actually, it's not only the button 2 or the right one, rather the AWT implementation (see MouseEvent.isPopupTrigger()).
mouseClicked in interface MouseListenerpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenerpublic void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListenerpublic void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListenerpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerprotected void showPopupMenu(se.entra.phantom.client.PCPopupMenu popupMenu,
Component component,
int x,
int y,
int index,
int column)public void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenerpublic Color getStandardForeground()
public Color getStandardBackground()
public boolean isUserChanged()
public void setUserChanged(boolean isUserChanged)
public void setUserChangeLightEvent(boolean userChangeLightEvent)
public void changedUpdate(DocumentEvent e)
changedUpdate in interface DocumentListenerpublic void insertUpdate(DocumentEvent e)
insertUpdate in interface DocumentListenerpublic void removeUpdate(DocumentEvent e)
removeUpdate in interface DocumentListenerpublic void notifyUserEvent(int event)
notifyUserEvent in interface UserEventListenerpublic void setMarkingAllowed(boolean on)
public String getText(Rectangle area)
public String getTooltipText()
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© 2026 Mindus SARL. All rights reserved.