Class DItemTree

  • All Implemented Interfaces:
    java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, org.kopi.galite.visual.base.UComponent, org.kopi.galite.visual.FileProductionListener, org.kopi.galite.visual.ModelCloseListener, org.kopi.galite.visual.ProgressDialogListener, org.kopi.galite.visual.UItemTree, org.kopi.galite.visual.UWindow, org.kopi.galite.visual.VActionListener, org.kopi.galite.visual.WaitDialogListener, org.kopi.galite.visual.WaitInfoListener

    public class DItemTree
    extends DWindow
    implements org.kopi.galite.visual.UItemTree
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      class  DItemTree.Tree  
      • Nested classes/interfaces inherited from class javax.swing.JPanel

        javax.swing.JPanel.AccessibleJPanel
      • Nested classes/interfaces inherited from class javax.swing.JComponent

        javax.swing.JComponent.AccessibleJComponent
      • Nested classes/interfaces inherited from class java.awt.Container

        java.awt.Container.AccessibleAWTContainer
      • Nested classes/interfaces inherited from class java.awt.Component

        java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
      • Nested classes/interfaces inherited from interface org.kopi.galite.visual.UItemTree

        org.kopi.galite.visual.UItemTree.UTreeComponent
    • Field Summary

      • 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
      DItemTree​(org.kopi.galite.visual.VItemTree model)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addItem()
      Insert new item
      void attacheToParent​(javax.swing.tree.DefaultTreeModel treeModel, javax.swing.tree.DefaultMutableTreeNode node, javax.swing.tree.DefaultMutableTreeNode parent)
      Attache children to removed item parent
      void editSelectedItem()
      Edit the selected item
      org.kopi.galite.visual.VItemTree getModel()
      Get Model
      protected javax.swing.tree.DefaultMutableTreeNode getSelectedNode()
      Returns the TreeNode instance that is selected in the tree.
      org.kopi.galite.visual.UItemTree.UTreeComponent getTree()  
      void localiseSelectedItem()
      Localise the selected item
      void removeSelectedItem()
      Remove selected item from the tree
      void run()
      starts the window
      void setDefaultItem()
      Set selected item as default element
      void setLevel​(javax.swing.tree.DefaultTreeModel treeModel, javax.swing.tree.DefaultMutableTreeNode node)
      Sets level of all children of an item
      void setSelectedItem()
      Sets item selection state
      void setTree()  
      • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.kopi.galite.visual.FileProductionListener

        fileProduced
      • Methods inherited from interface org.kopi.galite.visual.ModelCloseListener

        dispose, modelClosed
      • Methods inherited from interface org.kopi.galite.visual.ProgressDialogListener

        setProgressDialog, unsetProgressDialog
      • Methods inherited from interface org.kopi.galite.visual.base.UComponent

        isEnabled, isVisible, setEnabled, setVisible
      • Methods inherited from interface org.kopi.galite.visual.UWindow

        closeWindow, openURL, performBasicAction, setCurrentJob, setInformationText, setTitle, setTotalJobs, setWindowFocusEnabled, updateWaitDialogMessage
      • Methods inherited from interface org.kopi.galite.visual.VActionListener

        performAsyncAction
      • Methods inherited from interface org.kopi.galite.visual.WaitDialogListener

        setWaitDialog, unsetWaitDialog
      • Methods inherited from interface org.kopi.galite.visual.WaitInfoListener

        setWaitInfo, unsetWaitInfo
    • Constructor Detail

      • DItemTree

        public DItemTree​(org.kopi.galite.visual.VItemTree model)
    • Method Detail

      • setTree

        public void setTree()
        Specified by:
        setTree in interface org.kopi.galite.visual.UItemTree
      • run

        public void run()
                 throws org.kopi.galite.visual.VException
        Description copied from class: DWindow
        starts the window
        Specified by:
        run in interface org.kopi.galite.visual.UWindow
        Specified by:
        run in class DWindow
        Throws:
        org.kopi.galite.visual.VException - an exception may be raised by triggers
      • getSelectedNode

        protected javax.swing.tree.DefaultMutableTreeNode getSelectedNode()
        Returns the TreeNode instance that is selected in the tree. If nothing is selected, null is returned.
      • setSelectedItem

        public void setSelectedItem()
        Sets item selection state
        Specified by:
        setSelectedItem in interface org.kopi.galite.visual.UItemTree
      • setDefaultItem

        public void setDefaultItem()
        Set selected item as default element
        Specified by:
        setDefaultItem in interface org.kopi.galite.visual.UItemTree
      • addItem

        public void addItem()
                     throws org.kopi.galite.visual.VException
        Insert new item
        Specified by:
        addItem in interface org.kopi.galite.visual.UItemTree
        Throws:
        org.kopi.galite.visual.VException
      • removeSelectedItem

        public void removeSelectedItem()
        Remove selected item from the tree
        Specified by:
        removeSelectedItem in interface org.kopi.galite.visual.UItemTree
      • attacheToParent

        public void attacheToParent​(javax.swing.tree.DefaultTreeModel treeModel,
                                    javax.swing.tree.DefaultMutableTreeNode node,
                                    javax.swing.tree.DefaultMutableTreeNode parent)
        Attache children to removed item parent
      • setLevel

        public void setLevel​(javax.swing.tree.DefaultTreeModel treeModel,
                             javax.swing.tree.DefaultMutableTreeNode node)
        Sets level of all children of an item
      • editSelectedItem

        public void editSelectedItem()
        Edit the selected item
        Specified by:
        editSelectedItem in interface org.kopi.galite.visual.UItemTree
      • localiseSelectedItem

        public void localiseSelectedItem()
        Localise the selected item
        Specified by:
        localiseSelectedItem in interface org.kopi.galite.visual.UItemTree
      • getTree

        public org.kopi.galite.visual.UItemTree.UTreeComponent getTree()
        Specified by:
        getTree in interface org.kopi.galite.visual.UItemTree
      • getModel

        public org.kopi.galite.visual.VItemTree getModel()
        Description copied from class: DWindow
        Get Model
        Specified by:
        getModel in interface org.kopi.galite.visual.UWindow
        Overrides:
        getModel in class DWindow