composant_saisie.wSaisieFormat
Class Ccs

Object
  extended by composant_saisie.wSaisieFormat.Ccs
All Implemented Interfaces:
java.awt.event.FocusListener, java.awt.event.MouseListener, java.beans.PropertyChangeListener, java.util.EventListener

public class Ccs
extends Object
implements java.beans.PropertyChangeListener, java.awt.event.MouseListener, java.awt.event.FocusListener


A_doc
Licence.


Field Summary
static String alerte
           
static String CCS_NOTIFIER
           
static String CCS_TYPE
           
static String CCS_UPDATE
           
static String CHECKED
           
static String CODEINF2
           
static Color COLOR_TABLE_SELECTIONBACKGROUND
           
static String CONSULTF2
           
static String DATE
           
static String DATEEMPTY
           
(package private)  boolean debug
           
(package private)  boolean debugDependant
           
static String DEFAULTVALUE
           
static String DISPOSE_KL
           
static String DISPOSE_PCL
           
 int indicecol
           
static String INTERO
           
static String JTPARENTDOC
           
static String LIKEINF2
           
(package private)  boolean modeUpdatable
           
static String MONTH
           
static String MSG_CTRL_FALSE
           
static String NEWCODEF2
           
static String NOTEMPTY
           
static String NOTZERO
           
static String PCLTYPE
           
static String PHONE
           
static String PLAGETIMES
           
static String POSTAL
           
static String RADIO
           
static String RANGEDATE
           
static String RANGEDATEEMPTY
           
static String RANGEDOUBLE
           
static String RANGEINT
           
static String RANGELEN
           
static String RANGETIME
           
static String SECU
           
(package private)  Sql sql
           
(package private)  String status
           
static String TIME
           
static String TIMEDELAY
           
static String URSS
           
static String YEAR
           
 
Constructor Summary
Ccs(Sql sqlTable)
           
 
Method Summary
 void adapteE(javax.swing.event.DocumentListener dl, javax.swing.text.JTextComponent jt, String defaultValue, Fmt fmt, String name)
           
 void adapteE(javax.swing.event.DocumentListener dl, javax.swing.text.JTextComponent jt, String defaultValue, String dFormat, String name)
           
 void adapteE(java.beans.PropertyChangeListener pcl, JPlageTimes jc, int field, Fmt fmt)
           
 void adapteE(java.beans.PropertyChangeListener pcl, JTextCheck jc, String defaultValue, int length, String name)
           
 void adapteE(java.beans.PropertyChangeListener pcl, JTimeDelay jc, int field, Fmt fmt)
           
 void adapteL(JPanel jp, JTextDb jt)
           
 void adapteT(javax.swing.event.DocumentListener dl, javax.swing.text.JTextComponent jt, String name, Fmt fmt)
           
 void addDependant(JComponent child, JComponent parent)
           
 void addE(JComponent jc)
           
 void addE(JPanel jpDbE)
          ajoute les Edits au panel Edit
 void addEDetail(JPanel jpDbE)
          ajoute les Edits au panel Edit en ligne saisie du détail
 void addEditListener(JComponent jc, String ccsType)
           
 void addF2Listener(javax.swing.text.JTextComponent jt, String ccs)
           
 void addInteroListener(javax.swing.text.JTextComponent jt, String choix)
           
 void addL(JPanel jpDbL)
          ajoute les Label au panel label
 void addNotZeroListener(JComponent jc)
           
 void addRangeDateEmptyListener(JComponent jc, String min, String max)
           
 void addRangeDateListener(JComponent jc, String min, int max)
           
 void addRangeDateListener(JComponent jc, String min, String max)
           
 void addRangeDoubleListener(JComponent jc, double min, double max)
           
 void addRangeIntListener(JComponent jc, int min, int max)
           
 void addRangeLenListener(JComponent jc, int min, int max)
           
 void addRangeTimeListener(JComponent jc, String min, String max)
           
 void addTextCheckListener(JRadio jc)
           
 void addTextCheckListener(JTextCheck jc)
           
 void alignL(int sc)
          aligne les Labels de la fiche
 void debugListDependantFinale(JComponent jc)
           
 void debugListDependantSource(JComponent jc)
           
 void dispose()
           
protected  void finalize()
           
 JComponent findLastFocus()
           
 void fireT(JComponent jc, String ccsType)
          Déclenche le contrôle d'un Edit
 void focusGained(java.awt.event.FocusEvent e)
           
 void focusLost(java.awt.event.FocusEvent e)
           
 JComponent getDependantCompute(int i)
           
 JComponent getDependantDest(int i)
           
 JComponent getDependantFinal(int i)
           
 String getDependantNCompute(int i)
           
 int getDependantSize()
           
 JComponent getDependantSour(int i)
           
 JComponent getE(int field)
           
 int getESize()
           
static JPanel getFlow(JComponent jl, JComponent jt)
           
static JPanel getFlow(JComponent jl, JComponent jt, int hgap)
           
static int getHorizontalAlignement(Fma fma)
           
 boolean isDate(JComponent jc)
           
 boolean isDateEmpty(JComponent jc)
           
 boolean isDebugDependant()
           
 boolean isDependant(JComponent jc)
           
 boolean isENotifier(JComponent jc)
           
 boolean isEUpdatable(JComponent jc)
           
 boolean isIntero(JComponent jc)
           
 boolean isModeUpdate()
           
 boolean isMonth(JComponent jc)
           
 boolean isNotEmpty(JComponent jc)
           
 boolean isPhone(JComponent jc)
           
 boolean isPlageTimes(JComponent jc)
           
 boolean isPostal(JComponent jc)
           
 boolean isSecu(JComponent jc)
           
 boolean isTime(JComponent jc)
           
 boolean isTimeDelay(JComponent jc)
           
 JComponent isUpdatable()
           
 boolean isUrss(JComponent jc)
           
 boolean isYear(JComponent jc)
           
 void mapE(javax.swing.event.DocumentListener dl, javax.swing.text.JTextComponent jt, int field)
          map un Edit et un champs de table
 void mapE(javax.swing.event.DocumentListener dl, javax.swing.text.JTextComponent jt, int field, Fmt fmt)
           
 void mapE(javax.swing.event.DocumentListener dl, javax.swing.text.JTextComponent jt, int field, String dFormat)
           
 void mapE(javax.swing.event.DocumentListener dl, javax.swing.text.JTextComponent jt, int field, String defaultValue, String dFormat)
           
 void mapE(javax.swing.event.DocumentListener dl, javax.swing.text.JTextComponent jt, String defaultValue, int length, String name)
           
 void mapE(javax.swing.event.DocumentListener dl, JTextDbF2 jt, int field, String defaultValue)
           
 void mapE(java.beans.PropertyChangeListener pcl, JTextCheck jc, int field, String defaultValue)
           
 void mapL(JPanel jp, JTextDb jt, int numField)
          map un Label et une désignation d'un champs de table
 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 moveFocus(JComponent jt)
           
 void propertyChange(java.beans.PropertyChangeEvent arg0)
           
 void reduceLHeight(int height)
           
 void setCcsNotifier(JComponent jc)
           
 void setDebug(boolean enable)
           
 void setDebugDependant(boolean debugDependant)
           
 void setDefaultDatas()
           
 void setDefFocus(JComponent jc)
          Défini le premier Edit focusable d'une fiche
 void setDependant(JComponent jc)
          Recalcule les dépendances d'un Edit
 void setDependantCompute(int i, JComponent jc)
           
 void setDependantDest(int i, JComponent jc)
           
 void setDependantFinal(int i, JComponent jc)
           
 void setEEnable(boolean enable)
           
 void setEEnabled(JComponent jc, boolean enable)
           
 void setEUpdate(JComponent jc, boolean enable)
           
 void setModeMovable(boolean movable)
           
 void setModeUpdate(boolean updatable)
           
 void setPreferredSizeELikeListe(AbstractDbListe dbListe)
           
 void setRangeDateEmptyListener(JComponent jc, String min, String max)
           
 void setRangeDateListener(JComponent jc, String min, String max)
           
 void setRangeDoubleListener(JComponent jc, double min, double max)
           
 void setRangeIntListener(JComponent jc, int min, int max)
           
 void setRangeLenListener(JComponent jc, int min, int max)
           
 void setRangeTimeListener(JComponent jc, String min, String max)
           
 void setStatusFicheEdit(JComponent jc)
          Affiche une aide dans la barre de status
static void TexttoLibe(JTextDb jt)
           
 
Methods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLOR_TABLE_SELECTIONBACKGROUND

public static Color COLOR_TABLE_SELECTIONBACKGROUND

alerte

public static String alerte

DISPOSE_PCL

public static String DISPOSE_PCL

DISPOSE_KL

public static String DISPOSE_KL

PCLTYPE

public static String PCLTYPE

CCS_UPDATE

public static String CCS_UPDATE

CCS_TYPE

public static String CCS_TYPE

CCS_NOTIFIER

public static String CCS_NOTIFIER

DEFAULTVALUE

public static String DEFAULTVALUE

MSG_CTRL_FALSE

public static String MSG_CTRL_FALSE

NOTEMPTY

public static String NOTEMPTY

DATE

public static String DATE

DATEEMPTY

public static String DATEEMPTY

MONTH

public static String MONTH

YEAR

public static String YEAR

TIME

public static String TIME

PHONE

public static String PHONE

SECU

public static String SECU

URSS

public static String URSS

POSTAL

public static String POSTAL

JTPARENTDOC

public static String JTPARENTDOC

INTERO

public static String INTERO

CODEINF2

public static String CODEINF2

NEWCODEF2

public static String NEWCODEF2

LIKEINF2

public static String LIKEINF2

CONSULTF2

public static String CONSULTF2

CHECKED

public static String CHECKED

RADIO

public static String RADIO

TIMEDELAY

public static String TIMEDELAY

PLAGETIMES

public static String PLAGETIMES

RANGEDOUBLE

public static String RANGEDOUBLE

RANGEINT

public static String RANGEINT

RANGELEN

public static String RANGELEN

RANGEDATE

public static String RANGEDATE

RANGEDATEEMPTY

public static String RANGEDATEEMPTY

RANGETIME

public static String RANGETIME

NOTZERO

public static String NOTZERO

indicecol

public int indicecol

debug

boolean debug

debugDependant

boolean debugDependant

modeUpdatable

boolean modeUpdatable

status

String status

sql

Sql sql
Constructor Detail

Ccs

public Ccs(Sql sqlTable)
Method Detail

mapL

public void mapL(JPanel jp,
                 JTextDb jt,
                 int numField)
map un Label et une désignation d'un champs de table

Parameters:
jp - Panel Standard des libellés (à Gauche)
jt - le label
numField - le numéro de champs

adapteL

public void adapteL(JPanel jp,
                    JTextDb jt)

alignL

public void alignL(int sc)
aligne les Labels de la fiche

Parameters:
sc - SwingConstants

addL

public void addL(JPanel jpDbL)
ajoute les Label au panel label

Parameters:
jpDbL -

addE

public void addE(JPanel jpDbE)
ajoute les Edits au panel Edit

Parameters:
jpDbE -

addEDetail

public void addEDetail(JPanel jpDbE)
ajoute les Edits au panel Edit en ligne saisie du détail

Parameters:
jpDbE -

setPreferredSizeELikeListe

public void setPreferredSizeELikeListe(AbstractDbListe dbListe)

reduceLHeight

public void reduceLHeight(int height)

mapE

public void mapE(java.beans.PropertyChangeListener pcl,
                 JTextCheck jc,
                 int field,
                 String defaultValue)

adapteE

public void adapteE(java.beans.PropertyChangeListener pcl,
                    JTextCheck jc,
                    String defaultValue,
                    int length,
                    String name)

adapteE

public void adapteE(java.beans.PropertyChangeListener pcl,
                    JTimeDelay jc,
                    int field,
                    Fmt fmt)

adapteE

public void adapteE(java.beans.PropertyChangeListener pcl,
                    JPlageTimes jc,
                    int field,
                    Fmt fmt)

mapE

public void mapE(javax.swing.event.DocumentListener dl,
                 JTextDbF2 jt,
                 int field,
                 String defaultValue)

mapE

public void mapE(javax.swing.event.DocumentListener dl,
                 javax.swing.text.JTextComponent jt,
                 int field)
map un Edit et un champs de table

Parameters:
dl - Panel de notification
jt - l'Edit
field - le numéro de champs

mapE

public void mapE(javax.swing.event.DocumentListener dl,
                 javax.swing.text.JTextComponent jt,
                 String defaultValue,
                 int length,
                 String name)

mapE

public void mapE(javax.swing.event.DocumentListener dl,
                 javax.swing.text.JTextComponent jt,
                 int field,
                 Fmt fmt)

adapteT

public void adapteT(javax.swing.event.DocumentListener dl,
                    javax.swing.text.JTextComponent jt,
                    String name,
                    Fmt fmt)

mapE

public void mapE(javax.swing.event.DocumentListener dl,
                 javax.swing.text.JTextComponent jt,
                 int field,
                 String dFormat)

adapteE

public void adapteE(javax.swing.event.DocumentListener dl,
                    javax.swing.text.JTextComponent jt,
                    String defaultValue,
                    Fmt fmt,
                    String name)

mapE

public void mapE(javax.swing.event.DocumentListener dl,
                 javax.swing.text.JTextComponent jt,
                 int field,
                 String defaultValue,
                 String dFormat)

adapteE

public void adapteE(javax.swing.event.DocumentListener dl,
                    javax.swing.text.JTextComponent jt,
                    String defaultValue,
                    String dFormat,
                    String name)

getHorizontalAlignement

public static int getHorizontalAlignement(Fma fma)

addTextCheckListener

public void addTextCheckListener(JRadio jc)

addTextCheckListener

public void addTextCheckListener(JTextCheck jc)

addInteroListener

public void addInteroListener(javax.swing.text.JTextComponent jt,
                              String choix)

addF2Listener

public void addF2Listener(javax.swing.text.JTextComponent jt,
                          String ccs)

addRangeDoubleListener

public void addRangeDoubleListener(JComponent jc,
                                   double min,
                                   double max)

setRangeDoubleListener

public void setRangeDoubleListener(JComponent jc,
                                   double min,
                                   double max)

addRangeIntListener

public void addRangeIntListener(JComponent jc,
                                int min,
                                int max)

setRangeIntListener

public void setRangeIntListener(JComponent jc,
                                int min,
                                int max)

addRangeLenListener

public void addRangeLenListener(JComponent jc,
                                int min,
                                int max)

setRangeLenListener

public void setRangeLenListener(JComponent jc,
                                int min,
                                int max)

addRangeDateListener

public void addRangeDateListener(JComponent jc,
                                 String min,
                                 int max)

addRangeDateListener

public void addRangeDateListener(JComponent jc,
                                 String min,
                                 String max)

setRangeDateListener

public void setRangeDateListener(JComponent jc,
                                 String min,
                                 String max)

addRangeDateEmptyListener

public void addRangeDateEmptyListener(JComponent jc,
                                      String min,
                                      String max)

setRangeDateEmptyListener

public void setRangeDateEmptyListener(JComponent jc,
                                      String min,
                                      String max)

addRangeTimeListener

public void addRangeTimeListener(JComponent jc,
                                 String min,
                                 String max)

setRangeTimeListener

public void setRangeTimeListener(JComponent jc,
                                 String min,
                                 String max)

addNotZeroListener

public void addNotZeroListener(JComponent jc)

addEditListener

public void addEditListener(JComponent jc,
                            String ccsType)

setDebug

public void setDebug(boolean enable)

fireT

public void fireT(JComponent jc,
                  String ccsType)
Déclenche le contrôle d'un Edit

Parameters:
jc - Edit à déclencher
ccsType - Identifiant du contrôl a executer

propertyChange

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

setEEnabled

public void setEEnabled(JComponent jc,
                        boolean enable)

setEUpdate

public void setEUpdate(JComponent jc,
                       boolean enable)

isModeUpdate

public boolean isModeUpdate()

setModeUpdate

public void setModeUpdate(boolean updatable)

setCcsNotifier

public void setCcsNotifier(JComponent jc)

isENotifier

public boolean isENotifier(JComponent jc)

isEUpdatable

public boolean isEUpdatable(JComponent jc)

isTime

public boolean isTime(JComponent jc)

isTimeDelay

public boolean isTimeDelay(JComponent jc)

isPlageTimes

public boolean isPlageTimes(JComponent jc)

isDate

public boolean isDate(JComponent jc)

isDateEmpty

public boolean isDateEmpty(JComponent jc)

isMonth

public boolean isMonth(JComponent jc)

isYear

public boolean isYear(JComponent jc)

isPhone

public boolean isPhone(JComponent jc)

isSecu

public boolean isSecu(JComponent jc)

isUrss

public boolean isUrss(JComponent jc)

isPostal

public boolean isPostal(JComponent jc)

isNotEmpty

public boolean isNotEmpty(JComponent jc)

isIntero

public boolean isIntero(JComponent jc)

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

setStatusFicheEdit

public void setStatusFicheEdit(JComponent jc)
Affiche une aide dans la barre de status

Parameters:
jc - Edit en cours de modification

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

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

mouseClicked

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

setModeMovable

public void setModeMovable(boolean movable)

setDefaultDatas

public void setDefaultDatas()

setEEnable

public void setEEnable(boolean enable)

getESize

public int getESize()

getE

public JComponent getE(int field)

addE

public void addE(JComponent jc)

moveFocus

public void moveFocus(JComponent jt)

findLastFocus

public JComponent findLastFocus()

setDefFocus

public void setDefFocus(JComponent jc)
Défini le premier Edit focusable d'une fiche

Parameters:
jc - Edit

isUpdatable

public JComponent isUpdatable()

addDependant

public void addDependant(JComponent child,
                         JComponent parent)

isDependant

public boolean isDependant(JComponent jc)

getDependantSize

public int getDependantSize()

getDependantSour

public JComponent getDependantSour(int i)

getDependantDest

public JComponent getDependantDest(int i)

getDependantFinal

public JComponent getDependantFinal(int i)

getDependantCompute

public JComponent getDependantCompute(int i)

getDependantNCompute

public String getDependantNCompute(int i)

setDependantDest

public void setDependantDest(int i,
                             JComponent jc)

setDependantFinal

public void setDependantFinal(int i,
                              JComponent jc)

setDependantCompute

public void setDependantCompute(int i,
                                JComponent jc)

setDependant

public void setDependant(JComponent jc)
Recalcule les dépendances d'un Edit

Parameters:
jc - Edit

setDebugDependant

public void setDebugDependant(boolean debugDependant)

isDebugDependant

public boolean isDebugDependant()

debugListDependantSource

public void debugListDependantSource(JComponent jc)

debugListDependantFinale

public void debugListDependantFinale(JComponent jc)

dispose

public void dispose()

finalize

protected void finalize()
Overrides:
finalize in class Object

getFlow

public static JPanel getFlow(JComponent jl,
                             JComponent jt,
                             int hgap)

getFlow

public static JPanel getFlow(JComponent jl,
                             JComponent jt)

TexttoLibe

public static void TexttoLibe(JTextDb jt)