public abstract class AbstractMainPanel
extends javax.swing.JPanel
implements energyLicense.LicenseCheckerListener
javax.swing.JPanel.AccessibleJPaneljavax.swing.JComponent.AccessibleJComponent| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isGroupIntegrated |
protected boolean |
isHostIntegrated |
protected java.awt.Container |
parentWindowOrContainer |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
AbstractMainPanel()
Instantiates a new main panel.
|
AbstractMainPanel(java.awt.Container parentContainer)
Instantiates a new abstract main panel that is embedded in a parent container.
|
AbstractMainPanel(EomController eomController)
Instantiates a new basic main panel with the specified
EomController. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addStatusBar()
Adds the status bar if the current panel is not integrated.
|
boolean |
closeEomUserInterface()
Closes this panel and possibly also the whole program.
|
protected abstract EomController |
getEomController()
Has to return the current or new EomController (should never be null).
|
abstract AbstractMainPanelToolBar |
getMainPanelToolBar()
Has to returns the main panel tool bar.
|
java.awt.Container |
getParentWindowOrContainer()
Returns the parent window or container.
|
StatusBar |
getStatusBar()
Gets the status bar.
|
protected abstract void |
initialize()
Initialises the main panel.
|
boolean |
isDoModelChangeCheckBeforeClosing()
Checks if there is a model change check is to do before closing.
|
boolean |
isGroupIntegrated()
Checks if this panel is integrated into an aggregation.
|
boolean |
isHostIntegrated()
Checks if this Panel is integrated into the Agent.GUI framework.
|
boolean |
isInClosableModelCondition()
Checks if the currently edited model (
TechnicalSystem, ScheduleList or TechnicalSystemGroup) is in a closable model condition. |
void |
licenseCheckIsDone()
Will be invoked if the license check was done and new result could be available.
|
void |
removeLicenseIndicator()
Removes the license indicator.
|
void |
removeListenerFromParentWindowOrContainer()
Removes the listener from parent window or container.
|
void |
setDoModelChangeCheckBeforeClosing(boolean doModelChangeCheckBeforeClosing)
Sets to do a model change check before closing.
|
void |
setGroupIntegrated()
Sets that this panel is integrated into an aggregation.
|
void |
setHostIntegrated()
Sets that the
MainPanel is integrated into a host (e.g. |
void |
setLicenseIndicator()
Adds the license indicator if the license is invalid, removes it if it is valid.
|
void |
setParentWindowOrContainer(java.awt.Container parentWindowOrContainer)
Sets the parent window or container.
|
protected void |
startUiAndNotifyObservers(java.lang.Object modelLoadNotification)
Enables to register the actual EomController.
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, 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, setVisible, unregisterKeyboardAction, updateadd, 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, validateTreeaction, 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, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleprotected java.awt.Container parentWindowOrContainer
protected boolean isHostIntegrated
protected boolean isGroupIntegrated
public AbstractMainPanel()
public AbstractMainPanel(EomController eomController)
EomController.eomController - the actual EomControllerpublic AbstractMainPanel(java.awt.Container parentContainer)
parentContainer - the parent containerprotected void startUiAndNotifyObservers(java.lang.Object modelLoadNotification)
modelLoadNotification - the model load notificationprotected abstract void initialize()
protected abstract EomController getEomController()
public abstract AbstractMainPanelToolBar getMainPanelToolBar()
public StatusBar getStatusBar()
protected void addStatusBar()
isHostIntegrated(),
isGroupIntegrated()public boolean isDoModelChangeCheckBeforeClosing()
public void setDoModelChangeCheckBeforeClosing(boolean doModelChangeCheckBeforeClosing)
doModelChangeCheckBeforeClosing - the new do model change check before closingpublic boolean isInClosableModelCondition()
TechnicalSystem, ScheduleList or TechnicalSystemGroup) is in a closable model condition.public boolean closeEomUserInterface()
public void removeListenerFromParentWindowOrContainer()
public void setParentWindowOrContainer(java.awt.Container parentWindowOrContainer)
parentWindowOrContainer - the new parent window or containerpublic java.awt.Container getParentWindowOrContainer()
public void setHostIntegrated()
MainPanel is integrated into a host (e.g. Agent.GUI).public boolean isHostIntegrated()
public void setGroupIntegrated()
public boolean isGroupIntegrated()
public void licenseCheckIsDone()
energyLicense.LicenseCheckerListenerlicenseCheckIsDone in interface energyLicense.LicenseCheckerListenerpublic void setLicenseIndicator()
public void removeLicenseIndicator()