public class PhantomEditor extends Phantom
JApplet.AccessibleJApplet
Applet.AccessibleApplet
Panel.AccessibleAWTPanel
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
IAppListener.QuitReply
appBgColor, applicationParameters, connectFrame, connectText, doPlacePanelsInBrowser, isApplet, isFrameLess, isParallelRun, sessionManager
accessibleContext, rootPane, rootPaneCheckingEnabled
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ACTION_CLOSEWINDOW, ACTION_CONTROL, ACTION_HOSTKEY, ACTION_MENU, ACTION_NONE, ACTION_NOTEBOOKPAGE, ACTION_POPUPMENU, 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, 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, VSIGN_MINUS, VSIGN_NONE, VSIGN_PLUSMINUS, YEARF_6DIG, YEARF_8DIG, YEARF_EXP8
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Modifier and Type | Method and Description |
---|---|
protected void |
_setClosingWindow(Window owner,
boolean on)
Changes the state of closing window.
|
protected int |
_showOptionDialog(Component parentComponent,
Object message,
String title,
int optionType,
int messageType,
Icon icon,
Object[] options,
Object initialValue)
Brings up a dialog with a specified icon, where the initial
choice is determined by the
initialValue parameter and
the number of choices is determined by the optionType
parameter. |
void |
adjustPanelPosition(JDialog dialog,
PPanel panel,
Rectangle bounds)
Called just before a pop-up panel is about to be displayed and allows a superclass
to change to position of the window before it is displayed.
|
TerminalWindow |
createTerminalWindow(Container terminalParent,
Container container,
Color[] cgaColors,
String ii,
String im,
String mw,
String caps,
String num,
int cx,
int cy,
int x,
int y,
char[] cd,
int[] ad,
TerminalWindowListener listener)
Create the terminal window.
|
protected void |
disposeConnectFrame(Window w)
Closes connection window.
|
protected int |
exitMessage0(String msg)
Shows a message Dialog with an Exit message.
|
String |
getAppletInfo()
Gets the Applet information.
|
Set<Window> |
getEditorWindows()
Gets the Editor's windows.
|
protected boolean |
isClientSessionLocked(PPanel requestingPanel)
Method checked for panel lock in every panel.
|
boolean |
isEditor()
Checks if this is the editor or not.
|
static void |
lockClientSession(boolean on)
Locks or not the session.
|
void |
logConsole(String text)
Prints an event to the Java Console, defaults to System.out.
|
void |
notifyModalPanelCreation(JDialog dialog)
For the editor, this notifies that a modal panel has been created.
|
protected void |
onMessageBoxCountChanged()
Called when the message box count has changed.
|
void |
onNewWindow(Window w)
Called when a new panel Frame or Dialog window is created.
|
protected void |
onNextDialogOwner(JFrame frame,
JDialog dialog)
Called when the before the next dialog is to be shown, modally or not.
|
protected void |
onPopupMenuDisposed()
Apply the Designer Look-and-Feel because an Editor pop-up menu has been
hidden.
|
protected void |
onPopupMenuSoon()
Apply the Editor Look-and-Feel because a pop-up menu will be shown.
|
protected void |
onTerminalWindowDisplayed(PPanel panel,
Terminal terminal)
Called when the terminal window has been displayed.
|
void |
onUITweaks(UITweaks tweaks)
Called when new tweaks are applied.
|
protected int |
setLAF(String s)
Sets a look-and-feel from a string that can be separated by comma or colon.
|
protected int |
showOptionDialog0(Component parentComponent,
Object[] components,
String message,
String title,
int optionType,
int messageType,
Icon icon,
Object[] options,
Object initialValue)
For the editor, overridden to handle menu states in the panel part.
|
_runInAWT, actionPerformed, addConnectTitle, appletDragFinished, appletDragStarted, appletRestored, createAppletDesktopPane, createAppletPanel, createConnectFrame, createDesktop, createDirectConnection, createImagePanel, createSessionManager, createSocket, destroy, displayAboutBox, doShowPrintDialogOnce, exitMessage, fixMessageBox, getAudioClip, getAuth, getCodeBase, getDefaultIcon, getDefaultIcons, getDefaultImages, getDesktopPane, getDocumentBase, getImage, getImage, getImage, getImage, getImage, getImage, getImageManager, getMessageBoxCount, getMessageOnExit, getParameters, getPhantomApplet, getPhantomCodeBase, getSessionManager, getStringParameter, getStringParameterArray, getSystemInfo, getSystemProperties, getTopmostWindow, getTraceInterface, getTweaks, getValueParameter, getValuesParameter, init, initDefaultFontScale, initiateServer, initStuff, isApplet, isAppletDragStart, isDragDropEnabled, isDraggable, isMessageBoxDisplayed, isVerbose, logEvent, logEvent, logInternalProgramError, logInternalProgramError, main, main, main, onAWTInit, play, play, propertyChange, redirectSocket, removeConnectWindow, requestQuit, run, runInAWT, sendTransaction, sessionReconnected, setAppletCloseListener, setBounds, setConnectText, setDefaultIcons, setDefaultIcons, setDesktopContainer, setLAFClass, setLAFClass, setLAFClass, setMessageAtExit, setTraceInterface, showConnectFrame, showMessageDialog, showMessageDialog, showOptionDialog, showOptionDialog, start, startInit, stop, vetoableChange
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isRootPaneCheckingEnabled, paramString, remove, repaint, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
getAppletContext, getAudioClip, getLocale, getParameter, getParameterInfo, isActive, isValidateRoot, newAudioClip, resize, resize, setStub, showStatus
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, revalidate, setBackground, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static void lockClientSession(boolean on)
protected boolean isClientSessionLocked(PPanel requestingPanel)
The default implementation is to return false.
isClientSessionLocked
in class Phantom
requestingPanel
- The panel requesting the client session lock state.protected int setLAF(String s)
setLAF
in class Phantom
s
- The Look-and-Feel name such as "system", "metal", "jlf", or the
exact class name (case insensitive, a string that is contained
in the Look-and-Feel name itself (except if it's "Windows" and
Look-and-Feel name is "Windows Classic").protected void _setClosingWindow(Window owner, boolean on)
_setClosingWindow
in class Phantom
protected int _showOptionDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue)
initialValue
parameter and
the number of choices is determined by the optionType
parameter.
If optionType
is YES_NO_OPTION
,
or YES_NO_CANCEL_OPTION
and the options
parameter is null
,
then the options are
supplied by the look and feel.
The messageType
parameter is primarily used to supply
a default icon from the look and feel.
_showOptionDialog
in class Phantom
parentComponent
- determines the Frame
in which the dialog is displayed; if
null
, or if the
parentComponent
has no
Frame
, a
default Frame
is usedmessage
- the Object
to displaytitle
- the title string for the dialogoptionType
- an integer designating the options available on the
dialog: DEFAULT_OPTION
,
YES_NO_OPTION
,
YES_NO_CANCEL_OPTION
,
or OK_CANCEL_OPTION
messageType
- an integer designating the kind of message this is,
primarily used to determine the icon from the
pluggable Look and Feel: ERROR_MESSAGE
,
INFORMATION_MESSAGE
,
WARNING_MESSAGE
,
QUESTION_MESSAGE
,
or PLAIN_MESSAGE
icon
- the icon to display in the dialogoptions
- an array of objects indicating the possible choices
the user can make; if the objects are components, they
are rendered properly; non-String
objects are
rendered using their toString
methods;
if this parameter is null
,
the options are determined by the Look and FeelinitialValue
- the object that represents the default selection
for the dialog; only meaningful if options
is used; can be null
CLOSED_OPTION
if the user closed
the dialogHeadlessException
- if
GraphicsEnvironment.isHeadless
returns
true
GraphicsEnvironment.isHeadless()
public String getAppletInfo()
getAppletInfo
in class Phantom
protected void onTerminalWindowDisplayed(PPanel panel, Terminal terminal)
onTerminalWindowDisplayed
in class Phantom
panel
- the terminal window Phantom panelterminal
- the terminal window instanceprotected int exitMessage0(String msg)
exitMessage0
in class Phantom
msg
- A string to display in the message box.public boolean isEditor()
public void notifyModalPanelCreation(JDialog dialog)
notifyModalPanelCreation
in class Phantom
public TerminalWindow createTerminalWindow(Container terminalParent, Container container, Color[] cgaColors, String ii, String im, String mw, String caps, String num, int cx, int cy, int x, int y, char[] cd, int[] ad, TerminalWindowListener listener)
createTerminalWindow
in class Phantom
protected void disposeConnectFrame(Window w)
disposeConnectFrame
in class Phantom
public void adjustPanelPosition(JDialog dialog, PPanel panel, Rectangle bounds)
adjustPanelPosition
in class Phantom
protected int showOptionDialog0(Component parentComponent, Object[] components, String message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue)
showOptionDialog0
in class Phantom
protected void onMessageBoxCountChanged()
onMessageBoxCountChanged
in class Phantom
protected void onNextDialogOwner(JFrame frame, JDialog dialog)
This method is ALWAYS called in the AWT thread.
onNextDialogOwner
in class Phantom
frame
- the Frame owner of the dialog.dialog
- The dialog that will be shown.public void logConsole(String text)
logConsole
in interface ILogConsole
logConsole
in class Phantom
public void onUITweaks(UITweaks tweaks)
onUITweaks
in interface IPhantomFontScaling
onUITweaks
in class Phantom
tweaks
- The new tweaks for the Look-and-Feel.public Set<Window> getEditorWindows()
getEditorWindows
in interface IPhantomFontScaling
getEditorWindows
in class Phantom
public void onNewWindow(Window w)
onNewWindow
in class Phantom
w
- The Window created (PJFrame, PJDialog or JDialog).protected void onPopupMenuSoon()
onPopupMenuSoon
in class Phantom
protected void onPopupMenuDisposed()
onPopupMenuDisposed
in class Phantom
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.