Package de.mid.innovator.m2msdk.ui
Class SuccessFrame
java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
de.mid.innovator.m2msdk.ui.WizardHorizontalFrame
de.mid.innovator.m2msdk.ui.TabbedFrame
de.mid.innovator.m2msdk.ui.SuccessFrame
- All Implemented Interfaces:
ConfigurableItemIF,FrameInterface,IdentifierAble,MouseMotionListener,WindowListener,ImageObserver,MenuContainer,Serializable,EventListener,Accessible,ChangeListener,RootPaneContainer,WindowConstants
Frame telling the user about wizard success.
- Version:
- 10.1.1
- Author:
- jmback
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.awt.Window
Window.TypeNested classes/interfaces inherited from class java.awt.Component
Component.BaselineResizeBehavior -
Field Summary
Fields inherited from class java.awt.Frame
ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, NORMALFields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTHFields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckConstraints(MappingElementIF sourceElement, MappingElementList targetElement, MappingElementList passedElements, MappingElementList bypassedElements) booleancheckConstraints(MappingElementIF el, ExpressionContext context) Check if all constraints evaluate to true.voidclose()Close the frame.voidHandling user action events.voidHandling user key events.Configuration item which is the base of this configured item.getConfigurableItems(ConfigurationTag searchTag, ConfigurationItemSearchMode mode) Get the type of the configurable item.getId()Get the identifier of the owning model transformation step.getItem(Identifier id) Get owned item with this identifier.Get the list of all acceptable parameter names.getName()Get the name.Get the parent of this item.<T extends ConfigurableItemIF>
TgetParentItem(Class<T> parentClassType) voidinitialize(LookNFeel iLookNFeel) Initialize the frame (do not make it visible yet).booleanIs the frame a valid target for the "Back" button.booleanIs the frame waiting for the user?voidvoidvoidsetBaseItem(ConfigurationItemIF iItem) voidsetConfigurationContext(SessionInterface iSession, MetaModel sourceMM, MetaModel targetMM, ConfigurationItemIF iItem) Set the configuration context of this configurable item.voidSet the type of the item.voidsetFirst()This is the first frame in the workflow.voidsetId(Identifier iID) Set the identifier.voidsetLast()This is the last frame in the workflow.voidsetParameter(String iName, String iParam) Set the parameter of the application.voidsetParent(ConfigurableItemIF iParent) Set the parent of this item.voidThis is the frame before an engine call.voidsetVisible(boolean bVisible) Make the frame visible or invisible.toString()voidvoidvoidvoidvoidvoidvoidwindowOpened(WindowEvent evt) Methods inherited from class de.mid.innovator.m2msdk.ui.TabbedFrame
stateChangedMethods inherited from class javax.swing.JFrame
getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setTransferHandler, updateMethods inherited from class java.awt.Frame
addNotify, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecoratedMethods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toBack, toFrontMethods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, list, list, paintComponents, print, printComponents, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validateMethods inherited from class java.awt.Component
add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, hasFocus, imageUpdate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, list, list, list, paintAll, prepareImage, prepareImage, printAll, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, transferFocus, transferFocusBackward, transferFocusUpCycleMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.awt.MenuContainer
getFont
-
Constructor Details
-
SuccessFrame
public SuccessFrame()
-
-
Method Details
-
initialize
Description copied from interface:FrameInterfaceInitialize the frame (do not make it visible yet).- Specified by:
initializein interfaceFrameInterface- Parameters:
iLookNFeel- look and feel of the frame- Throws:
AbortException
-
setParameter
Description copied from interface:FrameInterfaceSet the parameter of the application. The value maybe interpreted by the application during the run.- Specified by:
setParameterin interfaceFrameInterface- Parameters:
iParam-
-
isWaiting
public boolean isWaiting()Description copied from interface:FrameInterfaceIs the frame waiting for the user?- Specified by:
isWaitingin interfaceFrameInterface- Returns:
- true, if the user has to do an action before the frame can be closed
-
isBackable
public boolean isBackable()Description copied from interface:FrameInterfaceIs the frame a valid target for the "Back" button.- Specified by:
isBackablein interfaceFrameInterface- Returns:
- true, if the frame can be called again
-
setFirst
public void setFirst()Description copied from interface:FrameInterfaceThis is the first frame in the workflow.- Specified by:
setFirstin interfaceFrameInterface
-
setLast
public void setLast()Description copied from interface:FrameInterfaceThis is the last frame in the workflow.- Specified by:
setLastin interfaceFrameInterface
-
setPreEngine
public void setPreEngine()Description copied from interface:FrameInterfaceThis is the frame before an engine call.- Specified by:
setPreEnginein interfaceFrameInterface
-
frameActionPerformed
Handling user action events.- Parameters:
evt- event
-
frameKeyPerformed
Handling user key events.- Parameters:
evt- event
-
windowOpened
- Specified by:
windowOpenedin interfaceWindowListener
-
windowActivated
- Specified by:
windowActivatedin interfaceWindowListener
-
windowClosed
- Specified by:
windowClosedin interfaceWindowListener
-
windowClosing
- Specified by:
windowClosingin interfaceWindowListener
-
windowDeactivated
- Specified by:
windowDeactivatedin interfaceWindowListener
-
windowDeiconified
- Specified by:
windowDeiconifiedin interfaceWindowListener
-
windowIconified
- Specified by:
windowIconifiedin interfaceWindowListener
-
setVisible
public void setVisible(boolean bVisible) Description copied from interface:FrameInterfaceMake the frame visible or invisible.- Specified by:
setVisiblein interfaceFrameInterface- Overrides:
setVisiblein classWindow- Parameters:
bVisible- true for visible
-
mouseDragged
- Specified by:
mouseDraggedin interfaceMouseMotionListener
-
mouseMoved
- Specified by:
mouseMovedin interfaceMouseMotionListener
-
getKnownParameters
public ParameterTemplates getKnownParameters(MappingElementIF me, ConfigurationItemIF iItem) throws M2MException, RemoteException Description copied from interface:ConfigurableItemIFGet the list of all acceptable parameter names.- Specified by:
getKnownParametersin interfaceConfigurableItemIF- Parameters:
me- mapping element, maybe nulliItem- configuration item, maybe null- Returns:
- list of parameter names
- Throws:
M2MException- generic exceptionRemoteException- error in communicationRemoteException- exception from remote execution
-
setConfigurationContext
public void setConfigurationContext(SessionInterface iSession, MetaModel sourceMM, MetaModel targetMM, ConfigurationItemIF iItem) throws M2MException, RemoteException Description copied from interface:ConfigurableItemIFSet the configuration context of this configurable item. The configurable item is configured according the context.- Specified by:
setConfigurationContextin interfaceConfigurableItemIF- Parameters:
iSession- sessionsourceMM- source meta modeltargetMM- target meta modeliItem- Configuration item- Throws:
M2MException- generic exceptionRemoteException- exception from remote execution
-
getParentItem
Description copied from interface:ConfigurableItemIFGet the parent of this item.- Specified by:
getParentItemin interfaceConfigurableItemIF- Returns:
- parent item, if found, else null
- Throws:
M2MException- error in communication
-
getParentItem
- Specified by:
getParentItemin interfaceConfigurableItemIF- Throws:
M2MException
-
setParent
Description copied from interface:ConfigurableItemIFSet the parent of this item.- Specified by:
setParentin interfaceConfigurableItemIF- Parameters:
iParent- parent item- Throws:
M2MException- error in communication
-
getId
Description copied from interface:IdentifierAbleGet the identifier of the owning model transformation step.- Specified by:
getIdin interfaceIdentifierAble- Returns:
- id
-
setId
Description copied from interface:IdentifierAbleSet the identifier.- Specified by:
setIdin interfaceIdentifierAble- Parameters:
iID- id
-
getName
Description copied from interface:ConfigurableItemIFGet the name.- Specified by:
getNamein interfaceConfigurableItemIF- Overrides:
getNamein classComponent- Returns:
- name as given by user in model transformation configuration
-
toString
-
getConfigurationTag
Description copied from interface:ConfigurableItemIFGet the type of the configurable item. The type defines the role that the item plays in the execution.- Specified by:
getConfigurationTagin interfaceConfigurableItemIF- Returns:
- type of the item
-
setConfigurationTag
Description copied from interface:ConfigurableItemIFSet the type of the item.- Specified by:
setConfigurationTagin interfaceConfigurableItemIF- Parameters:
iTag- type of the item
-
getBaseItem
Description copied from interface:ConfigurableItemIFConfiguration item which is the base of this configured item.- Specified by:
getBaseItemin interfaceConfigurableItemIF- Returns:
- configuration item
-
setBaseItem
- Specified by:
setBaseItemin interfaceConfigurableItemIF
-
getConfigurableItems
public List<ConfigurableItemIF> getConfigurableItems(ConfigurationTag searchTag, ConfigurationItemSearchMode mode) throws M2MException - Specified by:
getConfigurableItemsin interfaceConfigurableItemIF- Throws:
M2MException
-
checkConstraints
public boolean checkConstraints(MappingElementIF el, ExpressionContext context) throws RemoteException, M2MException Description copied from interface:ConfigurableItemIFCheck if all constraints evaluate to true.- Specified by:
checkConstraintsin interfaceConfigurableItemIF- Parameters:
context- context of evaluation with source and target- Returns:
- true, if there are no constraints or all constraints evaluate to true
- Throws:
RemoteException- exception from remote executionM2MException- generic exception
-
checkConstraints
public boolean checkConstraints(MappingElementIF sourceElement, MappingElementList targetElement, MappingElementList passedElements, MappingElementList bypassedElements) throws RemoteException, M2MException - Specified by:
checkConstraintsin interfaceConfigurableItemIF- Throws:
RemoteExceptionM2MException
-
getItem
Description copied from interface:ConfigurableItemIFGet owned item with this identifier.- Specified by:
getItemin interfaceConfigurableItemIF- Parameters:
id- identifier of the item, maybe the identifier of an owned element- Returns:
- item if found, else null
-
close
public void close()Description copied from interface:FrameInterfaceClose the frame.- Specified by:
closein interfaceFrameInterface
-