Class RemoteControlCenterPanel
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.JPanel
-
- adams.gui.core.BasePanel
-
- adams.gui.workspace.AbstractWorkspacePanel
-
- adams.gui.tools.remotecontrolcenter.RemoteControlCenterPanel
-
- All Implemented Interfaces:
CleanUpHandler,MenuBarProvider,RemoteScriptingEngineUpdateListener,ImageObserver,MenuContainer,Serializable,Accessible
public class RemoteControlCenterPanel extends AbstractWorkspacePanel implements RemoteScriptingEngineUpdateListener
Remote control center session panel.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
-
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
-
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
-
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
-
-
Field Summary
Fields Modifier and Type Field Description protected BaseActionm_ActionFileClosethe action for closing the control center.protected BaseActionm_ActionTabCloseAllTabsthe action for closing all tabs.protected BaseActionm_ActionTabCloseTabthe action for closing a tab.protected BaseMenum_MenuTabNewTabthe submenu for a new tab.protected RemoteControlCenterManagerPanelm_Ownerthe owner.protected BaseStatusBarm_StatusBarthe statust bar.protected BaseTabbedPanem_TabbedPanethe tabbed pane.-
Fields inherited from class adams.gui.workspace.AbstractWorkspacePanel
m_MenuBar, m_TitleGenerator
-
Fields inherited from class adams.gui.core.BasePanel
m_FileChooser
-
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
-
Fields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
-
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
-
-
Constructor Summary
Constructors Constructor Description RemoteControlCenterPanel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTab(AbstractRemoteControlCenterTab tab, boolean makeVisible)Adds the tab.AbstractApplicationFramegetApplicationFrame()Returns the application frame this panel belongs to.protected StringgetDefaultTitle()Returns the default title.RemoteControlCenterLogPanelgetLogPanel()Returns the log panel.JMenuBargetMenuBar()Returns the menu bar.RemoteControlCenterManagerPanelgetOwner()Returns the owner.protected voidinitActions()Initializes the actions.protected voidinitGUI()Initializes the widgets.protected voidinitialize()For initializing members.voidlogError(String msg, String title)Logs the error message and also displays an error dialog.voidlogMessage(String msg)Logs the message.voidremoteScriptingEngineUpdated(RemoteScriptingEngineUpdateEvent e)Gets called in case the remote scripting engine got updated.voidsetOwner(RemoteControlCenterManagerPanel value)Sets the owner.protected voidupdateActions()Updates the actions.protected voidupdateMenu()updates the enabled state of the menu items.protected voidupdateTitle()Updates the title of the dialog.-
Methods inherited from class adams.gui.workspace.AbstractWorkspacePanel
cleanUp, close, finishInit, getTitle, getTitleGenerator, logError, logError, logMessage, setTitle, update
-
Methods inherited from class adams.gui.core.BasePanel
afterHide, afterShow, beforeHide, beforeShow, closeParent, getParentChild, getParentDialog, getParentFrame, getParentInternalFrame, getParentTitle, initFileChooser, main, printErrorMessage, printException, saveComponent, setEnabledCascade, setEnabledCascade, setParentTitle, setVisible
-
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
-
Methods inherited from class javax.swing.JComponent
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, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, 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, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update
-
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, 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, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
-
Methods inherited from class java.awt.Component
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, 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, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
-
-
-
Field Detail
-
m_Owner
protected RemoteControlCenterManagerPanel m_Owner
the owner.
-
m_TabbedPane
protected BaseTabbedPane m_TabbedPane
the tabbed pane.
-
m_StatusBar
protected BaseStatusBar m_StatusBar
the statust bar.
-
m_ActionFileClose
protected BaseAction m_ActionFileClose
the action for closing the control center.
-
m_ActionTabCloseTab
protected BaseAction m_ActionTabCloseTab
the action for closing a tab.
-
m_ActionTabCloseAllTabs
protected BaseAction m_ActionTabCloseAllTabs
the action for closing all tabs.
-
m_MenuTabNewTab
protected BaseMenu m_MenuTabNewTab
the submenu for a new tab.
-
-
Method Detail
-
initialize
protected void initialize()
For initializing members.- Overrides:
initializein classAbstractWorkspacePanel
-
initActions
protected void initActions()
Initializes the actions.
-
setOwner
public void setOwner(RemoteControlCenterManagerPanel value)
Sets the owner.- Parameters:
value- the owner
-
getOwner
public RemoteControlCenterManagerPanel getOwner()
Returns the owner.- Returns:
- the owner
-
getDefaultTitle
protected String getDefaultTitle()
Returns the default title.- Specified by:
getDefaultTitlein classAbstractWorkspacePanel- Returns:
- the default title
-
getMenuBar
public JMenuBar getMenuBar()
Returns the menu bar.- Specified by:
getMenuBarin interfaceMenuBarProvider- Specified by:
getMenuBarin classAbstractWorkspacePanel- Returns:
- the bar
-
addTab
public void addTab(AbstractRemoteControlCenterTab tab, boolean makeVisible)
Adds the tab.- Parameters:
tab- the tab to addmakeVisible- whether to make visible or just add
-
updateTitle
protected void updateTitle()
Updates the title of the dialog.- Specified by:
updateTitlein classAbstractWorkspacePanel
-
updateMenu
protected void updateMenu()
updates the enabled state of the menu items.- Specified by:
updateMenuin classAbstractWorkspacePanel
-
updateActions
protected void updateActions()
Updates the actions.
-
logMessage
public void logMessage(String msg)
Logs the message.- Specified by:
logMessagein classAbstractWorkspacePanel- Parameters:
msg- the log message
-
logError
public void logError(String msg, String title)
Logs the error message and also displays an error dialog.- Specified by:
logErrorin classAbstractWorkspacePanel- Parameters:
msg- the error messagetitle- the title for the dialog
-
remoteScriptingEngineUpdated
public void remoteScriptingEngineUpdated(RemoteScriptingEngineUpdateEvent e)
Gets called in case the remote scripting engine got updated.- Specified by:
remoteScriptingEngineUpdatedin interfaceRemoteScriptingEngineUpdateListener- Parameters:
e- the event
-
getApplicationFrame
public AbstractApplicationFrame getApplicationFrame()
Returns the application frame this panel belongs to.- Returns:
- the frame, null if not part of an app frame
-
getLogPanel
public RemoteControlCenterLogPanel getLogPanel()
Returns the log panel.- Returns:
- the panel, null if no owner set
-
-