ej-technologies

org.gjt.jclasslib.browser.detail.attributes
Class AbstractAttributeListDetailPane

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended byorg.gjt.jclasslib.browser.AbstractDetailPane
                      extended byorg.gjt.jclasslib.browser.detail.ListDetailPane
                          extended byorg.gjt.jclasslib.browser.detail.attributes.AbstractAttributeListDetailPane
All Implemented Interfaces:
Accessible, ImageObserver, MenuContainer, Serializable
Direct Known Subclasses:
ExceptionsAttributeDetailPane, ExceptionTableDetailPane, InnerClassesAttributeDetailPane, LineNumberTableAttributeDetailPane, LocalVariableTableAttributeDetailPane

public abstract class AbstractAttributeListDetailPane
extends ListDetailPane

Base class for all detail panes showing specific information for a specific attribute tree node selected in BrowserTreePane which can be displayed as a list of row entries with the same number of columns.

Version:
$Revision: 1.5 $ $Date: 2003/08/18 08:18:35 $
Author:
Ingo Kegel
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.gjt.jclasslib.browser.detail.ListDetailPane
ListDetailPane.ColumnCache, ListDetailPane.Link
 
Nested classes inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
 
Nested classes inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
protected static int LINK_COLUMN_WIDTH
          Default width in pixels for a column displaying a hyperlink.
protected static int NUMBER_COLUMN_WIDTH
          Default width in pixels for a column displaying a number.
protected static int VERBOSE_COLUMN_WIDTH
          Default width in pixels for a column displaying a verbose entry.
 
Fields inherited from class org.gjt.jclasslib.browser.AbstractDetailPane
COLOR_HIGHLIGHT, COLOR_LINK, CPINFO_LINK_TEXT, services
 
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
protected AbstractAttributeListDetailPane(BrowserServices services)
          Constructor.
 
Method Summary
protected  void createTableColumnModel(JTable table, TableModel tableModel)
          Create the table column model for the given table and table column model.
protected abstract  AbstractAttributeTableModel createTableModel(AttributeInfo attribute)
          Create the table model for a specific attribute.
protected  int getColumnWidth(int column)
          Get the width in pixels for a specific column.
protected  TableModel getTableModel(TreePath treePath)
          Get the table model for the selected tree node.
protected  void link(int row, int column)
          Link to the destination described by the target of the hyperlink contained in a specific cell.
 
Methods inherited from class org.gjt.jclasslib.browser.detail.ListDetailPane
createCommentLink, getRowHeightFactor, setupComponent, show
 
Methods inherited from class org.gjt.jclasslib.browser.AbstractDetailPane
constantPoolHyperlink, findAttribute, getBrowserServices, getConstantPoolEntryName, getIndex, highlightLabel, linkLabel, normalLabel, normalLabel
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, 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, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, 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, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, 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

NUMBER_COLUMN_WIDTH

protected static final int NUMBER_COLUMN_WIDTH
Default width in pixels for a column displaying a number.

See Also:
Constant Field Values

LINK_COLUMN_WIDTH

protected static final int LINK_COLUMN_WIDTH
Default width in pixels for a column displaying a hyperlink.

See Also:
Constant Field Values

VERBOSE_COLUMN_WIDTH

protected static final int VERBOSE_COLUMN_WIDTH
Default width in pixels for a column displaying a verbose entry.

See Also:
Constant Field Values
Constructor Detail

AbstractAttributeListDetailPane

protected AbstractAttributeListDetailPane(BrowserServices services)
Constructor.

Parameters:
services - the associated browser services.
Method Detail

getTableModel

protected TableModel getTableModel(TreePath treePath)
Description copied from class: ListDetailPane
Get the table model for the selected tree node.

Specified by:
getTableModel in class ListDetailPane
Parameters:
treePath - the tree path selected in BrowserTreePane
Returns:
the table model

link

protected void link(int row,
                    int column)
Description copied from class: ListDetailPane
Link to the destination described by the target of the hyperlink contained in a specific cell.

Overrides:
link in class ListDetailPane
Parameters:
row - the row number of the hyperlink
column - the column number of the hyperlink

createTableModel

protected abstract AbstractAttributeTableModel createTableModel(AttributeInfo attribute)
Create the table model for a specific attribute. This method is called by getTableModel().

Parameters:
attribute - the attribute
Returns:
the table model

getColumnWidth

protected int getColumnWidth(int column)
Get the width in pixels for a specific column.

Parameters:
column - the index of the column in the model
Returns:
the width

createTableColumnModel

protected void createTableColumnModel(JTable table,
                                      TableModel tableModel)
Description copied from class: ListDetailPane
Create the table column model for the given table and table column model.

Overrides:
createTableColumnModel in class ListDetailPane
Parameters:
table - the table
tableModel - the table model

ej-technologies