oracle.forms.fd
Class LAF_LOV
java.lang.Object
java.awt.Component
java.awt.Container
oracle.ewt.lwAWT.LWComponent
oracle.ewt.lwAWT.LWContainer
oracle.forms.ui.VBean
oracle.forms.fd.LAF_LOV
- All Implemented Interfaces:
- java.awt.event.FocusListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, oracle.ewt.help.HelpCapable, oracle.ewt.lwAWT.DoubleBufferer, oracle.ewt.lwAWT.ImmediatePainter, oracle.ewt.lwAWT.KeyProcessor, oracle.ewt.lwAWT.VirtualComponent, oracle.forms.ui.IView
public class LAF_LOV
- extends oracle.forms.ui.VBean
- implements java.awt.event.FocusListener
A javabean to displays a LOV
as a Swing JTable
- Version:
- 1.4
The end-user can sort the JTable on every column by left-clicking the header
and also chose whatever column to search by right-clicking the header
columns can be resized and reorganized.
- Author:
- Francois Degrelle
creation June 2009
- See Also:
- Serialized Form
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 |
Fields inherited from class oracle.forms.ui.VBean |
BEAN_NAME, DEBUG_MODE, DELIVER_EVENT, FOCUS_EVENT, KEY_EVENT |
Fields inherited from class oracle.ewt.lwAWT.LWComponent |
DEFAULT_BORDERPAINTER, DEFAULT_COLOR, DEFAULT_FONT, DEFAULT_PAINTER, MNEMONIC_CHAR_NONE, MNEMONIC_INDEX_NONE |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface oracle.forms.ui.IView |
DEFAULT_COLOR |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Methods inherited from class oracle.forms.ui.VBean |
add, addCustomListener, addListener, addNotify, dispatchCustomEvent, getBean, getHandler, initializeBean, isFocusTraversable, remove, removeAll, removeCustomListener, removeListener, repaint |
Methods inherited from class oracle.ewt.lwAWT.LWContainer |
getBorderPainter, setBorderPainter |
Methods inherited from class oracle.ewt.lwAWT.LWComponent |
accessAccessibleContext, addAnyEventListener, addImpl, addPostKeyListener, addPreKeyListener, clipToParents, contains, convertInnerToOuterSize, convertInteriorToOuter, convertOuterToInterior, createAccessibleContext, disable, doLayout, enable, eventMatchesMnemonic, eventMatchesMnemonic, freezeRepaints, getAccessibleContext, getActualAlignment, getActualReadingDirection, getAlignment, getBackground, getBaseClassName, getBorderContext, getBorderInsets, getClientProperty, getColorScheme, getDefaultHelpProvider, getDefaultName, getDocumentSize, getDoubleBuffer, getEWTDropTarget, getFill, getFocusedComponent, getFont, getForeground, getGraphics, getHelpBook, getHelpProvider, getHelpTopic, getInnerBounds, getInnerHeight, getInnerOrigin, getInnerSize, getInnerWidth, getInsets, getInteriorAlignmentX, getInteriorAlignmentY, getInvalidateFlags, getLookAndFeel, getMnemonicChar, getMnemonicIndex, getMnemonicString, getName, getPageBounds, getPaintContext, getPaintData, getPaintState, getPrintPaintContext, getReadingDirection, getRepaintFlags, getToolTipValue, getUI, getUIClassID, getUIDefaults, hasFocus, hasGlobalFocus, hasMnemonicModifier, hasWindowFocus, hide, imageUpdate, insets, interiorContains, invalidate, invalidateAndRepaintIfNecessary, isActive, isBorderTransparent, isChildClipped, isClippedBySibling, isDoubleBufferingEnabled, isInteriorTransparent, isLocaleDefaulted, isPaintPropagationRequired, isReadingDirectionDefaulted, isTransparent, paint, paintAll, paintImmediate, paintImmediate, paintImmediateInterior, paintImmediateInterior, paintImmediateUnclipped, paintInterior, paintOverChildren, paramString, pointInInterior, pointIsInChild, postProcessKey, print, printAll, printPage, processEvent, processEventImpl, processFocusEvent, processMouseEvent, putClientProperty, redispatchEvent, remove, removeAnyEventListener, removeClientProperty, removeNotify, removePostKeyListener, removePreKeyListener, repaint, repaintInterior, repaintInterior, reshape, setAlignment, setBackground, setColorScheme, setDefaultHelpProvider, setDoubleBufferingEnabled, setEnabled, setEWTDropTarget, setFill, setFont, setForeground, setHelpBook, setHelpProvider, setHelpTopic, setLocale, setLookAndFeel, setMnemonicChar, setMnemonicIndex, setReadingDirection, setToolTipValue, setToolTipValue, setUI, setVisible, shiftFrozenDamage, showHelp, unfreezeRepaints, update, updateAlignment, updateLocale, updateReadingDirection, updateUI, updateUI, updateUI |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, remove, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, 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, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFontMetrics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, 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 oracle.forms.ui.IView |
contains, paint |
Methods inherited from interface oracle.ewt.lwAWT.VirtualComponent |
getBounds, getSize |
setLOVHeader
public static final oracle.forms.properties.ID setLOVHeader
setLOVFormats
public static final oracle.forms.properties.ID setLOVFormats
setLOVScheme
public static final oracle.forms.properties.ID setLOVScheme
setLOVColsType
public static final oracle.forms.properties.ID setLOVColsType
setLOVButtonLabels
public static final oracle.forms.properties.ID setLOVButtonLabels
setLOVButtonIcons
public static final oracle.forms.properties.ID setLOVButtonIcons
setLOVCellProperty
public static final oracle.forms.properties.ID setLOVCellProperty
setLOVCellValue
public static final oracle.forms.properties.ID setLOVCellValue
setLOVColSearch
public static final oracle.forms.properties.ID setLOVColSearch
setLOVAutoWidth
public static final oracle.forms.properties.ID setLOVAutoWidth
setLOVValidation
public static final oracle.forms.properties.ID setLOVValidation
setLOVCurrCellValue
public static final oracle.forms.properties.ID setLOVCurrCellValue
setLOVRowProperty
public static final oracle.forms.properties.ID setLOVRowProperty
setLOVData
public static final oracle.forms.properties.ID setLOVData
setLOVDateFormat
public static final oracle.forms.properties.ID setLOVDateFormat
setLOVNumFormat
public static final oracle.forms.properties.ID setLOVNumFormat
setLOVIntFormat
public static final oracle.forms.properties.ID setLOVIntFormat
setLOVAddRow
public static final oracle.forms.properties.ID setLOVAddRow
setLOVTitle
public static final oracle.forms.properties.ID setLOVTitle
setLOVPrompt
public static final oracle.forms.properties.ID setLOVPrompt
setLOVMaxColWidth
public static final oracle.forms.properties.ID setLOVMaxColWidth
setLOVNbPages
public static final oracle.forms.properties.ID setLOVNbPages
setLOVArraySize
public static final oracle.forms.properties.ID setLOVArraySize
setLOVNumRows
public static final oracle.forms.properties.ID setLOVNumRows
setLOVRefresh
public static final oracle.forms.properties.ID setLOVRefresh
setLOVBounds
public static final oracle.forms.properties.ID setLOVBounds
setLOVHeadBG
public static final oracle.forms.properties.ID setLOVHeadBG
setLOVHeadFG
public static final oracle.forms.properties.ID setLOVHeadFG
setLOVDataBG
public static final oracle.forms.properties.ID setLOVDataBG
setLOVDataFG
public static final oracle.forms.properties.ID setLOVDataFG
setLOVGridFG
public static final oracle.forms.properties.ID setLOVGridFG
setLOVUpdate
public static final oracle.forms.properties.ID setLOVUpdate
setLOVCellPos
public static final oracle.forms.properties.ID setLOVCellPos
setLOVRowPos
public static final oracle.forms.properties.ID setLOVRowPos
setLOVSeparator
public static final oracle.forms.properties.ID setLOVSeparator
setLOVImageSize
public static final oracle.forms.properties.ID setLOVImageSize
setLOVReorderColumns
public static final oracle.forms.properties.ID setLOVReorderColumns
setLOVResizeColumns
public static final oracle.forms.properties.ID setLOVResizeColumns
setLOVSelBackground
public static final oracle.forms.properties.ID setLOVSelBackground
setLOVSelForeground
public static final oracle.forms.properties.ID setLOVSelForeground
setLOVDecimalSeparators
public static final oracle.forms.properties.ID setLOVDecimalSeparators
setLOVLocale
public static final oracle.forms.properties.ID setLOVLocale
setLOVFilter
public static final oracle.forms.properties.ID setLOVFilter
setLOVVerticalLine
public static final oracle.forms.properties.ID setLOVVerticalLine
setLOVHorizontalLine
public static final oracle.forms.properties.ID setLOVHorizontalLine
setLOVLog
public static final oracle.forms.properties.ID setLOVLog
getLOVCellVal
public static final oracle.forms.properties.ID getLOVCellVal
getLOVRowVal
public static final oracle.forms.properties.ID getLOVRowVal
initLOV
public static final oracle.forms.properties.ID initLOV
setLOVShow
public static final oracle.forms.properties.ID setLOVShow
SETIMAGE
public static final oracle.forms.properties.ID SETIMAGE
MSG_LOV
public static final oracle.forms.properties.ID MSG_LOV
MSG_LOV_NAME
public static final oracle.forms.properties.ID MSG_LOV_NAME
TRG_WNRI
public static final oracle.forms.properties.ID TRG_WNRI
TRG_WNII
public static final oracle.forms.properties.ID TRG_WNII
TRG_WMC
public static final oracle.forms.properties.ID TRG_WMC
TRG_PAGE
public static final oracle.forms.properties.ID TRG_PAGE
TRG_NUM_PAGE
public static final oracle.forms.properties.ID TRG_NUM_PAGE
TRG_COL_SEARCH
public static final oracle.forms.properties.ID TRG_COL_SEARCH
TRG_COL_SEARCH_NAME
public static final oracle.forms.properties.ID TRG_COL_SEARCH_NAME
TRG_ORDER_BY
public static final oracle.forms.properties.ID TRG_ORDER_BY
TRG_ORDER_BY_VALUE
public static final oracle.forms.properties.ID TRG_ORDER_BY_VALUE
TRG_VALUE_SEARCH
public static final oracle.forms.properties.ID TRG_VALUE_SEARCH
TRG_VALUE
public static final oracle.forms.properties.ID TRG_VALUE
TRG_WMDC
public static final oracle.forms.properties.ID TRG_WMDC
TABLE_EVENT
public static final oracle.forms.properties.ID TABLE_EVENT
TABLE_EVENT_MSG
public static final oracle.forms.properties.ID TABLE_EVENT_MSG
GETROWSCHANGED
public static final oracle.forms.properties.ID GETROWSCHANGED
sLOVName
private java.lang.String sLOVName
sbImage
private java.lang.StringBuffer sbImage
bSeperateFrame
private boolean bSeperateFrame
bUpdatable
private boolean bUpdatable
bReorder
private boolean bReorder
bResize
private boolean bResize
bLog
private boolean bLog
bCustomButtons
private boolean bCustomButtons
isAscent
private boolean isAscent
bAutoWidth
private boolean bAutoWidth
xPos
private int xPos
yPos
private int yPos
w
private int w
h
private int h
iNbRows
private int iNbRows
iNbCols
private int iNbCols
iNbFetchedRows
private int iNbFetchedRows
iCurLine
private int iCurLine
iRowPos
private int iRowPos
iCellPos
private int iCellPos
iCurRow
private int iCurRow
iCurCell
private int iCurCell
iRowHeight
private int iRowHeight
iCurImageRow
private int iCurImageRow
iCurImageCell
private int iCurImageCell
iImageWidth
private int iImageWidth
iImageHeight
private int iImageHeight
iMaxColWidth
private int iMaxColWidth
iColSearch
private int iColSearch
iNextColSearch
private int iNextColSearch
iTotalLines
private int iTotalLines
iNbPages
private int iNbPages
iCurPage
private int iCurPage
iLinesPerPage
private int iLinesPerPage
iSens
private int iSens
iSearchLength
private int iSearchLength
sScheme
private java.lang.String sScheme
sButton1Label
private java.lang.String sButton1Label
sButton2Label
private java.lang.String sButton2Label
sSearchColumn
private java.lang.String sSearchColumn
separator
private java.lang.String separator
sTitle
private java.lang.String sTitle
sPrompt
private java.lang.String sPrompt
sDateFormat
private java.lang.String sDateFormat
sIntFormat
private java.lang.String sIntFormat
sNumFormat
private java.lang.String sNumFormat
iIcon1
private javax.swing.ImageIcon iIcon1
iIcon2
private javax.swing.ImageIcon iIcon2
locale
private java.util.Locale locale
DecimalSymbols
private java.text.DecimalFormatSymbols DecimalSymbols
HeadBGColor
private java.awt.Color HeadBGColor
HeadFGColor
private java.awt.Color HeadFGColor
DataBGColor
private java.awt.Color DataBGColor
DataFGColor
private java.awt.Color DataFGColor
GridColor
private java.awt.Color GridColor
SelBGColor
private java.awt.Color SelBGColor
SelFGColor
private java.awt.Color SelFGColor
cDialogFore
private java.awt.Color cDialogFore
cDialogBack
private java.awt.Color cDialogBack
renderer
private SortButtonRenderer renderer
popupMenu
private javax.swing.JPopupMenu popupMenu
hCellProps
private java.util.HashMap hCellProps
listSelectionModel
private javax.swing.ListSelectionModel listSelectionModel
m_handler
private oracle.forms.handler.IHandler m_handler
contentpane
private java.awt.Container contentpane
scrollPane
private javax.swing.JScrollPane scrollPane
table
private javax.swing.JTable table
model
private LAF_LOV.MyTableModel model
dm
private SortableTableModel dm
frame
private javax.swing.JFrame frame
dlgLOV
private javax.swing.JDialog dlgLOV
jp
private javax.swing.JPanel jp
jop
private javax.swing.JOptionPane jop
jtf
private javax.swing.JTextField jtf
sFilter
private java.lang.String sFilter
iRowsChanged
private int[] iRowsChanged
iColWidth
private int[] iColWidth
fColFont
private java.awt.Font[] fColFont
colnames
private java.lang.String[] colnames
data
private java.lang.Object[][] data
coltypes
private java.lang.String[] coltypes
iImageIndex
private int iImageIndex
sCellValue
private java.lang.String sCellValue
kl
private java.awt.event.KeyListener kl
kl2
private java.awt.event.KeyListener kl2
ml
private java.awt.event.MouseListener ml
os
private java.io.OutputStream os
memory
private MemoryTool memory
ik
private ImageKit ik
componentlistener
java.awt.event.ComponentListener componentlistener
LAF_LOV
public LAF_LOV()
destroy
public void destroy()
- Specified by:
destroy
in interface oracle.forms.ui.IView
- Overrides:
destroy
in class oracle.forms.ui.VBean
init
public void init(oracle.forms.handler.IHandler handler)
- Specified by:
init
in interface oracle.forms.ui.IView
- Overrides:
init
in class oracle.forms.ui.VBean
printDebugData
private void printDebugData(javax.swing.JTable table)
setProperty
public boolean setProperty(oracle.forms.properties.ID property,
java.lang.Object value)
- Specified by:
setProperty
in interface oracle.forms.ui.IView
- Overrides:
setProperty
in class oracle.forms.ui.VBean
setKeyListener
void setKeyListener()
setTextKeyListener
void setTextKeyListener()
setMouseListener
void setMouseListener()
getProperty
public java.lang.Object getProperty(oracle.forms.properties.ID pId)
- Specified by:
getProperty
in interface oracle.forms.ui.IView
- Overrides:
getProperty
in class oracle.forms.ui.VBean
getRowValues
java.lang.String getRowValues()
raz
public void raz()
SendMessage
public void SendMessage(oracle.forms.properties.ID id1,
java.lang.String sMessage)
log
void log(java.lang.String sMessage)
getCellProp
LAF_LOV.CellProp getCellProp(int iNumCol)
focusGained
public void focusGained(java.awt.event.FocusEvent e)
- Specified by:
focusGained
in interface java.awt.event.FocusListener
focusLost
public void focusLost(java.awt.event.FocusEvent e)
- Specified by:
focusLost
in interface java.awt.event.FocusListener
decorateTable
void decorateTable()
setPageRequest
void setPageRequest(int iPage)