com.irisel.oms.guiom.iframe
Class CLJInternalFrameOpenInstance

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JInternalFrame
                  extended by com.irisel.oms.guiom.iframe.CLInternalFrame
                      extended by com.irisel.oms.guiom.iframe.CLJInternalFrameOpenInstance
All Implemented Interfaces:
OMSEventListener, OMSEventSource, Access, java.awt.image.ImageObserver, java.awt.MenuContainer, java.beans.PropertyChangeListener, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.event.ChangeListener, javax.swing.event.InternalFrameListener, javax.swing.RootPaneContainer, javax.swing.WindowConstants
Direct Known Subclasses:
CLJIFOpenRelation, CLJInternalFrameDeleteInstance, CLJInternalFrameNewProperty, CLJInternalFrameOpenInstanceFinDetail, EditContact, EditOmsUser, IFOpenInstanceFlow, NewOmsUser

public class CLJInternalFrameOpenInstance
extends CLInternalFrame
implements javax.swing.event.ChangeListener

Author:
Jose Manuel Gomez
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JInternalFrame
javax.swing.JInternalFrame.JDesktopIcon
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.BaselineResizeBehavior
 
Field Summary
 
Fields inherited from class com.irisel.oms.guiom.iframe.CLInternalFrame
menuKey
 
Fields inherited from class javax.swing.JInternalFrame
CONTENT_PANE_PROPERTY, FRAME_ICON_PROPERTY, GLASS_PANE_PROPERTY, IS_CLOSED_PROPERTY, IS_ICON_PROPERTY, IS_MAXIMUM_PROPERTY, IS_SELECTED_PROPERTY, LAYERED_PANE_PROPERTY, MENU_BAR_PROPERTY, ROOT_PANE_PROPERTY, TITLE_PROPERTY
 
Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface com.irisel.oms.guiom.rbac.Access
NONE, READ_ONLY, READ_WRITE, WRITE_ONLY
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
CLJInternalFrameOpenInstance()
           
CLJInternalFrameOpenInstance(java.lang.Integer parentKey)
           
CLJInternalFrameOpenInstance(java.lang.Object[] args)
           
 
Method Summary
 void clearOID()
           
 RelationVO getActiveRelationVO()
           
 java.awt.Component getActiveTab()
           
 CLBrowser getBrowser()
          Getter for property browser.
 java.lang.String getClassname()
          Getter for property classname.
 ClassVO getClassVO()
           
 java.awt.Component getComponent(java.lang.String name)
           
 Instance getInstance()
           
 ClassVO getRelatedClassVO()
           
 Session getSession()
           
 Instance getUser()
           
 void init(java.awt.event.ActionEvent evt)
          Deprecated.  
 void init(java.lang.Object[] args)
          Function used to initialize the object
 void init(OMSAction action)
          Extract OMSAction.PARAM_CLASSVO, OMSAction.PARAM_OIDS, OMSAction.PARAM_FORM_KEY and calls init(Object[])
 void internalFrameClosing(javax.swing.event.InternalFrameEvent e)
           
 java.lang.String onEvent(OMSEvent e)
           
 void propertyChange(java.beans.PropertyChangeEvent e)
           
 void refresh()
           
 void refreshActiveTab()
           
 void refreshTab(int tabIndex)
           
 void save_post()
           
 void save_pre()
           
 void save()
          Selects elements in the database matching the search criteria
 void setAccessMode()
           
 void setAccessMode(int mode)
          Override to implement security access
 void setBrowser(CLBrowser browser)
          Setter for property browser.
 void setClassname(java.lang.String classname)
          Setter for property classname.
 void setDynamicButtonState()
           
 void setRelatedClassVO(ClassVO relatedClassVO)
           
 void setValues(Instance di)
           
 void setValues(int i, java.lang.Object object)
           
 void stateChanged(javax.swing.event.ChangeEvent arg0)
           
 
Methods inherited from class com.irisel.oms.guiom.iframe.CLInternalFrame
addOMSEventListener, generateTypeKey, getKey, getNewInstance, getParentKey, getTypeKey, internalFrameActivated, internalFrameClosed, internalFrameDeactivated, internalFrameDeiconified, internalFrameIconified, internalFrameOpened, removeAllListeners, send, send, send, send, setKey, setParentKey, setTypeKey
 
Methods inherited from class javax.swing.JInternalFrame
addInternalFrameListener, dispose, doDefaultCloseAction, getAccessibleContext, getContentPane, getDefaultCloseOperation, getDesktopIcon, getDesktopPane, getFocusCycleRootAncestor, getFocusOwner, getFrameIcon, getGlassPane, getInternalFrameListeners, getJMenuBar, getLastCursor, getLayer, getLayeredPane, getMenuBar, getMostRecentFocusOwner, getNormalBounds, getRootPane, getTitle, getUI, getUIClassID, getWarningString, hide, isClosable, isClosed, isFocusCycleRoot, isIcon, isIconifiable, isMaximizable, isMaximum, isResizable, isSelected, moveToBack, moveToFront, pack, remove, removeInternalFrameListener, reshape, restoreSubcomponentFocus, setClosable, setClosed, setContentPane, setCursor, setDefaultCloseOperation, setDesktopIcon, setFocusCycleRoot, setFrameIcon, setGlassPane, setIcon, setIconifiable, setJMenuBar, setLayer, setLayer, setLayeredPane, setLayout, setMaximizable, setMaximum, setMenuBar, setNormalBounds, setResizable, setSelected, setTitle, setUI, show, toBack, toFront, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, 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, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
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, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusBackward, transferFocusDownCycle, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, 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, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CLJInternalFrameOpenInstance

public CLJInternalFrameOpenInstance(java.lang.Integer parentKey)

CLJInternalFrameOpenInstance

public CLJInternalFrameOpenInstance()

CLJInternalFrameOpenInstance

public CLJInternalFrameOpenInstance(java.lang.Object[] args)
Parameters:
args - : args[0] must be ClassVO or String classname, args[1] is primaryKeyValue
Method Detail

init

public void init(java.lang.Object[] args)
Function used to initialize the object

Parameters:
args - : args[0] must be ClassVO or String classname, args[1] is primaryKeyValue (0 for New), args[2] is parentKey (optional)

getComponent

public java.awt.Component getComponent(java.lang.String name)

getSession

public Session getSession()

clearOID

public void clearOID()

setValues

public void setValues(int i,
                      java.lang.Object object)

getUser

public Instance getUser()

getClassVO

public ClassVO getClassVO()

refreshActiveTab

public void refreshActiveTab()

refreshTab

public void refreshTab(int tabIndex)

setValues

public void setValues(Instance di)
               throws java.sql.SQLException,
                      ConfigException
Throws:
java.sql.SQLException
ConfigException

getClassname

public java.lang.String getClassname()
Getter for property classname.

Returns:
Value of property classname.

setClassname

public void setClassname(java.lang.String classname)
                  throws java.rmi.RemoteException
Setter for property classname.

Parameters:
classname - New value of property classname.
Throws:
java.rmi.RemoteException

getBrowser

public CLBrowser getBrowser()
Getter for property browser.

Returns:
Value of property browser.

setBrowser

public void setBrowser(CLBrowser browser)
Setter for property browser.

Parameters:
browser - New value of property browser.

save_pre

public void save_pre()

save_post

public void save_post()

save

public void save()
Selects elements in the database matching the search criteria


init

public void init(java.awt.event.ActionEvent evt)
Deprecated. 

Specified by:
init in class CLInternalFrame

getRelatedClassVO

public ClassVO getRelatedClassVO()

getActiveTab

public java.awt.Component getActiveTab()

getActiveRelationVO

public RelationVO getActiveRelationVO()

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent arg0)
Specified by:
stateChanged in interface javax.swing.event.ChangeListener

setRelatedClassVO

public void setRelatedClassVO(ClassVO relatedClassVO)

onEvent

public java.lang.String onEvent(OMSEvent e)
Specified by:
onEvent in interface OMSEventListener
Overrides:
onEvent in class CLInternalFrame

getInstance

public Instance getInstance()

init

public void init(OMSAction action)
Extract OMSAction.PARAM_CLASSVO, OMSAction.PARAM_OIDS, OMSAction.PARAM_FORM_KEY and calls init(Object[])

Specified by:
init in class CLInternalFrame

internalFrameClosing

public void internalFrameClosing(javax.swing.event.InternalFrameEvent e)
Specified by:
internalFrameClosing in interface javax.swing.event.InternalFrameListener
Overrides:
internalFrameClosing in class CLInternalFrame

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent e)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener
Overrides:
propertyChange in class CLInternalFrame

refresh

public void refresh()
Overrides:
refresh in class CLInternalFrame

setDynamicButtonState

public void setDynamicButtonState()

setAccessMode

public void setAccessMode()

setAccessMode

public void setAccessMode(int mode)
Description copied from class: CLInternalFrame
Override to implement security access

Specified by:
setAccessMode in interface Access
Overrides:
setAccessMode in class CLInternalFrame
See Also:
Access