com.ibm.as400.vaccess

Class AS400ExplorerPane

  • java.lang.Object
    • java.awt.Component
      • java.awt.Container
        • javax.swing.JComponent
          • com.ibm.as400.vaccess.AS400ExplorerPane
  • All Implemented Interfaces:
    java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

    Deprecated. 
    Use Java Swing instead, along with the classes in package com.ibm.as400.access

    public class AS400ExplorerPane
    extends javax.swing.JComponent
    implements java.io.Serializable
    The AS400ExplorerPane class represents a graphical user interface that is useful for working with the hierarchy of objects rooted at a system resource. The graphical user interface presents a tree on the left side and the details of the selected resource in the right side. You must explicitly call load() to load the information from the system.

    AS400ExplorerPane objects generate the following events:

    • ErrorEvent
    • ListSelectionEvent
    • PropertyChangeEvent
    • TreeSelectionEvent

    The following example creates an explorer pane filled with the contents of a directory in the integrated file system of a system.

    // Set up the explorer pane.
    AS400 system = new AS400 ("MySystem", "Userid", "Password");
    VIFSDirectory directory = new VIFSDirectory (system, "/myDirectory");
    AS400ExplorerPane explorerPane = new AS400ExplorerPane (directory);
    explorerPane.load ();
    
    // Add the explorer pane to a frame. JFrame frame = new JFrame ("My Window"); frame.getContentPane().add (explorerPane);
    See Also:
    AS400DetailsPane, AS400TreePane, Serialized Form
  • >
    • Nested Class Summary

      • 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
    • Field Summary

      • Fields inherited from class javax.swing.JComponent

        accessibleContext, 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

        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 and Description
      AS400ExplorerPane()
      Deprecated. 
      Constructs an AS400ExplorerPane object.
      AS400ExplorerPane(VNode root)
      Deprecated. 
      Constructs an AS400ExplorerPane object.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void addErrorListener(ErrorListener listener)
      Deprecated. 
      Adds a listener to be notified when an error occurs.
      void addListSelectionListener(javax.swing.event.ListSelectionListener listener)
      Deprecated. 
      Adds a listener to be notified when a list selection occurs in the details pane.
      void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
      Deprecated. 
      Adds a listener to be notified when the value of any bound property changes.
      void addTreeSelectionListener(javax.swing.event.TreeSelectionListener listener)
      Deprecated. 
      Adds a listener to be notified when a tree selection occurs.
      void addVetoableChangeListener(java.beans.VetoableChangeListener listener)
      Deprecated. 
      Adds a listener to be notified when the value of any constrained property changes.
      void collapse(VNode object)
      Deprecated. 
      Collapses the specified object in the tree.
      void expand(VNode object)
      Deprecated. 
      Expands the specified object in the tree.
      VActionContext getActionContext()
      Deprecated. 
      Returns the context in which actions will be performed.
      boolean getAllowActions()
      Deprecated. 
      Indicates if actions can be invoked on objects.
      boolean getConfirm()
      Deprecated. 
      Indicates if certain actions are confirmed with the user.
      javax.swing.table.TableColumnModel getDetailsColumnModel()
      Deprecated. 
      Returns the column model that is used to maintain the columns of the details.
      javax.swing.table.TableModel getDetailsModel()
      Deprecated. 
      Returns the details model.
      VNode getDetailsRoot()
      Deprecated. 
      Returns the root of the details pane.
      javax.swing.ListSelectionModel getDetailsSelectionModel()
      Deprecated. 
      Returns the selection model that is used to maintain selection state in the details.
      javax.swing.tree.TreePath getPath(VNode object)
      Deprecated. 
      Returns the path from the root to get to this object in the tree hierarchy.
      VNode getRoot()
      Deprecated. 
      Returns the root, or the system resource, from which all information for the model is gathered.
      VObject getSelectedObject()
      Deprecated. 
      Returns the first selected object.
      VObject[] getSelectedObjects()
      Deprecated. 
      Returns the selected objects.
      javax.swing.tree.TreeModel getTreeModel()
      Deprecated. 
      Returns the tree model.
      javax.swing.tree.TreeSelectionModel getTreeSelectionModel()
      Deprecated. 
      Returns the selection model that is used to maintain selection state in the tree.
      boolean isCollapsed(VNode object)
      Deprecated. 
      Indicates if the object in the tree is currently collapsed.
      boolean isExpanded(VNode object)
      Deprecated. 
      Indicates if the object in the tree is currently expanded.
      boolean isSelected(VObject object)
      Deprecated. 
      Indicates if the object in the tree or the details is selected.
      boolean isVisible(VNode object)
      Deprecated. 
      Indicates if the object in the tree is currently visible in the tree.
      void load()
      Deprecated. 
      Loads the objects from the system.
      void makeVisible(VNode object)
      Deprecated. 
      Makes the object visible in the tree by expanding its parent objects as needed.
      void removeErrorListener(ErrorListener listener)
      Deprecated. 
      Removes an error listener.
      void removeListSelectionListener(javax.swing.event.ListSelectionListener listener)
      Deprecated. 
      Removes a list selection listener.
      void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
      Deprecated. 
      Removes a property change listener.
      void removeTreeSelectionListener(javax.swing.event.TreeSelectionListener listener)
      Deprecated. 
      Removes a tree selection listener.
      void removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
      Deprecated. 
      Removes a vetoable change listener.
      void setAllowActions(boolean allowActions)
      Deprecated. 
      Sets whether actions are allowed.
      void setConfirm(boolean confirm)
      Deprecated. 
      Sets whether certain actions are confirmed with the user.
      void setDetailsSelectionModel(javax.swing.ListSelectionModel selectionModel)
      Deprecated. 
      Sets the selection model that is used to maintain selection state in the details.
      void setRoot(VNode root)
      Deprecated. 
      Sets the root, or the system resource, from which all information for the model is gathered.
      void setTreeSelectionModel(javax.swing.tree.TreeSelectionModel selectionModel)
      Deprecated. 
      Sets the selection model that is used to maintain selection state in the tree.
      void sort(java.lang.Object[] propertyIdentifiers, boolean[] orders)
      Deprecated. 
      Sorts the contents.
      • Methods inherited from class javax.swing.JComponent

        addAncestorListener, addNotify, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, 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, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, 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, update, updateUI
      • Methods inherited from class java.awt.Container

        add, add, add, add, add, addContainerListener, addImpl, 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, transferFocusBackward, 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, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, 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, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AS400ExplorerPane

        public AS400ExplorerPane()
        Deprecated. 
        Constructs an AS400ExplorerPane object.
      • AS400ExplorerPane

        public AS400ExplorerPane(VNode root)
        Deprecated. 
        Constructs an AS400ExplorerPane object.
        Parameters:
        root - The root, or the system resource, from which all information for the model is gathered.
    >
    • Method Detail

      • addErrorListener

        public void addErrorListener(ErrorListener listener)
        Deprecated. 
        Adds a listener to be notified when an error occurs.
        Parameters:
        listener - The listener.
      • addListSelectionListener

        public void addListSelectionListener(javax.swing.event.ListSelectionListener listener)
        Deprecated. 
        Adds a listener to be notified when a list selection occurs in the details pane.
        Parameters:
        listener - The listener.
      • addPropertyChangeListener

        public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
        Deprecated. 
        Adds a listener to be notified when the value of any bound property changes.
        Overrides:
        addPropertyChangeListener in class java.awt.Container
        Parameters:
        listener - The listener.
      • addTreeSelectionListener

        public void addTreeSelectionListener(javax.swing.event.TreeSelectionListener listener)
        Deprecated. 
        Adds a listener to be notified when a tree selection occurs.
        Parameters:
        listener - The listener.
      • addVetoableChangeListener

        public void addVetoableChangeListener(java.beans.VetoableChangeListener listener)
        Deprecated. 
        Adds a listener to be notified when the value of any constrained property changes.
        Overrides:
        addVetoableChangeListener in class javax.swing.JComponent
        Parameters:
        listener - The listener.
      • collapse

        public void collapse(VNode object)
        Deprecated. 
        Collapses the specified object in the tree.
        Parameters:
        object - The object in the tree.
      • expand

        public void expand(VNode object)
        Deprecated. 
        Expands the specified object in the tree.
        Parameters:
        object - The object in the tree.
      • getActionContext

        public VActionContext getActionContext()
        Deprecated. 
        Returns the context in which actions will be performed.
        Returns:
        The action context.
      • getAllowActions

        public boolean getAllowActions()
        Deprecated. 
        Indicates if actions can be invoked on objects.
        Returns:
        true if a actions can be invoked; false otherwise.
      • getConfirm

        public boolean getConfirm()
        Deprecated. 
        Indicates if certain actions are confirmed with the user.
        Returns:
        true if certain actions are confirmed with the user; false otherwise.
      • getDetailsColumnModel

        public javax.swing.table.TableColumnModel getDetailsColumnModel()
        Deprecated. 
        Returns the column model that is used to maintain the columns of the details. This provides the ability to programmatically add and remove columns.
        Returns:
        The column model.
      • getDetailsModel

        public javax.swing.table.TableModel getDetailsModel()
        Deprecated. 
        Returns the details model.
        Returns:
        The details model.
      • getDetailsRoot

        public VNode getDetailsRoot()
        Deprecated. 
        Returns the root of the details pane.
        Returns:
        The root the details pane, or null if there is none.
      • getDetailsSelectionModel

        public javax.swing.ListSelectionModel getDetailsSelectionModel()
        Deprecated. 
        Returns the selection model that is used to maintain selection state in the details. This provides the ability to programmatically select and deselect objects.
        Returns:
        The selection model, or null if selections are not allowed.
      • getPath

        public javax.swing.tree.TreePath getPath(VNode object)
        Deprecated. 
        Returns the path from the root to get to this object in the tree hierarchy. The last element in the path will be this object.
        Parameters:
        object - The object.
        Returns:
        The path, or null if the object is not a valid object.
      • getRoot

        public VNode getRoot()
        Deprecated. 
        Returns the root, or the system resource, from which all information for the model is gathered.
        Returns:
        The root, or the system resource, from which all information for the model is gathered. It will be null if none has been set.
      • getSelectedObject

        public VObject getSelectedObject()
        Deprecated. 
        Returns the first selected object. This is the first selected object in the details pane. If no objects are selected in the details pane, then this is the object selected in the tree pane.
        Returns:
        The first selected object, or null if none are selected.
      • getSelectedObjects

        public VObject[] getSelectedObjects()
        Deprecated. 
        Returns the selected objects. These are the selected objects in the details pane. If no objects are selected in the details pane, then this is the object selected in the tree pane.
        Returns:
        The selected objects.
      • getTreeModel

        public javax.swing.tree.TreeModel getTreeModel()
        Deprecated. 
        Returns the tree model.
        Returns:
        The tree model.
      • getTreeSelectionModel

        public javax.swing.tree.TreeSelectionModel getTreeSelectionModel()
        Deprecated. 
        Returns the selection model that is used to maintain selection state in the tree. This provides the ability to programmatically select and deselect objects.
        Returns:
        The selection model, or null if selections are not allowed.
      • isCollapsed

        public boolean isCollapsed(VNode object)
        Deprecated. 
        Indicates if the object in the tree is currently collapsed.
        Parameters:
        object - The object in the tree.
        Returns:
        true if the object is collapsed; false otherwise.
      • isExpanded

        public boolean isExpanded(VNode object)
        Deprecated. 
        Indicates if the object in the tree is currently expanded.
        Parameters:
        object - The object in the tree.
        Returns:
        true if the object is expanded; false otherwise.
      • isSelected

        public boolean isSelected(VObject object)
        Deprecated. 
        Indicates if the object in the tree or the details is selected.
        Parameters:
        object - The object in the tree or the details.
        Returns:
        true if the object is selected, false otherwise.
      • isVisible

        public boolean isVisible(VNode object)
        Deprecated. 
        Indicates if the object in the tree is currently visible in the tree.
        Parameters:
        object - The object in the tree.
        Returns:
        true if the object is visible; false otherwise.
      • load

        public void load()
        Deprecated. 
        Loads the objects from the system.
      • makeVisible

        public void makeVisible(VNode object)
        Deprecated. 
        Makes the object visible in the tree by expanding its parent objects as needed.
        Parameters:
        object - The object.
      • removeErrorListener

        public void removeErrorListener(ErrorListener listener)
        Deprecated. 
        Removes an error listener.
        Parameters:
        listener - The listener.
      • removeListSelectionListener

        public void removeListSelectionListener(javax.swing.event.ListSelectionListener listener)
        Deprecated. 
        Removes a list selection listener.
        Parameters:
        listener - The listener.
      • removePropertyChangeListener

        public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
        Deprecated. 
        Removes a property change listener.
        Overrides:
        removePropertyChangeListener in class java.awt.Component
        Parameters:
        listener - The listener.
      • removeTreeSelectionListener

        public void removeTreeSelectionListener(javax.swing.event.TreeSelectionListener listener)
        Deprecated. 
        Removes a tree selection listener.
        Parameters:
        listener - The listener.
      • removeVetoableChangeListener

        public void removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
        Deprecated. 
        Removes a vetoable change listener.
        Overrides:
        removeVetoableChangeListener in class javax.swing.JComponent
        Parameters:
        listener - The listener.
      • setAllowActions

        public void setAllowActions(boolean allowActions)
        Deprecated. 
        Sets whether actions are allowed. The following are enabled only when actions are allowed:
        • popup menu on selected object in the tree and details
        • double clicking on a object sets the root object in the details

        The default is true.

        Parameters:
        allowActions - true if actions are allowed; false otherwise.
      • setConfirm

        public void setConfirm(boolean confirm)
        Deprecated. 
        Sets whether certain actions are confirmed with the user. The default is true.
        Parameters:
        confirm - true if certain actions are confirmed with the user; false otherwise.
      • setDetailsSelectionModel

        public void setDetailsSelectionModel(javax.swing.ListSelectionModel selectionModel)
        Deprecated. 
        Sets the selection model that is used to maintain selection state in the details. This provides the ability to programmatically select and deselect objects.
        Parameters:
        selectionModel - The selection model, or null if selections are not allowed.
      • setRoot

        public void setRoot(VNode root)
                     throws java.beans.PropertyVetoException
        Deprecated. 
        Sets the root, or the system resource, from which all information for the model is gathered. It will not take effect until load() is done.
        Parameters:
        root - The root, or the system resource, from which all information for the model is gathered.
        Throws:
        java.beans.PropertyVetoException - It the change is vetoed.
      • setTreeSelectionModel

        public void setTreeSelectionModel(javax.swing.tree.TreeSelectionModel selectionModel)
        Deprecated. 
        Sets the selection model that is used to maintain selection state in the tree. This provides the ability to programmatically select and deselect objects.
        Parameters:
        selectionModel - The selection model, or null if selections are not allowed.
      • sort

        public void sort(java.lang.Object[] propertyIdentifiers,
                boolean[] orders)
        Deprecated. 
        Sorts the contents. The propertyIdentifer[0], orders[0] combination is used to do the sort. If the values are equal, propertyIdentifier[1], orders[1] is used to break the tie, and so forth.
        Parameters:
        propertyIdentifiers - The property identifiers. If any of the property identifiers are null, it means to sort using the string representation of the object.
        orders - The sort orders for each property identifier, true for ascending order, false for descending order.