com.im.ijc.widgets/1 5.9.1

com.im.ijc.widgets.table
Class AbstractWBTable<W extends AbstractTableWidget<?,?,?>,M extends TableWidgetModel>

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JTable
                  extended by com.im.ijc.widgets.common.table.ResizableTable<W>
                      extended by com.im.ijc.widgets.table.AbstractWBTable<W,M>
All Implemented Interfaces:
IJCWidget.Cacheable, IJCWidget.Updateable, HyperlinkSupport.HyperlinkUrl, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, CellEditorListener, ListSelectionListener, RowSorterListener, TableColumnModelListener, TableModelListener, Scrollable
Direct Known Subclasses:
WBTable

public abstract class AbstractWBTable<W extends AbstractTableWidget<?,?,?>,M extends TableWidgetModel>
extends ResizableTable<W>
implements HyperlinkSupport.HyperlinkUrl, IJCWidget.Cacheable

Base class for components displaying data using table UI. Currently used by table and sheet widgets.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JTable
JTable.AccessibleJTable, JTable.DropLocation, JTable.PrintMode
 
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
static String PROP_AUTO_ROW_HEIGTH
           
static String PROP_HEADER_ALIGNMENT
           
static String PROP_HEADER_BACKGROUND_COLOR
           
static String PROP_HEADER_FONT
           
static String PROP_ROW_COUNT_VISIBLE
           
static String PROP_SHOW_TABLE_HEADER
           
protected  Component rowHeaderView
           
 
Fields inherited from class javax.swing.JTable
AUTO_RESIZE_ALL_COLUMNS, AUTO_RESIZE_LAST_COLUMN, AUTO_RESIZE_NEXT_COLUMN, AUTO_RESIZE_OFF, AUTO_RESIZE_SUBSEQUENT_COLUMNS, autoCreateColumnsFromModel, autoResizeMode, cellEditor, cellSelectionEnabled, columnModel, dataModel, defaultEditorsByColumnClass, defaultRenderersByColumnClass, editingColumn, editingRow, editorComp, gridColor, preferredViewportSize, rowHeight, rowMargin, rowSelectionAllowed, selectionBackground, selectionForeground, selectionModel, showHorizontalLines, showVerticalLines, tableHeader
 
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
AbstractWBTable(DFResultSet.VertexState vertexState, W ijcWidget, M tableModel)
          Creates a new instance of WBTable
 
Method Summary
 void addNotify()
           
protected abstract  JPopupMenu createCornerPopup()
           
protected abstract  Component createRowHeaderView(JScrollPane scroller)
           
static TableCellEditor createTableCellEditorForField(DFField field, DFResultSet.VertexState vs)
           
protected  void destroy()
           
 void doLayout()
          doLayout changes frequently column widths.
 boolean editCellAt(int row, int column, EventObject e)
           
 Rectangle ensureRowVisible(int index, boolean includeSpacing)
           
protected  CFClassifier findClassifier()
           
abstract  DFField getColumnField(int col)
           
 Component getComponent()
          Get the component we want to add follow hyperlink popup
 int getHeaderAlignment()
           
 Color getHeaderBackgroundColor()
           
 Font getHeaderFont()
           
 String getHyperlink()
          Gets the hyperlink text
 M getResultSetTableModel()
           
 String getToolTipText()
           
 DFDataTree.Vertex getVertex()
           
 DFResultSet.VertexState getVertexState()
           
 WidgetBorder getWidgetBorder()
           
 boolean isAutoRowHeight()
           
 boolean isRowCountVisible()
           
 boolean isShowTableHeader()
           
 void notifySettingsApplied()
           
 void repaintTableHeader()
           
 void setAutoRowHeight(boolean autoRowHeight)
           
 void setHeaderAlignment(int headerAlignment)
           
 void setHeaderBackgroundColor(Color headerBackgroundColor)
           
 void setHeaderFont(Font headerFont)
           
 void setRowCountVisible(boolean visible)
           
 void setRowSelectionInterval(int index0, int index1)
           
 void setShowTableHeader(boolean showTableHeader)
           
 void setToolTipText(String s)
           
 void setWidgetBorder(WidgetBorder widgetBorder)
           
 void updateRowHeightFromColumns()
           
protected abstract  void updateRowHeightFromRenderers()
           
 void updateValue()
           
 
Methods inherited from class com.im.ijc.widgets.common.table.ResizableTable
attachRowHeaderTable, findParentScrollPane, findParentViewport, getWidget, setRowHeight, setRowHeight
 
Methods inherited from class javax.swing.JTable
addColumn, addColumnSelectionInterval, addRowSelectionInterval, changeSelection, clearSelection, columnAdded, columnAtPoint, columnMarginChanged, columnMoved, columnRemoved, columnSelectionChanged, configureEnclosingScrollPane, convertColumnIndexToModel, convertColumnIndexToView, convertRowIndexToModel, convertRowIndexToView, createDefaultColumnModel, createDefaultColumnsFromModel, createDefaultDataModel, createDefaultEditors, createDefaultRenderers, createDefaultSelectionModel, createDefaultTableHeader, createScrollPaneForTable, editCellAt, editingCanceled, editingStopped, getAccessibleContext, getAutoCreateColumnsFromModel, getAutoCreateRowSorter, getAutoResizeMode, getCellEditor, getCellEditor, getCellRect, getCellRenderer, getCellSelectionEnabled, getColumn, getColumnClass, getColumnCount, getColumnModel, getColumnName, getColumnSelectionAllowed, getDefaultEditor, getDefaultRenderer, getDragEnabled, getDropLocation, getDropMode, getEditingColumn, getEditingRow, getEditorComponent, getFillsViewportHeight, getGridColor, getIntercellSpacing, getModel, getPreferredScrollableViewportSize, getPrintable, getRowCount, getRowHeight, getRowHeight, getRowMargin, getRowSelectionAllowed, getRowSorter, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getSelectedColumn, getSelectedColumnCount, getSelectedColumns, getSelectedRow, getSelectedRowCount, getSelectedRows, getSelectionBackground, getSelectionForeground, getSelectionModel, getShowHorizontalLines, getShowVerticalLines, getSurrendersFocusOnKeystroke, getTableHeader, getToolTipText, getUI, getUIClassID, getUpdateSelectionOnSort, getValueAt, initializeLocalVars, isCellEditable, isCellSelected, isColumnSelected, isEditing, isRowSelected, moveColumn, paramString, prepareEditor, prepareRenderer, print, print, print, print, print, processKeyBinding, removeColumn, removeColumnSelectionInterval, removeEditor, removeNotify, removeRowSelectionInterval, resizeAndRepaint, rowAtPoint, selectAll, setAutoCreateColumnsFromModel, setAutoCreateRowSorter, setAutoResizeMode, setCellEditor, setCellSelectionEnabled, setColumnModel, setColumnSelectionAllowed, setColumnSelectionInterval, setDefaultEditor, setDefaultRenderer, setDragEnabled, setDropMode, setEditingColumn, setEditingRow, setFillsViewportHeight, setGridColor, setIntercellSpacing, setModel, setPreferredScrollableViewportSize, setRowMargin, setRowSelectionAllowed, setRowSorter, setSelectionBackground, setSelectionForeground, setSelectionMode, setSelectionModel, setShowGrid, setShowHorizontalLines, setShowVerticalLines, setSurrendersFocusOnKeystroke, setTableHeader, setUI, setUpdateSelectionOnSort, setValueAt, sizeColumnsToFit, sizeColumnsToFit, sorterChanged, tableChanged, unconfigureEnclosingScrollPane, updateUI, valueChanged
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, 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, 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, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, 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, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, 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, 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
 
Methods inherited from interface com.im.ijc.core.api.views.IJCWidget.Cacheable
resetCache
 

Field Detail

PROP_AUTO_ROW_HEIGTH

public static final String PROP_AUTO_ROW_HEIGTH
See Also:
Constant Field Values

PROP_HEADER_ALIGNMENT

public static final String PROP_HEADER_ALIGNMENT
See Also:
Constant Field Values

PROP_HEADER_FONT

public static final String PROP_HEADER_FONT
See Also:
Constant Field Values

PROP_HEADER_BACKGROUND_COLOR

public static final String PROP_HEADER_BACKGROUND_COLOR
See Also:
Constant Field Values

PROP_SHOW_TABLE_HEADER

public static final String PROP_SHOW_TABLE_HEADER
See Also:
Constant Field Values

PROP_ROW_COUNT_VISIBLE

public static final String PROP_ROW_COUNT_VISIBLE
See Also:
Constant Field Values

rowHeaderView

protected Component rowHeaderView
Constructor Detail

AbstractWBTable

public AbstractWBTable(DFResultSet.VertexState vertexState,
                       W ijcWidget,
                       M tableModel)
Creates a new instance of WBTable

Method Detail

createTableCellEditorForField

public static TableCellEditor createTableCellEditorForField(DFField field,
                                                            DFResultSet.VertexState vs)

destroy

protected void destroy()

ensureRowVisible

public Rectangle ensureRowVisible(int index,
                                  boolean includeSpacing)
Overrides:
ensureRowVisible in class ResizableTable<W extends AbstractTableWidget<?,?,?>>

getWidgetBorder

public WidgetBorder getWidgetBorder()

setWidgetBorder

public void setWidgetBorder(WidgetBorder widgetBorder)

isRowCountVisible

public boolean isRowCountVisible()

setRowCountVisible

public void setRowCountVisible(boolean visible)

notifySettingsApplied

public void notifySettingsApplied()

repaintTableHeader

public void repaintTableHeader()

getHeaderAlignment

public final int getHeaderAlignment()

setHeaderAlignment

public final void setHeaderAlignment(int headerAlignment)

getHeaderBackgroundColor

public final Color getHeaderBackgroundColor()

setHeaderBackgroundColor

public final void setHeaderBackgroundColor(Color headerBackgroundColor)

getHeaderFont

public final Font getHeaderFont()

setHeaderFont

public final void setHeaderFont(Font headerFont)

isShowTableHeader

public final boolean isShowTableHeader()

setShowTableHeader

public final void setShowTableHeader(boolean showTableHeader)

getVertex

public final DFDataTree.Vertex getVertex()

doLayout

public void doLayout()
doLayout changes frequently column widths. As state changes intercept column width changes, the layout-introduced ones should not be stored.

Overrides:
doLayout in class JTable

getComponent

public final Component getComponent()
Description copied from interface: HyperlinkSupport.HyperlinkUrl
Get the component we want to add follow hyperlink popup

Specified by:
getComponent in interface HyperlinkSupport.HyperlinkUrl
Returns:
The component

getHyperlink

public final String getHyperlink()
Description copied from interface: HyperlinkSupport.HyperlinkUrl
Gets the hyperlink text

Specified by:
getHyperlink in interface HyperlinkSupport.HyperlinkUrl
Returns:
The hyperlink string

updateValue

public final void updateValue()
Specified by:
updateValue in interface IJCWidget.Updateable

addNotify

public void addNotify()
Overrides:
addNotify in class JTable

getResultSetTableModel

public final M getResultSetTableModel()

getVertexState

public final DFResultSet.VertexState getVertexState()

updateRowHeightFromColumns

public final void updateRowHeightFromColumns()

updateRowHeightFromRenderers

protected abstract void updateRowHeightFromRenderers()

setAutoRowHeight

public final void setAutoRowHeight(boolean autoRowHeight)

getToolTipText

public final String getToolTipText()
Overrides:
getToolTipText in class JComponent

setToolTipText

public final void setToolTipText(String s)
Overrides:
setToolTipText in class JComponent

isAutoRowHeight

public final boolean isAutoRowHeight()

getColumnField

public abstract DFField getColumnField(int col)

editCellAt

public final boolean editCellAt(int row,
                                int column,
                                EventObject e)
Overrides:
editCellAt in class JTable

setRowSelectionInterval

public void setRowSelectionInterval(int index0,
                                    int index1)
Overrides:
setRowSelectionInterval in class JTable

findClassifier

protected CFClassifier findClassifier()

createCornerPopup

protected abstract JPopupMenu createCornerPopup()

createRowHeaderView

protected abstract Component createRowHeaderView(JScrollPane scroller)

com.im.ijc.widgets/1 5.9.1