template_applicatif.wListe
Class AbstractDbListe

Object
  extended by Component
      extended by Container
          extended by JComponent
              extended by JPanel
                  extended by template_applicatif.wListe.AbstractDbListe
All Implemented Interfaces:
java.awt.event.FocusListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseWheelListener, java.awt.image.ImageObserver, MenuContainer, java.beans.PropertyChangeListener, Serializable, Runnable, java.util.EventListener, javax.accessibility.Accessible, ListeIEditableColumn, VueIAcces, VueIMoveListener
Direct Known Subclasses:
Liste, ListeRecno

public abstract class AbstractDbListe
extends JPanel
implements VueIMoveListener, java.awt.event.KeyListener, java.awt.event.MouseWheelListener, java.awt.event.MouseListener, VueIAcces, java.beans.PropertyChangeListener, ListeIEditableColumn, Runnable, java.awt.event.FocusListener


A_doc
Licence.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class JPanel
JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
(package private)  Color colorSelectedRowBackground
           
(package private)  Color colorSelectedRowForeground
           
(package private)  int colSelected
           
(package private)  HeaderCellRenderer hcr
           
(package private)  boolean isEnable
           
 JLabel jDebug
           
 JPanel jpDetail
           
 JPanel jpEntete
           
(package private)  ListeGridTable jpGridTable
           
(package private)  JPanel jpJTable
           
 JPanel jpListe
           
 ListeButtonTools jpListeTools
           
 ListeButtonPlus jpPlus
           
 JTableDb jt
           
(package private)  ListeCellEditor lce
           
(package private)  ListeCellRenderer lcr
           
 ListeModele lm
           
(package private)  ListeSelectionListener lsl
           
(package private)  boolean pageprecedente
           
(package private)  boolean pagesuivante
           
(package private)  boolean precedent
           
 JSb sb
           
 JSb sbTable
           
 Sql sql
           
(package private)  boolean suivant
           
 AbstractVue vue
           
 
Fields inherited from class 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 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
AbstractDbListe(Sql sqlListe)
           
 
Method Summary
 void adapteAide()
           
 void addEditableColumn(JComponent jc)
           
 void addOption(JTextButton jb)
           
 void dbFin()
           
 void dbGoRecno(String recno)
           
 void debut()
           
 void decrListe()
           
 void dispose()
           
 void enableEditableColumn(String name, boolean enable)
           
 void exitAndAbortSel()
           
 void exitAndReturnSel(String nameField)
           
protected  void finalize()
           
 void focusGained(java.awt.event.FocusEvent arg0)
           
 void focusLost(java.awt.event.FocusEvent arg0)
           
 void focusOnTwin()
           
 javax.swing.table.TableColumn getCol(int num)
           
 int getCol(String name)
           
 boolean getForcedFocus()
           
 int getHeightTextSeek()
           
protected  Dimension getSizeCol(int col)
           
 Dimension getSizeCol(JComponent jc)
           
protected  int getWidthCol(JComponent jc)
           
 void goBottom()
           
 void goTop()
           
 void incrListe()
           
protected  void initComponent()
           
 void initFocus()
          Place le focus sur le premier Edit focussable
 boolean isEnable()
           
 boolean isMovable()
           
 boolean isToolsVisible()
           
 void keyPressed(java.awt.event.KeyEvent arg0)
           
 void keyReleased(java.awt.event.KeyEvent arg0)
           
 void keyTyped(java.awt.event.KeyEvent arg0)
           
 boolean likeCb()
           
 void load(int load)
           
 void load(String v_index)
           
 void loadSeek(String v_seek)
           
 void loadTwin(int load)
          ATTENTION SURDEFINI par ListeRecno
 void loadTwin(String recno)
           
 void maxListe()
           
 void minListe()
           
 void mouseClicked(java.awt.event.MouseEvent arg0)
           
 void mouseEntered(java.awt.event.MouseEvent arg0)
           
 void mouseExited(java.awt.event.MouseEvent arg0)
           
 void mousePressed(java.awt.event.MouseEvent arg0)
           
 void mouseReleased(java.awt.event.MouseEvent arg0)
           
 void mouseWheelMoved(java.awt.event.MouseWheelEvent arg0)
           
 void pagePrecedente()
           
 void pageSuivante()
           
 void precedent(int nb)
           
 void propertyChange(java.beans.PropertyChangeEvent arg0)
           
 void removeEditableColumn(String name)
           
 void resizeListe()
           
 void run()
           
 void search()
           
 void seekLike()
           
 void setAideVisible(boolean enable)
           
 void setCbMS1204(AbstractMS1204 ms1204)
           
 void setColBackground(String name, boolean background, Color color)
           
 void setColColor(String name, boolean b, Color background, Color foreground)
           
 void setColForeground(String name, boolean foreground, Color color)
           
 void setColVisible(int numcol, boolean visible)
           
 void setColVisible(String name, boolean visible)
           
 void setEnabled(boolean enable)
           
 void setForcedFocus(boolean forced)
           
 void setHeaderSouth()
           
 void setResizeCol(int numCol)
           
 void setRowBackground(String name, boolean foreground, Color color, String value)
           
 void setRowForeground(String name, boolean foreground, Color color, String value)
           
 void setTitleFiche()
           
 void setToolsVisible(boolean enable)
           
 void setVisible(boolean enable)
           
 boolean startWaitCodeCb()
           
 void stopCb()
           
 void suivant(int nb)
           
 void userAide()
           
 void userF2F3()
           
 void userF5Print()
           
 void userPlus()
           
 void userSetAide()
           
 void userUpdateEdit(javax.swing.text.Document jdct)
           
 void validateAdapteListe()
           
 void validateDebut()
           
 
Methods inherited from class JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class JComponent
addAncestorListener, addNotify, 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, getToolTipText, getToolTipText, 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, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update
 
Methods inherited from class Container
add, add, add, add, add, addContainerListener, addImpl, 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, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class 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 Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sql

public Sql sql

vue

public AbstractVue vue

jt

public JTableDb jt

lm

public ListeModele lm

lsl

ListeSelectionListener lsl

lce

ListeCellEditor lce

hcr

HeaderCellRenderer hcr

lcr

ListeCellRenderer lcr

jpPlus

public ListeButtonPlus jpPlus

jDebug

public JLabel jDebug

jpEntete

public JPanel jpEntete

jpDetail

public JPanel jpDetail

jpListeTools

public ListeButtonTools jpListeTools

jpJTable

JPanel jpJTable

jpGridTable

ListeGridTable jpGridTable

jpListe

public JPanel jpListe

sb

public JSb sb

sbTable

public JSb sbTable

isEnable

boolean isEnable

colorSelectedRowBackground

Color colorSelectedRowBackground

colorSelectedRowForeground

Color colorSelectedRowForeground

colSelected

int colSelected

pageprecedente

boolean pageprecedente

pagesuivante

boolean pagesuivante

precedent

boolean precedent

suivant

boolean suivant
Constructor Detail

AbstractDbListe

public AbstractDbListe(Sql sqlListe)
Method Detail

initComponent

protected void initComponent()

userPlus

public void userPlus()

isToolsVisible

public boolean isToolsVisible()

setToolsVisible

public void setToolsVisible(boolean enable)

adapteAide

public void adapteAide()

setAideVisible

public void setAideVisible(boolean enable)

userAide

public void userAide()

userSetAide

public void userSetAide()

addOption

public void addOption(JTextButton jb)

getHeightTextSeek

public int getHeightTextSeek()

setTitleFiche

public void setTitleFiche()

setHeaderSouth

public void setHeaderSouth()

addEditableColumn

public void addEditableColumn(JComponent jc)
Specified by:
addEditableColumn in interface ListeIEditableColumn

enableEditableColumn

public void enableEditableColumn(String name,
                                 boolean enable)
Specified by:
enableEditableColumn in interface ListeIEditableColumn

removeEditableColumn

public void removeEditableColumn(String name)
Specified by:
removeEditableColumn in interface ListeIEditableColumn

setColVisible

public void setColVisible(String name,
                          boolean visible)

setColColor

public void setColColor(String name,
                        boolean b,
                        Color background,
                        Color foreground)

setColBackground

public void setColBackground(String name,
                             boolean background,
                             Color color)

setColForeground

public void setColForeground(String name,
                             boolean foreground,
                             Color color)

setRowForeground

public void setRowForeground(String name,
                             boolean foreground,
                             Color color,
                             String value)

setRowBackground

public void setRowBackground(String name,
                             boolean foreground,
                             Color color,
                             String value)

setColVisible

public void setColVisible(int numcol,
                          boolean visible)

getCol

public javax.swing.table.TableColumn getCol(int num)

getCol

public int getCol(String name)

getSizeCol

protected Dimension getSizeCol(int col)

getSizeCol

public Dimension getSizeCol(JComponent jc)

getWidthCol

protected int getWidthCol(JComponent jc)

setEnabled

public void setEnabled(boolean enable)
Specified by:
setEnabled in interface VueIAcces
Overrides:
setEnabled in class JComponent

setVisible

public void setVisible(boolean enable)
Specified by:
setVisible in interface VueIAcces
Overrides:
setVisible in class JComponent

isEnable

public boolean isEnable()
Specified by:
isEnable in interface VueIAcces

setForcedFocus

public void setForcedFocus(boolean forced)

getForcedFocus

public boolean getForcedFocus()

incrListe

public void incrListe()

decrListe

public void decrListe()

minListe

public void minListe()

maxListe

public void maxListe()

resizeListe

public void resizeListe()

search

public void search()

likeCb

public boolean likeCb()

goBottom

public void goBottom()

goTop

public void goTop()

keyTyped

public void keyTyped(java.awt.event.KeyEvent arg0)
Specified by:
keyTyped in interface java.awt.event.KeyListener

keyReleased

public void keyReleased(java.awt.event.KeyEvent arg0)
Specified by:
keyReleased in interface java.awt.event.KeyListener

keyPressed

public void keyPressed(java.awt.event.KeyEvent arg0)
Specified by:
keyPressed in interface java.awt.event.KeyListener

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent arg0)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener

exitAndReturnSel

public void exitAndReturnSel(String nameField)

exitAndAbortSel

public void exitAndAbortSel()

userF2F3

public void userF2F3()

userF5Print

public void userF5Print()

focusOnTwin

public void focusOnTwin()
Specified by:
focusOnTwin in interface VueIAcces

mouseWheelMoved

public void mouseWheelMoved(java.awt.event.MouseWheelEvent arg0)
Specified by:
mouseWheelMoved in interface java.awt.event.MouseWheelListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent arg0)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent arg0)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent arg0)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent arg0)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent arg0)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

isMovable

public boolean isMovable()
Specified by:
isMovable in interface VueIMoveListener

debut

public void debut()
Specified by:
debut in interface VueIMoveListener

dbFin

public void dbFin()
Specified by:
dbFin in interface VueIAcces
Specified by:
dbFin in interface VueIMoveListener

pagePrecedente

public void pagePrecedente()
Specified by:
pagePrecedente in interface VueIMoveListener

pageSuivante

public void pageSuivante()
Specified by:
pageSuivante in interface VueIMoveListener

precedent

public void precedent(int nb)
Specified by:
precedent in interface VueIMoveListener

suivant

public void suivant(int nb)
Specified by:
suivant in interface VueIMoveListener

initFocus

public void initFocus()
Description copied from interface: VueIAcces
Place le focus sur le premier Edit focussable

Specified by:
initFocus in interface VueIAcces

setResizeCol

public void setResizeCol(int numCol)

seekLike

public void seekLike()

loadTwin

public void loadTwin(int load)
ATTENTION SURDEFINI par ListeRecno

Specified by:
loadTwin in interface VueIAcces

loadTwin

public void loadTwin(String recno)

dbGoRecno

public void dbGoRecno(String recno)
Specified by:
dbGoRecno in interface VueIAcces

loadSeek

public void loadSeek(String v_seek)
Specified by:
loadSeek in interface VueIAcces

validateDebut

public void validateDebut()
Specified by:
validateDebut in interface VueIAcces

validateAdapteListe

public void validateAdapteListe()

load

public void load(String v_index)
Specified by:
load in interface VueIAcces

load

public void load(int load)
Specified by:
load in interface VueIAcces

userUpdateEdit

public void userUpdateEdit(javax.swing.text.Document jdct)
Specified by:
userUpdateEdit in interface VueIAcces

dispose

public void dispose()

finalize

protected void finalize()
Overrides:
finalize in class Object

setCbMS1204

public void setCbMS1204(AbstractMS1204 ms1204)

focusGained

public void focusGained(java.awt.event.FocusEvent arg0)
Specified by:
focusGained in interface java.awt.event.FocusListener

focusLost

public void focusLost(java.awt.event.FocusEvent arg0)
Specified by:
focusLost in interface java.awt.event.FocusListener

startWaitCodeCb

public boolean startWaitCodeCb()

run

public void run()
Specified by:
run in interface Runnable

stopCb

public void stopCb()