Skip navigation links


com.essbase.eas.ui.ctree
Class CTreeTabbedPane

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JTabbedPane
                  extended by com.essbase.eas.ui.CTabbedPane
                      extended by com.essbase.eas.ui.ctree.CTreeTabbedPane

All Implemented Interfaces:
java.awt.dnd.DropTargetListener, java.awt.event.MouseListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.SwingConstants

public class CTreeTabbedPane
extends CTabbedPane
implements java.awt.dnd.DropTargetListener, java.awt.event.MouseListener

A specialized container for CTree objects. This container works in conjunction with a CTree to provide customized view capabilities. This object implements the DropTargetListener; the defined drag/drop operations for this class are:


Version:
1.00, 09/27/2000
Author:
Hank Cox
See Also:
Serialized Form

Nested Class Summary

 

Nested classes/interfaces inherited from class javax.swing.JTabbedPane
javax.swing.JTabbedPane.AccessibleJTabbedPane, javax.swing.JTabbedPane.ModelListener

 

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
static java.util.ResourceBundle bundle
           

 

Fields inherited from class javax.swing.JTabbedPane
changeEvent, changeListener, model, SCROLL_TAB_LAYOUT, tabPlacement, WRAP_TAB_LAYOUT

 

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 javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST

 

Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH

 

Constructor Summary
CTreeTabbedPane()
           

 

Method Summary
 boolean addNodeToCustomView(CTreeNode node, java.lang.String caption)
          This will add the passed in node to the tree.
 java.awt.Component[] addToActionMenu(Console console)
          adds the current tab's actions to the console's action menu.
 boolean addToCustomView(CTreeNode node, java.lang.String caption)
          adds a CTReeNode to a custom view with a particular caption.
 void clearCustomViews(java.lang.String essbaseServer)
          when an essbase server is removed, related custom views are cleared.
 void confirmRemoveAllTabs()
           
 java.lang.String createCustomView(java.awt.Component component, boolean select)
          creates a custom view and returns the caption for it.
 java.lang.String createCustomView(CTreeNode node, boolean select)
          creates a custom view and returns the caption for it.
 CTree createCustomView(java.lang.String caption, boolean select)
          creates an empty custom view with a specific caption.
 void createDefaultView(java.awt.Component component, java.lang.String caption)
           
 void dragEnter(java.awt.dnd.DropTargetDragEvent dtde)
          Implementation of the DropTargetListener.dragEnter() method.
 void dragExit(java.awt.dnd.DropTargetEvent dte)
          implementation of the DropTargetListener.dragExit() method.
 void dragOver(java.awt.dnd.DropTargetDragEvent dtde)
          Implementation of the DropTargetListener.dragOver() method.
 void drop(java.awt.dnd.DropTargetDropEvent dtde)
          implementation of the DropTargetListener drop() method.
 void dropActionChanged(java.awt.dnd.DropTargetDragEvent dtde)
          implementation of the DropTargetListener.dropActionChanged() method.
 java.lang.String[] getCustomViews()
           
 boolean getCustomViewsSupported()
           
 boolean getSingleCustomView()
           
 java.lang.String getTitleFor(java.awt.Component c)
           
 java.awt.Component getView(int index)
           
 java.awt.Component getView(java.lang.String caption)
           
 boolean isCustomeView(int index)
           
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
 void personalizeMenuItems(java.awt.Component[] items, java.lang.String selectedCaption)
           
 void removeAllCustomViews()
           
 void removeChildNodesFromAllViews(java.lang.Object object)
          propogates removal of child nodes throughout all views.
 void removeCustomView(java.awt.Component component)
           
 void removeCustomView(java.lang.String caption)
           
 void removeNodesFromAllViews(java.lang.Object[] objects)
          propogates removed nodes throughout all views.
 void restoreCustomViews()
          restores custom views from the saved document.
 void restoreCustomViewsEx(java.lang.String essbaseServer)
          restores custom views from the saved document.
 void saveCustomViews()
          saves a representation of all of the custom views in this instance of a tabbed pane.
 void saveCustomViewsEx(java.lang.String essbaseServer)
          saves a representation of all of the custom views in this instance of a tabbed pane.
 void setCustomViewsSupported(boolean value)
           
 void setSingleCustomView(boolean value)
           
 void setTitleAt(int index, java.lang.String title)
          overrides the JTabbedPane.setTitleAt() method.

 

Methods inherited from class com.essbase.eas.ui.CTabbedPane
isRecieveFocusOnSingleTab, setRecieveFocusOnSingleTab, setSelectedIndex, updateUI

 

Methods inherited from class javax.swing.JTabbedPane
add, add, add, add, add, addChangeListener, addTab, addTab, addTab, createChangeListener, fireStateChanged, getAccessibleContext, getBackgroundAt, getBoundsAt, getChangeListeners, getComponentAt, getDisabledIconAt, getDisplayedMnemonicIndexAt, getForegroundAt, getIconAt, getMnemonicAt, getModel, getSelectedComponent, getSelectedIndex, getTabComponentAt, getTabCount, getTabLayoutPolicy, getTabPlacement, getTabRunCount, getTitleAt, getToolTipText, getToolTipTextAt, getUI, getUIClassID, indexAtLocation, indexOfComponent, indexOfTab, indexOfTab, indexOfTabComponent, insertTab, isEnabledAt, paramString, remove, remove, removeAll, removeChangeListener, removeTabAt, setBackgroundAt, setComponentAt, setDisabledIconAt, setDisplayedMnemonicIndexAt, setEnabledAt, setForegroundAt, setIconAt, setMnemonicAt, setModel, setSelectedComponent, setTabComponentAt, setTabLayoutPolicy, setTabPlacement, setToolTipTextAt, setUI

 

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, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, 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, update

 

Methods inherited from class java.awt.Container
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, 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, 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

 

Field Detail

bundle

public static java.util.ResourceBundle bundle

Constructor Detail

CTreeTabbedPane

public CTreeTabbedPane()

Method Detail

getSingleCustomView

public boolean getSingleCustomView()

setSingleCustomView

public void setSingleCustomView(boolean value)

getCustomViewsSupported

public boolean getCustomViewsSupported()

setCustomViewsSupported

public void setCustomViewsSupported(boolean value)

addToCustomView

public boolean addToCustomView(CTreeNode node,
                               java.lang.String caption)
adds a CTReeNode to a custom view with a particular caption.

addNodeToCustomView

public boolean addNodeToCustomView(CTreeNode node,
                                   java.lang.String caption)
This will add the passed in node to the tree. A clone node is not created. This will be primarly used when restoring custom views
Parameters:
node - the node to add
caption -
Returns:

createCustomView

public CTree createCustomView(java.lang.String caption,
                              boolean select)
creates an empty custom view with a specific caption.

createCustomView

public java.lang.String createCustomView(java.awt.Component component,
                                         boolean select)
creates a custom view and returns the caption for it. This method permits the caller to create a custom view that has something other than a CTree as the component.

createCustomView

public java.lang.String createCustomView(CTreeNode node,
                                         boolean select)
creates a custom view and returns the caption for it. This method creates a CTree, adding it to the a JScrollPane that is then added to this control.

isCustomeView

public boolean isCustomeView(int index)

removeAllCustomViews

public void removeAllCustomViews()

getCustomViews

public java.lang.String[] getCustomViews()

createDefaultView

public void createDefaultView(java.awt.Component component,
                              java.lang.String caption)

removeCustomView

public void removeCustomView(java.lang.String caption)

removeCustomView

public void removeCustomView(java.awt.Component component)

getTitleFor

public java.lang.String getTitleFor(java.awt.Component c)

getView

public java.awt.Component getView(java.lang.String caption)

getView

public java.awt.Component getView(int index)

dragEnter

public void dragEnter(java.awt.dnd.DropTargetDragEvent dtde)
Implementation of the DropTargetListener.dragEnter() method. Determines if this is a good drop event and accepts/rejects the event.
Specified by:
dragEnter in interface java.awt.dnd.DropTargetListener

dragOver

public void dragOver(java.awt.dnd.DropTargetDragEvent dtde)
Implementation of the DropTargetListener.dragOver() method. Determine if this is a dnd operation supported by the CTreeTabbedPane
Specified by:
dragOver in interface java.awt.dnd.DropTargetListener

dropActionChanged

public void dropActionChanged(java.awt.dnd.DropTargetDragEvent dtde)
implementation of the DropTargetListener.dropActionChanged() method. No action is performed in this method.
Specified by:
dropActionChanged in interface java.awt.dnd.DropTargetListener

dragExit

public void dragExit(java.awt.dnd.DropTargetEvent dte)
implementation of the DropTargetListener.dragExit() method. No action is performed in this method.
Specified by:
dragExit in interface java.awt.dnd.DropTargetListener

drop

public void drop(java.awt.dnd.DropTargetDropEvent dtde)
implementation of the DropTargetListener drop() method. We determine if this is an appropriate data flavor and that it can be dropped on the requested tab.
Specified by:
drop in interface java.awt.dnd.DropTargetListener

clearCustomViews

public void clearCustomViews(java.lang.String essbaseServer)
when an essbase server is removed, related custom views are cleared.
Parameters:
essbaseServer -

saveCustomViews

public void saveCustomViews()
saves a representation of all of the custom views in this instance of a tabbed pane. The String should be a formatted XML representation of the custom views.

saveCustomViewsEx

public void saveCustomViewsEx(java.lang.String essbaseServer)
saves a representation of all of the custom views in this instance of a tabbed pane. The String should be a formatted XML representation of the custom views.

restoreCustomViews

public void restoreCustomViews()
restores custom views from the saved document.

restoreCustomViewsEx

public void restoreCustomViewsEx(java.lang.String essbaseServer)
restores custom views from the saved document.

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Specified by:
mouseExited in interface java.awt.event.MouseListener

removeNodesFromAllViews

public void removeNodesFromAllViews(java.lang.Object[] objects)
propogates removed nodes throughout all views. Used primarily to ensures that objects are removed from custom views when the are removed via a "delete" operation elsewhere.

removeChildNodesFromAllViews

public void removeChildNodesFromAllViews(java.lang.Object object)
propogates removal of child nodes throughout all views. Used primarily to ensures that objects are removed from custom views when the are removed via a removeChildren operation elsewhere.

setTitleAt

public void setTitleAt(int index,
                       java.lang.String title)
overrides the JTabbedPane.setTitleAt() method. Changes the caption of the root node if this is a custom view.
Overrides:
setTitleAt in class javax.swing.JTabbedPane

confirmRemoveAllTabs

public void confirmRemoveAllTabs()

addToActionMenu

public java.awt.Component[] addToActionMenu(Console console)
adds the current tab's actions to the console's action menu.

personalizeMenuItems

public void personalizeMenuItems(java.awt.Component[] items,
                                 java.lang.String selectedCaption)

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.