Ontimize 5.2072EN

com.ontimize.gui.table
Class ComboReferenceCellRenderer

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended bycom.ontimize.gui.field.DataField
                      extended bycom.ontimize.gui.field.ComboDataField
                          extended bycom.ontimize.gui.field.ReferenceComboDataField
                              extended bycom.ontimize.gui.table.ComboReferenceCellRenderer
All Implemented Interfaces:
AccessForm, javax.accessibility.Accessible, AdvancedDataComponent, ApplicationPreferencesListener, CachedComponent, java.lang.Cloneable, CreateForms, DataComponent, java.util.EventListener, FormComponent, Freeable, HasHelpIdComponent, HasPreferenceComponent, IdentifiedElement, IFilterElement, java.awt.image.ImageObserver, Internationalization, ITemplateField, java.awt.MenuContainer, OpenDialog, ReferenceComponent, ReferenceDataComponent, SecureElement, java.io.Serializable, javax.swing.table.TableCellRenderer, ValueChangeDataComponent

public class ComboReferenceCellRenderer
extends ReferenceComboDataField
implements javax.swing.table.TableCellRenderer, java.lang.Cloneable

Renderer used to show information of other entities in tables.

Version:
1.0 15/05/2002
See Also:
Table.setRendererForColumn(java.lang.String, javax.swing.table.TableCellRenderer), Serialized Form

Nested Class Summary
 
Nested classes inherited from class com.ontimize.gui.field.ReferenceComboDataField
ReferenceComboDataField.CodeFieldListener, ReferenceComboDataField.DeployedList, ReferenceComboDataField.ExtCustomComboBox, ReferenceComboDataField.MultiColumnComboRenderer
 
Nested classes inherited from class com.ontimize.gui.field.ComboDataField
ComboDataField.CustomComboBox, ComboDataField.CustomComboBoxEditor, ComboDataField.DefaultCustomComboBoxRenderer, ComboDataField.ExtKeySelectionManager, ComboDataField.InnerListener
 
Nested classes inherited from class com.ontimize.gui.field.DataField
DataField.AuxPanel, DataField.CopyActionListener, DataField.ELabel, DataField.FieldButton, DataField.FieldFocusListener, DataField.InfoMouseListener, DataField.ToggleButton
 
Nested classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
protected  CellRenderer.CellRendererColorManager cellRendererColorManager
           
protected  CellRenderer.CellRendererFontManager cellRendererFontManager
           
protected  java.util.Hashtable parameters
           
protected  boolean remarkEditable
           
protected  boolean remarkLines
           
 
Fields inherited from class com.ontimize.gui.field.ReferenceComboDataField
advancedQuery, applyMask, attrAux, cacheManager, cacheTime, code, codeField, codeFieldListener, codeNumber, codeNumberClass, codeQueryField, codVisible, cols, dataCache, dataCacheInitialized, dataRecordListenerReady, defaultDisableOnParentkeyNull, defaultIgnoreNullOnSetValueSet, defaultParentkeyListener, defaultParentkeyListenerEvent, deployedList, detailButton, detailButtonListener, DISABLE_ON_PARENTKEY_NULL, disableonparentkeynull, entityName, formName, hOnSetValueSetEquivalences, hParentkeyEquivalences, IGNORE_NULL_ONSETVALUESET, ignorenullonsetvalueset, initCacheOnSetValue, integerValue, lastCacheTime, locator, multipleResultWindow, onsetvaluesetAttributes, parentFrame, PARENTKEY_LISTENER, PARENTKEY_LISTENER_EVENT, PARENTKEY_LISTENER_EVENT_ALL, PARENTKEY_LISTENER_EVENT_PROGRAMMATIC, PARENTKEY_LISTENER_EVENT_USER, parentkeyCache, parentkeyListener, parentkeyListenerEvent, parentKeys, queryValues, renderer, separator, showErrorMessages, UPDATE_DATA, updateData, useCacheManager, visibleArrowButton, visibleCodeSearch, visibleColumns
 
Fields inherited from class com.ontimize.gui.field.ComboDataField
DATEFORMAT, FORMAT, formatPattern, innerListener, localeComponente, NULL_SELECTION, nullSelection, values
 
Fields inherited from class com.ontimize.gui.field.DataField
advancedQueryMode, ALIGN, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, alignment, ASTERISK_REQUIRED_STYLE, ATTR, attribute, backgroundColor, BGCOLOR, bold, BOLD, BORDER, BORDER_REQUIRED_STYLE, borderText, BOTTOM, CENTER, CLIPBOARD_COPY, CLIPBOARD_COPY_es_ES, CLIPBOARD_CUT, CLIPBOARD_CUT_es_ES, CLIPBOARD_PASTE, CLIPBOARD_PASTE_es_ES, conditions, dataField, DEFAULT_BORDER, DEFAULT_BOTTOM_MARGIN, DEFAULT_FIELD_LEFT_MARGIN, DEFAULT_FIELD_RIGHT_MARGIN, DEFAULT_LABEL_LEFT_MARGIN, DEFAULT_LABEL_RIGHT_MARGIN, DEFAULT_PARENT_MARGIN, DEFAULT_PARENT_MARGIN_FOR_SCROLL, DEFAULT_TOP_MARGIN, defaultAsteriskColor, DEFAULTBORDER, defaultDisableBackgroundColor, defaultFieldButtonHigh, defaultPreferenceTextNotRetrievedFromPreferences, DEFINE_HELP_FIELD_PREFERENCE, dim, DIM, disabledbgcolor, DISABLEDBGCOLOR, empty, enabled, ENABLED, FIELD_HELP_TIP, fieldlistenerFocus, fieldSize, fireValueEvents, FOCUS_BACKGROUNDCOLOR, FONT, fontColor, FONTCOLOR, fontSize, FONTSIZE, height, HEIGHT, incrementalFont, initPreferenceHelpText, isEnabled, LABELALIGN, labelComponent, LABELFONT, LABELFONTCOLOR, labelPosition, LABELPOSITION, LABELSIZE, labelText, LABELVISIBLE, LEFT, locale, LOWERED, menuCopy, menuCut, menuDefineHelpPreference, menuHelpPreferences, menuPaste, modifiable, NO_STR, NONE, noRequiredBorder, OPAQUE, originalSize, OUTBORDER, panel, parentForm, permissionActivate, permissionVisible, popupMenu, RAISED, redimensionPanel, redimensJTextField, required, REQUIRED, requiredBorder, REQUIREDBORDER, requiredFieldBackgroundColor, resources, restricted, RIGHT, show, showLabel, SIZE, TEXT_STR, TEXTALIGN, textAlignment, textHelpPreference, TIP, tipKey, TOP, validData, VALIGN, Valignment, valueListener, valueSave, VISIBLE, VISUALIZE_HELP_FIELD_PREFERENCE, weightDataFieldH, weightPanelH, width, WIDTH, x, X, y, Y, YES_STR
 
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 com.ontimize.gui.field.AdvancedDataComponent
ADVANCED_QUERY
 
Fields inherited from interface com.ontimize.gui.field.DataComponent
COMP_FOCUS_YELLOW, GREEN_VERY_LIGHT, LIGHT_GRAY_BLUE, LIGHT_GREYISH_BLUE, VERY_LIGHT_BLUE, VERY_LIGHT_GRAY, VERY_LIGHT_PINK, VERY_LIGHT_RED, VERY_LIGHT_SKYBLUE, VERY_LIGHT_YELLOW, VERY_LIGHT_YELLOW_2
 
Fields inherited from interface com.ontimize.gui.field.FormComponent
DEBUG
 
Fields inherited from interface com.ontimize.gui.i18n.Internationalization
DEBUG_LANGUAGE
 
Fields inherited from interface com.ontimize.gui.SecureElement
DESACTIVATE_COMPONENT_BY_PERMISSION_TIP
 
Fields inherited from interface com.ontimize.util.templates.ITemplateField
DATA_TYPE_FIELD, DATA_TYPE_FIELD_ATTR, DATA_TYPE_IMAGE, DATA_TYPE_IMAGE_ATTR, DATA_TYPE_TABLE, DATA_TYPE_TABLE_ATTR, TEMPLATE_DATA_TYPE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, PROPERTIES, SOMEBITS
 
Constructor Summary
ComboReferenceCellRenderer(java.util.Hashtable parameters)
           
 
Method Summary
 java.lang.Object clone()
           
 java.awt.Font getFont()
           
 java.awt.FontMetrics getFontMetrics(java.awt.Font f)
           
 java.awt.Dimension getPreferredSize()
           
 java.awt.Component getTableCellRendererComponent(javax.swing.JTable table, java.lang.Object value, boolean selected, boolean hasFocus, int row, int column)
           
static ComboReferenceCellRenderer newInstance(java.lang.String entity, java.lang.String attr, java.lang.String cod, java.lang.String cols)
           
static ComboReferenceCellRenderer newInstance(java.lang.String entity, java.lang.String attr, java.lang.String cod, java.lang.String cols, java.lang.String visibleCols)
           
static ComboReferenceCellRenderer newInstance(java.lang.String entity, java.lang.String attr, java.lang.String cod, java.lang.String cols, java.lang.String visibleCols, java.lang.String parentkeys)
           
static ComboReferenceCellRenderer newInstance(java.lang.String entity, java.lang.String attr, java.lang.String cod, java.lang.String cols, java.lang.String visibleCols, java.lang.String parentkeys, java.lang.String separator)
           
 void setCellRendererColorManager(CellRenderer.CellRendererColorManager rend)
           
 void setCellRendererFontManager(CellRenderer.CellRendererFontManager rend)
           
 void setEditableRemark(boolean editableRemark)
           
 void setFont(java.awt.Font f)
           
 void setLineRemark(boolean lineRemark)
           
 
Methods inherited from class com.ontimize.gui.field.ReferenceComboDataField
advancedQuery, createDataRecordListener, createMultipleResultsWindow, createPopupMenu, deleteData, deleteUserData, existFieldsToUpdate, getAttributes, getCodeDescription, getCodeField, getCodeFieldName, getCodeFieldValue, getCodeSearchField, getCodeSearchFieldName, getDataCache, getDebugInfo, getDetailButtonListener, getEntity, getLastCacheTime, getMultipleResultTable, getOnSetValueSetAttributes, getOnSetValueSetEquivalences, getParentkeyEquivalences, getParentKeyList, getParentKeyValue, getParentKeyValues, getRenderer, getSQLDataType, getTemplateDataType, getTemplateDataValue, getText, getTextsToTranslate, getToolTipText, getTypedInnerValue, getValue, getValuesToCode, hasParentKeys, init, initCache, initDeployedList, installInnerListener, installPopupMenuListener, invalidateCache, isCacheManagerUsed, isCodeFieldVisible, isCodeSearchVisible, isEmpty, isParentkeyListener, listWillShow, popupWillHide, popupWillShow, queryBy, queryByCod, registerParentkeyValueChangeListeners, replaceParentkeyByEquivalence, setAdvancedQueryMode, setCacheManager, setCode, setEnabled, setFormBuilder, setInnerListenerEnabled, setParentForm, setParentFrame, setParentkeyListener, setQueryValues, setReferenceLocator, setResourceBundle, setUseCacheManager, setValue, setValue, showPopupMenu, updateBackgroundColor, updateDataCache, updateOnSetValueSetAttributes
 
Methods inherited from class com.ontimize.gui.field.ComboDataField
free, getInnerValue, getValues, isInnerValueEqual, isModified, setComponentLocale, setInnerValue, setSelected, setValues, updateUI
 
Methods inherited from class com.ontimize.gui.field.DataField
addFocusListener, addHelpMenuPopup, addValueChangeListener, changeButton, changeOpacity, checkDefineHelpPermission, checkEnabledPermission, checkVisiblePermission, configurePopupMenuHelp, createFocusListener, createInstanceConditionCombo, defineHelpField, finalize, fireValueChanged, getAttribute, getBorder, getConstraints, getDataField, getDisabledbgcolor, getFontColor, getHelpIdString, getHelpPreferenceKey, getLabelComponent, getLabelComponentText, getLabelFontColor, getLabelText, getParentForm, getPreferenceHelpText, getValueChangeListeners, hasHelpInPreferences, initPermissions, initPreferences, installFocusListener, installHelpId, installPreferenceHelpListener, isAdvancedQueryMode, isEnabled, isHidden, isLabelVisible, isModifiable, isRequired, isRestricted, parseBoolean, preferenceChanged, removeFocusListener, removeValueChangeListener, requestFocus, seeHelpField, setBold, setDisabledbgcolor, setFontColor, setFontSize, setLabelFontColor, setModifiable, setRequired, setRequiredFieldBackground, setVisible, updateBackgroundColor, updateFont, updateTip, validateComponentPositions
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI
 
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, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, 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, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, 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, 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, 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, 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, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ontimize.gui.field.DataComponent
getLabelComponentText, isHidden, isModifiable, isModified, isRequired, setModifiable, setRequired
 
Methods inherited from interface com.ontimize.gui.field.FormComponent
getConstraints, isEnabled, setVisible
 
Methods inherited from interface com.ontimize.gui.i18n.Internationalization
setComponentLocale
 
Methods inherited from interface com.ontimize.gui.field.IdentifiedElement
getAttribute
 
Methods inherited from interface com.ontimize.gui.SecureElement
initPermissions, isRestricted
 
Methods inherited from interface com.ontimize.gui.field.ReferenceDataComponent
getParentForm
 

Field Detail

remarkLines

protected boolean remarkLines

remarkEditable

protected boolean remarkEditable

parameters

protected java.util.Hashtable parameters

cellRendererColorManager

protected CellRenderer.CellRendererColorManager cellRendererColorManager

cellRendererFontManager

protected CellRenderer.CellRendererFontManager cellRendererFontManager
Constructor Detail

ComboReferenceCellRenderer

public ComboReferenceCellRenderer(java.util.Hashtable parameters)
Method Detail

setLineRemark

public void setLineRemark(boolean lineRemark)

setEditableRemark

public void setEditableRemark(boolean editableRemark)

getTableCellRendererComponent

public java.awt.Component getTableCellRendererComponent(javax.swing.JTable table,
                                                        java.lang.Object value,
                                                        boolean selected,
                                                        boolean hasFocus,
                                                        int row,
                                                        int column)
Specified by:
getTableCellRendererComponent in interface javax.swing.table.TableCellRenderer

getPreferredSize

public java.awt.Dimension getPreferredSize()

setFont

public void setFont(java.awt.Font f)
Overrides:
setFont in class DataField

getFont

public java.awt.Font getFont()
Specified by:
getFont in interface java.awt.MenuContainer

getFontMetrics

public java.awt.FontMetrics getFontMetrics(java.awt.Font f)

clone

public java.lang.Object clone()

newInstance

public static ComboReferenceCellRenderer newInstance(java.lang.String entity,
                                                     java.lang.String attr,
                                                     java.lang.String cod,
                                                     java.lang.String cols)

newInstance

public static ComboReferenceCellRenderer newInstance(java.lang.String entity,
                                                     java.lang.String attr,
                                                     java.lang.String cod,
                                                     java.lang.String cols,
                                                     java.lang.String visibleCols)

newInstance

public static ComboReferenceCellRenderer newInstance(java.lang.String entity,
                                                     java.lang.String attr,
                                                     java.lang.String cod,
                                                     java.lang.String cols,
                                                     java.lang.String visibleCols,
                                                     java.lang.String parentkeys)

newInstance

public static ComboReferenceCellRenderer newInstance(java.lang.String entity,
                                                     java.lang.String attr,
                                                     java.lang.String cod,
                                                     java.lang.String cols,
                                                     java.lang.String visibleCols,
                                                     java.lang.String parentkeys,
                                                     java.lang.String separator)

setCellRendererColorManager

public void setCellRendererColorManager(CellRenderer.CellRendererColorManager rend)

setCellRendererFontManager

public void setCellRendererFontManager(CellRenderer.CellRendererFontManager rend)

Ontimize