com.extentech.ExtenXLS.eventui
Class ExtenXLSCellRenderer

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JLabel
                  extended by com.extentech.ExtenXLS.eventui.ExtenXLSCellRenderer
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.SwingConstants, javax.swing.table.TableCellRenderer

public class ExtenXLSCellRenderer
extends javax.swing.JLabel
implements javax.swing.table.TableCellRenderer

Provides a cell renderer for WorkBooks.

See Also:
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.Component
java.awt.Component.BaselineResizeBehavior
 
Field Summary
 CellHandle ch
          Deprecated. No longer used internally. Should not have been public.
 boolean DEBUG
          Deprecated. No longer used internally. Should not have been public.
static com.symantec.itools.javax.swing.icons.ImageIcon luminetIcon
           
static com.symantec.itools.javax.swing.icons.ImageIcon mapperIcon
           
 WorkSheetHandle mysheet
          Deprecated. No longer used internally. Should not have been public.
 javax.swing.JTable mytable
          Deprecated. No longer used internally. Should not have been public.
 javax.swing.JInternalFrame myTableFrame
          Deprecated. No longer used internally. Should not have been public.
 java.util.Hashtable ranges
           
 CellRange selectedRange
           
 java.lang.String thisurl
           
 
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 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
ExtenXLSCellRenderer()
           
 
Method Summary
 boolean checkRange(CellHandle ch, ExtenXLSCellRenderer cx)
          Check whether a CellHandle is contained in any of the Cell Ranges...
 boolean ensureSelectedRangeIsVisible()
          examines selectedRange and ensures the range is visible
static javax.swing.border.Border getBorder(CellHandle ch)
           
 com.extentech.swingtools.BrowserInternalFrame getHtmlViewer()
          Deprecated. No longer used internally. Should not have been public.
 com.symantec.itools.javax.swing.icons.ImageIcon getMappedIcon()
           
 javax.swing.JInternalFrame getMyTableFrame()
          Deprecated. No longer used internally. Should not have been public.
 int getRowheight(int row)
           
 CellRange getSelectedRange()
           
 WorkSheetHandle getSheet()
           
 java.awt.Component getTableCellRendererComponent(javax.swing.JTable table, java.lang.Object value, boolean selected, boolean focused, int row, int column)
          The Money.
 void setHtmlViewer(com.extentech.swingtools.BrowserInternalFrame pane)
          Deprecated. No longer used internally. Should not have been public.
 void setMappedIcon(com.symantec.itools.javax.swing.icons.ImageIcon mappedIcon)
           
 void setMyTable(javax.swing.JTable table)
           
 void setMyTableFrame(javax.swing.JInternalFrame frame)
          Deprecated. No longer used internally. Should not have been public.
 void setRanges(CellRange[] crs)
           
 void setRowheight(int row, int ht)
           
 void setSelectedRange(CellRange range)
           
 void setSheet(WorkSheetHandle handle)
           
 
Methods inherited from class javax.swing.JLabel
getAccessibleContext, getDisabledIcon, getDisplayedMnemonic, getDisplayedMnemonicIndex, getHorizontalAlignment, getHorizontalTextPosition, getIcon, getIconTextGap, getLabelFor, getText, getUI, getUIClassID, getVerticalAlignment, getVerticalTextPosition, imageUpdate, setDisabledIcon, setDisplayedMnemonic, setDisplayedMnemonic, setDisplayedMnemonicIndex, setHorizontalAlignment, setHorizontalTextPosition, setIcon, setIconTextGap, setLabelFor, setText, setUI, setVerticalAlignment, setVerticalTextPosition, 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, getRootPane, 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, 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, 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, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, 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, 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, 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, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEBUG

public boolean DEBUG
Deprecated. No longer used internally. Should not have been public.

mysheet

public WorkSheetHandle mysheet
Deprecated. No longer used internally. Should not have been public.

myTableFrame

public javax.swing.JInternalFrame myTableFrame
Deprecated. No longer used internally. Should not have been public.

ch

public CellHandle ch
Deprecated. No longer used internally. Should not have been public.

mytable

public javax.swing.JTable mytable
Deprecated. No longer used internally. Should not have been public.

thisurl

public java.lang.String thisurl

ranges

public java.util.Hashtable ranges

selectedRange

public CellRange selectedRange

luminetIcon

public static final com.symantec.itools.javax.swing.icons.ImageIcon luminetIcon

mapperIcon

public static final com.symantec.itools.javax.swing.icons.ImageIcon mapperIcon
Constructor Detail

ExtenXLSCellRenderer

public ExtenXLSCellRenderer()
Method Detail

getTableCellRendererComponent

public java.awt.Component getTableCellRendererComponent(javax.swing.JTable table,
                                                        java.lang.Object value,
                                                        boolean selected,
                                                        boolean focused,
                                                        int row,
                                                        int column)
The Money.

Specified by:
getTableCellRendererComponent in interface javax.swing.table.TableCellRenderer

setRowheight

public void setRowheight(int row,
                         int ht)

getRowheight

public int getRowheight(int row)

getBorder

public static javax.swing.border.Border getBorder(CellHandle ch)

setRanges

public void setRanges(CellRange[] crs)

checkRange

public boolean checkRange(CellHandle ch,
                          ExtenXLSCellRenderer cx)
Check whether a CellHandle is contained in any of the Cell Ranges...

Parameters:
ch -
cx -
Returns:

ensureSelectedRangeIsVisible

public boolean ensureSelectedRangeIsVisible()
                                     throws java.lang.Exception
examines selectedRange and ensures the range is visible

Returns:
truth of "it's visible"
Throws:
java.lang.Exception

getSelectedRange

public CellRange getSelectedRange()
Returns:

setSelectedRange

public void setSelectedRange(CellRange range)
Parameters:
range -

getSheet

public WorkSheetHandle getSheet()
Returns:

setSheet

public void setSheet(WorkSheetHandle handle)
Parameters:
handle -

getHtmlViewer

public com.extentech.swingtools.BrowserInternalFrame getHtmlViewer()
Deprecated. No longer used internally. Should not have been public.


setHtmlViewer

public void setHtmlViewer(com.extentech.swingtools.BrowserInternalFrame pane)
Deprecated. No longer used internally. Should not have been public.


getMyTableFrame

public javax.swing.JInternalFrame getMyTableFrame()
Deprecated. No longer used internally. Should not have been public.


setMyTableFrame

public void setMyTableFrame(javax.swing.JInternalFrame frame)
Deprecated. No longer used internally. Should not have been public.


setMyTable

public void setMyTable(javax.swing.JTable table)
Parameters:
table -

getMappedIcon

public com.symantec.itools.javax.swing.icons.ImageIcon getMappedIcon()
Returns:
Returns the mappedIcon.

setMappedIcon

public void setMappedIcon(com.symantec.itools.javax.swing.icons.ImageIcon mappedIcon)
Parameters:
mappedIcon - The mappedIcon to set.


Copyright © 2011 Extentech Inc. All Rights Reserved.