public class FPMIApp
extends javax.swing.JDesktopPane
Modifier and Type | Class and Description |
---|---|
static class |
FPMIApp.ShutdownEvent
Javabean-style class used for the shutdown allowed script
|
static interface |
FPMIApp.WindowInitializer
Implementors of this class will be used to initialize a window right before its bindings are connected and
started
up.
|
javax.swing.JDesktopPane.AccessibleJDesktopPane
javax.swing.JLayeredPane.AccessibleJLayeredPane
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_QUERY_THREAD_COUNT |
static int |
DEFAULT_UPDATE_THREAD_COUNT |
protected DiagnosticsDialog |
diagnosticsDialog |
protected PopupWindowParent |
diagnosticsParent |
static java.lang.String |
TIMEZONE_CLIENT |
static java.lang.String |
TIMEZONE_GATEWAY |
DEFAULT_LAYER, DRAG_LAYER, FRAME_CONTENT_LAYER, LAYER_PROPERTY, MODAL_LAYER, PALETTE_LAYER, POPUP_LAYER
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
FPMIApp(ClientContext context,
int threadCount,
int updateThreadCount)
FHMIApp constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addDesktopListener(DesktopListener l) |
protected void |
addImpl(java.awt.Component frame,
java.lang.Object constraints,
int layer) |
void |
applyDiff(Project diff,
ProgressListener listener)
Applies the given project as a diff.
|
static FPMIApp |
createApp(ClientContext context,
ProgressListener listener) |
protected void |
fireWindowEvent(FPMIWindow window,
int eventType) |
VisionClientContext |
getAdapterContext() |
FPMIDesktopManager.AxisPrecedence |
getAxisPrecedence() |
ClientContext |
getClientContext() |
ClientPanel |
getClientPanel() |
ClientDatasetUtilities |
getDatasetUtil() |
java.lang.String |
getDefaultTimeZone() |
FPMIFileUtilities |
getFileUtil() |
WindowUtilities |
getGuiUtil() |
static FPMIApp |
getInstance()
Deprecated.
|
long |
getLastActivity() |
LaunchContext |
getLaunchContext() |
ClientLocalizationManager |
getLocalizationManager() |
java.awt.Font |
getMenuFont() |
java.awt.Dimension |
getMinSize() |
NavUtilities |
getNavUtil() |
java.util.List<FPMIWindow> |
getOpenedWindows()
Returns a List<FHMIWindow> of all open windows
|
java.lang.String |
getPath(FPMIWindow window) |
PrintUtilities |
getPrintUtil() |
ProjectTagManager |
getProjectTags() |
ClientScriptConfig |
getScriptConfig() |
ScriptManager |
getScriptManager() |
SecurityUtilities |
getSecurityUtil() |
java.lang.String |
getSelectedWindowTitle() |
ClientSystemUtilities |
getSystemUtil() |
TemplateManager |
getTemplateManager() |
int |
getThreadCount() |
int |
getUpdateBase() |
int |
getUpdateThreadCount() |
FPMIWindow |
getWindow(long id)
Returns the opened window with resource id
id . |
FPMIWindow |
getWindow(java.lang.String path)
Returns the opened window of name
name . |
WindowCache |
getWindowCache() |
FPMIWindow[] |
getWindows(long id)
Returns all opened windows with the given resource id.
|
FPMIWindow[] |
getWindows(java.lang.String path)
Returns all opened windows with the given name.
|
boolean |
isHideWindowsMenu() |
boolean |
isRestrictFloatingFrames() |
boolean |
isTouchscreenMode() |
void |
layoutDocks()
This function verifies the layout of the docked windows, by checking to see if they are in the correct position,
and moving/resizing them if necessary.
|
void |
notifyWindowDeleted(long id)
Removes (permanently) the window of the specified name.
|
javax.swing.RootPaneContainer |
openWindow(long id) |
javax.swing.RootPaneContainer |
openWindow(java.lang.String path)
Opens, or brings to front, the window with name
name . |
javax.swing.RootPaneContainer |
openWindow(java.lang.String path,
FPMIApp.WindowInitializer initializer) |
javax.swing.RootPaneContainer |
openWindow(java.lang.String path,
FPMIApp.WindowInitializer initializer,
boolean openAdditional) |
void |
paintComponent(java.awt.Graphics _g) |
void |
remove(java.awt.Component c) |
void |
removeDesktopListener(DesktopListener l) |
void |
setAxisPrecedence(FPMIDesktopManager.AxisPrecedence axisPrecedence) |
void |
setBackground(java.awt.Color bg) |
void |
setBounds(int x,
int y,
int w,
int h) |
void |
setDefaultDSN(java.lang.String string)
Deprecated.
|
void |
setDefaultTimeZone(java.lang.String timezoneId) |
void |
setDeployParams(java.util.Map map)
Deprecated.
|
void |
setDesignImagePath(java.lang.String string)
Deprecated.
|
void |
setGateway(java.lang.String x) |
void |
setHideWindowsMenu(boolean hideWindowsMenu) |
static void |
setInstance(FPMIApp i)
Sets the publicly accessible static FHMIApp instance
|
protected void |
setLastActivity(long lastActivity) |
void |
setMenuFont(java.awt.Font menuFont) |
void |
setMinSize(java.awt.Dimension minSize) |
void |
setPaused(boolean paused) |
void |
setProjectTags(ProjectTagManager projectTags) |
void |
setRestrictFloatingFrames(boolean restrictFloatingFrames) |
void |
setScriptConfig(ClientScriptConfig newConfig,
boolean install) |
void |
setSelectedWindowTitle(java.lang.String selectedWindowTitle) |
void |
setShowActiveThreads(boolean b)
Deprecated.
|
void |
setThreadCount(int i) |
void |
setTouchscreenMode(boolean touchscreenMode) |
void |
setUpdateBase(int i) |
void |
setUpdateThreadCount(int i) |
void |
setWindowOpener(WindowOpener windowOpener) |
void |
showFPMIDiagnostics() |
void |
shutdown(boolean runScript)
Shuts down this FHMIApp gracefully.
|
boolean |
shutdownAllowed()
This function call's the applications shutdown allowed event handler, which can cancel the shutdown event, in
which case this function will return false.
|
void |
shutdownDesigner()
Special version of shutdown for use in the designer.
|
void |
startup(ClientPanel clientPanel,
WindowStateCollection windowState,
java.lang.String[] startupWindows,
java.util.Map<java.lang.String,org.python.core.PyObject> params)
Starts up the FPMIApp.
|
void |
startupDesigner(java.util.TimeZone gatewayTimeZone) |
java.lang.String |
toString() |
getAccessibleContext, getAllFrames, getAllFramesInLayer, getDesktopManager, getDragMode, getSelectedFrame, getUI, getUIClassID, paramString, remove, removeAll, selectFrame, setComponentZOrder, setDesktopManager, setDragMode, setSelectedFrame, setUI, updateUI
getComponentCountInLayer, getComponentsInLayer, getComponentToLayer, getIndexOf, getLayer, getLayer, getLayeredPaneAbove, getObjectForLayer, getPosition, highestLayer, insertIndexForLayer, isOptimizedDrawingEnabled, lowestLayer, moveToBack, moveToFront, paint, putLayer, setLayer, setLayer, setPosition
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, removeContainerListener, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final int DEFAULT_QUERY_THREAD_COUNT
public static final int DEFAULT_UPDATE_THREAD_COUNT
public static final java.lang.String TIMEZONE_GATEWAY
public static final java.lang.String TIMEZONE_CLIENT
protected DiagnosticsDialog diagnosticsDialog
protected PopupWindowParent diagnosticsParent
public FPMIApp(ClientContext context, int threadCount, int updateThreadCount)
instance
variable to this. Starts up the
QueryManager. Starts up the ScriptManager.instance
,
QueryManager
,
ScriptManager
public static FPMIApp createApp(ClientContext context, ProgressListener listener) throws java.lang.Exception
java.lang.Exception
public ClientContext getClientContext()
public void applyDiff(Project diff, ProgressListener listener) throws java.lang.Exception
diff
- java.lang.Exception
public void paintComponent(java.awt.Graphics _g)
paintComponent
in class javax.swing.JComponent
public void setBounds(int x, int y, int w, int h)
setBounds
in class java.awt.Component
public void setGateway(java.lang.String x)
protected void addImpl(java.awt.Component frame, java.lang.Object constraints, int layer)
addImpl
in class javax.swing.JDesktopPane
public void remove(java.awt.Component c)
remove
in class javax.swing.JDesktopPane
public void layoutDocks()
public void notifyWindowDeleted(long id)
id
- public void startupDesigner(java.util.TimeZone gatewayTimeZone)
public void startup(ClientPanel clientPanel, WindowStateCollection windowState, java.lang.String[] startupWindows, java.util.Map<java.lang.String,org.python.core.PyObject> params)
public boolean shutdownAllowed()
public void shutdown(boolean runScript)
public void shutdownDesigner()
public void setPaused(boolean paused)
public ClientLocalizationManager getLocalizationManager()
public javax.swing.RootPaneContainer openWindow(long id)
public javax.swing.RootPaneContainer openWindow(java.lang.String path)
name
.path
- the path of the window to open/selectpublic javax.swing.RootPaneContainer openWindow(java.lang.String path, FPMIApp.WindowInitializer initializer)
public javax.swing.RootPaneContainer openWindow(java.lang.String path, FPMIApp.WindowInitializer initializer, boolean openAdditional)
public FPMIWindow getWindow(java.lang.String path)
name
. If there is no open window with the given name, null
is returned.path
- The path of the window to findpublic java.lang.String getPath(FPMIWindow window)
public FPMIWindow[] getWindows(java.lang.String path)
path
- public FPMIWindow getWindow(long id)
id
. If there is no open window with the given id,
null is returned.id
- public FPMIWindow[] getWindows(long id)
id
- public java.util.List<FPMIWindow> getOpenedWindows()
public void addDesktopListener(DesktopListener l)
public void removeDesktopListener(DesktopListener l)
protected void fireWindowEvent(FPMIWindow window, int eventType)
public WindowCache getWindowCache()
public TemplateManager getTemplateManager()
public java.lang.String toString()
toString
in class java.awt.Component
@Deprecated public static FPMIApp getInstance()
public static void setInstance(FPMIApp i)
i
- public int getThreadCount()
public void setThreadCount(int i)
@Deprecated public void setShowActiveThreads(boolean b)
public int getUpdateThreadCount()
public void setUpdateThreadCount(int i)
@Deprecated public void setDesignImagePath(java.lang.String string)
@Deprecated public void setDeployParams(java.util.Map map)
public ClientScriptConfig getScriptConfig()
public void setScriptConfig(ClientScriptConfig newConfig, boolean install)
public int getUpdateBase()
public void setUpdateBase(int i)
@Deprecated public void setDefaultDSN(java.lang.String string)
string
- public boolean isTouchscreenMode()
public void setTouchscreenMode(boolean touchscreenMode)
public java.awt.Font getMenuFont()
public void setMenuFont(java.awt.Font menuFont)
public void setBackground(java.awt.Color bg)
setBackground
in class javax.swing.JComponent
public boolean isHideWindowsMenu()
public void setHideWindowsMenu(boolean hideWindowsMenu)
public java.awt.Dimension getMinSize()
public void setMinSize(java.awt.Dimension minSize)
public void setAxisPrecedence(FPMIDesktopManager.AxisPrecedence axisPrecedence)
public FPMIDesktopManager.AxisPrecedence getAxisPrecedence()
public void setRestrictFloatingFrames(boolean restrictFloatingFrames)
public boolean isRestrictFloatingFrames()
public long getLastActivity()
protected void setLastActivity(long lastActivity)
public java.lang.String getDefaultTimeZone()
public void setDefaultTimeZone(java.lang.String timezoneId)
public ProjectTagManager getProjectTags()
public void setProjectTags(ProjectTagManager projectTags)
public VisionClientContext getAdapterContext()
public ScriptManager getScriptManager()
public NavUtilities getNavUtil()
public WindowUtilities getGuiUtil()
public PrintUtilities getPrintUtil()
public ClientDatasetUtilities getDatasetUtil()
public FPMIFileUtilities getFileUtil()
public SecurityUtilities getSecurityUtil()
public java.lang.String getSelectedWindowTitle()
public void setSelectedWindowTitle(java.lang.String selectedWindowTitle)
public LaunchContext getLaunchContext()
public ClientSystemUtilities getSystemUtil()
public ClientPanel getClientPanel()
public void setWindowOpener(WindowOpener windowOpener)
public void showFPMIDiagnostics()