|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object persistance.wGlobalParam.Gp
public class Gp
Entretien les variables globales dynamiques de l'appli
Cet objet est le connecteur a la base de données
Il propose aussi des routines static usuelles transverses
On y accède par le biais de Sql
__________________________________________________________________________________
A_doc
Licence
.
Field Summary | |
---|---|
static String |
ABCSOFT
|
static String |
AIMAGES
|
AbstractDefaultParam |
appliParam
|
static AbstractDefaultParam |
APPLIPARAM
|
String |
base
|
static String |
BEFOREMAINCHOICEMENU
|
static Color |
BLEU_FG
|
CodeBarre |
codeBarres
|
static String |
ConsoleErr
|
static String |
ConsoleOut
|
boolean |
dblisteTrace
|
static String |
DEFAULTUSER
|
static String |
DEVFILE
|
static String |
DEVNUMM
|
JFrame |
f_mf
|
int |
f_mfHeight
|
int |
f_mfWidth
|
JPanelImage |
f_mjpc
|
JStatusBar |
f_mjStatusBar
|
static Color |
FILIGRANE_LGRAY
|
static Font |
FONTBOLD
|
static Font |
FONTMENU
|
static Font |
FONTNORMAL
|
static Font |
FONTTEXT
|
static Font |
FONTTEXT10
|
static Font |
FONTTEXT11
|
static Font |
FONTTEXT12
|
static Font |
FONTTEXT13
|
static Font |
FONTTEXT14
|
static Font |
FONTTEXT15
|
static Font |
FONTTEXT16
|
static Font |
FONTTEXT18
|
static Font |
FONTTEXT9
|
static int |
FONTTEXTTYPE
|
static int |
G_DETAIL
|
static int |
G_DETAILENTETE
|
static int |
G_DETAILPIED
|
static int |
G_FICHE
|
static int |
G_FICHEENTETE
|
static int |
G_FICHEPIED
|
static int |
G_LISTE
|
static int |
G_LISTEENTETE
|
static int |
G_LISTEPIED
|
static int |
G_TITRE
|
static GridBagConstraints |
gbc
|
Gp |
gp
|
Gp |
gpAbc
|
static int |
HEIGHTCHAR
|
static int |
HEIGHTTEXT
|
static String |
HOME
|
ImpDot |
impdots
|
static int |
INSETCHAR
|
static Color |
INVALIDE_FG_RED
|
boolean |
ISCTRL_MASK
|
boolean |
ISDEVFILE
|
boolean |
ISSHIFT_MASK
|
static int |
JPGCENTER
|
static int |
JPGFILL
|
static int |
JPGGRADIENT
|
static int |
JPGNULL
|
static int |
JPGTEXTURE
|
static Color |
LABEL_BORDER
|
static Color |
LABEL_FG_BLACK
|
DbVue |
lastDbVue
|
static String |
LICENCE
|
static String |
LINEFEED
|
char |
m_a
|
String |
m_c_opt2
|
String |
m_c_opt3
|
int |
m_flagMenuMain
|
JMenu |
m_jmemu
|
JMenuBar |
m_jmenubar
|
String |
m_menu
|
String |
m_menuMain
|
String |
m_option
|
String |
m_optionText
|
String |
m_user
|
static String |
MAINCHOICEMENU
|
static int |
MARGEMINI
|
static int |
MAXFIELDS
|
static Color |
MOVE_BG_LRED
|
static Color |
MOVE_BG_LVERT
|
static int |
MYSQL
|
static String |
NAME
|
(package private) static Object |
o
|
static Color |
ORANGE_FG
|
static Color |
PANELVUE_BG
|
static int |
PROTECTDECALAGE
|
static int |
PROTECTDECALAGEKEY
|
static String |
PROTECTDEMO
|
static String |
PROTECTFIELD
|
static String |
PROTECTKEY
|
static int |
PROTECTMAXLINE
|
boolean |
sllisteTrace
|
Sql |
sql
|
Sql |
sqlAbc
|
static int |
SQLITE
|
(package private) java.util.ArrayList<Sql> |
sqls
|
boolean |
sqlTrace
|
String |
sqlTraceFiche
|
int |
sqltype
|
(package private) static Sql |
Ssql
|
static boolean |
TITLE
|
static int |
TITLESIZE
|
static boolean |
TOOLTIP
|
static double |
TOOLTIPDELAY
|
static double |
TOOLTIPINITIALDELAY
|
static int |
TOTAUXSIZE
|
boolean |
uiTrace
|
static Color |
UPDATE_BG_JAUNE
|
String |
url
|
static boolean |
USEBUTTONICONE
|
static boolean |
USEFRAMETEXTURE
|
static boolean |
USEPANELGRADIENT
|
static boolean |
USEPANELVUE
|
static String |
USERDIR
|
static boolean |
USEROUNDEDBORDER
|
static Color |
VERTFONCE_FG
|
static int |
WIDTHCHAR
|
Constructor Summary | |
---|---|
Gp(int sqltype,
String url,
String base)
|
Method Summary | |
---|---|
static void |
ad(char a)
|
static void |
ad(Object o)
|
static GridBagLayout |
adaptePanelButtonVertical()
|
static GridBagLayout |
adaptePanelC()
|
static GridBagLayout |
adaptePanelE()
|
static GridBagLayout |
adaptePanelL()
|
static GridBagLayout |
adaptePanelP()
|
void |
addDbVue()
|
static void |
addSeparator(JPanel jpDbE,
String titre)
Ajout d'un séparateur horizonthal dans le panel principal de saisie |
static void |
addSeparator2(JPanel jpDbT)
|
void |
addSql(Sql sql)
|
static void |
af()
|
static void |
af(int nbTrace,
Object strDebug)
|
static void |
af(Object o)
|
void |
applyPreferences(String user)
|
static int[] |
arrayStringToInt(String str)
|
void |
catchKeyboard()
|
void |
clearContainer(Container container,
boolean racine)
|
void |
clearMainFrame(boolean clearAide)
|
void |
closeCodeBarre()
Ferme les codes barres sur port com |
void |
closeImpdot()
Ferme les imprimantes thermiques sur port com |
static void |
debugSpyFocus()
|
static void |
dispatchEvent(Component c,
java.awt.event.KeyEvent e)
|
static double |
doubleRound(double value,
int n)
|
static AbstractDefaultParam |
getAppliParam(String namePackage)
|
static javax.swing.border.Border |
getBorder(javax.swing.border.Border bd,
Color color)
|
static javax.swing.border.Border |
getBorder(Color color)
|
Ms1204 |
getCodeBarreMs1204(int num)
|
String |
getdecah(String decamehex)
|
static JTextDb |
getEmptyLabel(String str)
|
static long |
getFileLastModified(String path)
|
static GridBagConstraints |
getGbcDetail()
|
static GridBagConstraints |
getGbcDetailEntete()
|
static GridBagConstraints |
getGbcDetailPied(int indice)
|
static GridBagConstraints |
getGbcFiche()
|
static GridBagConstraints |
getGbcFicheEntete()
|
static GridBagConstraints |
getGbcFichePied()
|
static GridBagConstraints |
getGbcListe()
|
static GridBagConstraints |
getGbcListeEntete()
|
static GridBagConstraints |
getGbcListePied()
|
static GridBagConstraints |
getGbcTitre()
|
String |
geth()
|
Image |
getImage(String name,
boolean transp)
|
String |
getImpDotDriver(int num)
|
Serial |
getImpDotSerial(int num)
|
static Color |
getPanelBackground()
|
JPanel |
getPanelTitleMenuOptionText()
|
static Insets |
getScreenInsets()
|
static Dimension |
getScreenSize()
|
static StackTraceElement[] |
getTrace()
|
static GridBagConstraints |
getx()
|
static GridBagConstraints |
gety()
|
java.awt.image.BufferedImage |
grayedImage(java.awt.image.BufferedImage colorImage)
|
Icon |
ImageIcon(Image img,
int coef)
|
void |
initCbParamUser(String ms1204_port,
int num,
boolean beepInit)
Initialise le Codes Barre a) paramétre le port com b) reprogramme le CB c) éteint le faisceau e) Reste en disponibilité |
void |
initImpDotParamUser(String impdot_port,
int num,
String impdot_driver)
Init Imprimantes thermiques sur port com |
boolean |
isCodeBarre(int num)
Code barre sur port com présent |
boolean |
isCtrlMask()
|
static boolean |
isFileExists(String path)
|
boolean |
isImpDot(int num)
Imprimantes thermiques sur port com présentes |
static boolean |
isInf(String s1,
String s2)
|
static boolean |
isInfOrEqual(String s1,
String s2)
|
boolean |
isShiftMask()
|
static boolean |
isSup(String s1,
String s2)
|
static boolean |
isSupOrEqual(String s1,
String s2)
|
boolean |
isTcetorp()
|
static void |
keyb(int[] keyb)
|
static void |
keybAlt(int[] keyb)
|
static void |
listKeyUiManager(String strkey)
|
void |
loadMenu()
|
static Gp |
mainDebut(String namePackage)
|
Image |
makeColorTransparent(Image im,
Color color)
|
void |
mapUser()
|
static void |
MB(Object o)
|
static void |
MB(Sql sql,
Object o)
|
int |
notify(String titre,
String mess,
Object[] option,
String nameImage,
int defOption)
|
static void |
paintTriangle(Graphics g,
int x,
int y,
int size,
int direction,
int type)
|
static double |
parseDouble(String value)
|
static int |
parseInt(String value)
|
boolean |
postProcessKeyEvent(java.awt.event.KeyEvent e)
|
static void |
quit()
|
static String[] |
readParamFromFile(String file,
int nbParam)
|
void |
removeDbVue(boolean enable)
|
String |
restoreLastUserFromSystem()
|
void |
saveLastUserToSystem(String user)
|
static void |
setBackgroundGradient(Graphics g,
Component component,
int value,
boolean sens)
|
void |
setColorFonce()
|
static void |
setConsoleDebug(boolean enable)
|
static void |
setConsoleErr(boolean enable)
|
void |
setCursorWait(boolean enabled)
|
static void |
setFill(int fill)
|
void |
setFrameTexture()
|
static void |
setHeight(int height)
|
void |
setIcon(Window jw)
|
static void |
setLabelTitre(JLabel jl)
|
void |
setMainTitle()
|
static void |
setRelativeLocation(Container cont,
Point p,
Dimension dim)
|
static void |
setSeparatorVisible(JPanel jpDbT,
String titre,
boolean enable)
|
void |
setSizePanel(JPanel jp,
int width,
int height)
|
void |
setTcetorp()
|
static void |
setWidth(int width)
|
static void |
setx(int gridx)
|
static void |
setxy(int gridx,
int gridy)
|
static void |
sety(int gridy)
|
java.awt.image.BufferedImage |
toBufferedImage(Image imag)
|
void |
zoomIn(Container cont,
int step)
|
void |
zoomOut(Container cont,
int step)
|
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static AbstractDefaultParam APPLIPARAM
public static String NAME
public static String HOME
public static String USERDIR
public static String AIMAGES
public static String ABCSOFT
public static String LICENCE
public static final Color LABEL_BORDER
public static final Color LABEL_FG_BLACK
public static final Color FILIGRANE_LGRAY
public static final Color UPDATE_BG_JAUNE
public static final Color INVALIDE_FG_RED
public static final int HEIGHTCHAR
public static final int WIDTHCHAR
public static final int MARGEMINI
public static final int INSETCHAR
public static final int HEIGHTTEXT
public static final String LINEFEED
public boolean ISDEVFILE
public AbstractDefaultParam appliParam
public boolean sqlTrace
public String sqlTraceFiche
public boolean uiTrace
public boolean dblisteTrace
public boolean sllisteTrace
public boolean ISCTRL_MASK
public boolean ISSHIFT_MASK
public JFrame f_mf
public int f_mfWidth
public int f_mfHeight
public JPanelImage f_mjpc
public static final int JPGCENTER
public static final int JPGTEXTURE
public static final int JPGFILL
public static final int JPGGRADIENT
public static final int JPGNULL
public JStatusBar f_mjStatusBar
public JMenuBar m_jmenubar
public String m_menuMain
public String m_user
public int m_flagMenuMain
public static final String BEFOREMAINCHOICEMENU
public static final String MAINCHOICEMENU
public JMenu m_jmemu
public String m_menu
public String m_option
public String m_c_opt2
public String m_c_opt3
public String m_optionText
public char m_a
public Gp gpAbc
public Gp gp
public Sql sqlAbc
public Sql sql
java.util.ArrayList<Sql> sqls
public static final int G_TITRE
public static final int G_LISTEENTETE
public static final int G_LISTE
public static final int G_LISTEPIED
public static final int G_FICHEENTETE
public static final int G_FICHE
public static final int G_FICHEPIED
public static final int G_DETAILENTETE
public static final int G_DETAIL
public static final int G_DETAILPIED
public static final String PROTECTFIELD
public static final int PROTECTMAXLINE
public static final String PROTECTDEMO
public static final int PROTECTDECALAGE
public static final int PROTECTDECALAGEKEY
public static final String PROTECTKEY
public static final String DEVFILE
public static final String DEVNUMM
public static final String DEFAULTUSER
public CodeBarre codeBarres
public ImpDot impdots
public static String ConsoleErr
public static String ConsoleOut
public static GridBagConstraints gbc
public static boolean TOOLTIP
public static double TOOLTIPINITIALDELAY
public static double TOOLTIPDELAY
public static int TITLESIZE
public static boolean TITLE
public static int TOTAUXSIZE
public static final Font FONTNORMAL
public static final Font FONTBOLD
public static int FONTTEXTTYPE
public static Font FONTTEXT
public static Font FONTTEXT9
public static Font FONTTEXT10
public static Font FONTTEXT11
public static Font FONTTEXT12
public static Font FONTTEXT13
public static Font FONTTEXT14
public static Font FONTTEXT15
public static Font FONTTEXT16
public static Font FONTTEXT18
public static Font FONTMENU
public static boolean USEFRAMETEXTURE
public static boolean USEBUTTONICONE
public static Color BLEU_FG
public static Color ORANGE_FG
public static Color VERTFONCE_FG
public static Color MOVE_BG_LVERT
public static Color MOVE_BG_LRED
public static Color PANELVUE_BG
public static boolean USEROUNDEDBORDER
public static boolean USEPANELVUE
public static boolean USEPANELGRADIENT
public DbVue lastDbVue
public static final int SQLITE
public static final int MYSQL
public static final int MAXFIELDS
public int sqltype
public String base
public String url
static Object o
static Sql Ssql
Constructor Detail |
---|
public Gp(int sqltype, String url, String base)
Method Detail |
---|
public void setIcon(Window jw)
public Image getImage(String name, boolean transp)
public Image makeColorTransparent(Image im, Color color)
public Icon ImageIcon(Image img, int coef)
public java.awt.image.BufferedImage toBufferedImage(Image imag)
public java.awt.image.BufferedImage grayedImage(java.awt.image.BufferedImage colorImage)
public static void setBackgroundGradient(Graphics g, Component component, int value, boolean sens)
public static void paintTriangle(Graphics g, int x, int y, int size, int direction, int type)
public void setColorFonce()
public void applyPreferences(String user)
public static Gp mainDebut(String namePackage)
public static AbstractDefaultParam getAppliParam(String namePackage)
public void mapUser()
public void loadMenu()
public void setMainTitle()
public String restoreLastUserFromSystem()
public void saveLastUserToSystem(String user)
public void setFrameTexture()
public static void listKeyUiManager(String strkey)
public static Dimension getScreenSize()
public static Insets getScreenInsets()
public static void setRelativeLocation(Container cont, Point p, Dimension dim)
public static Color getPanelBackground()
public void setSizePanel(JPanel jp, int width, int height)
public JPanel getPanelTitleMenuOptionText()
public void clearMainFrame(boolean clearAide)
public void addSql(Sql sql)
public void clearContainer(Container container, boolean racine)
public static GridBagLayout adaptePanelC()
public static GridBagLayout adaptePanelButtonVertical()
public static GridBagLayout adaptePanelL()
public static GridBagLayout adaptePanelP()
public static GridBagLayout adaptePanelE()
public static void setLabelTitre(JLabel jl)
public static javax.swing.border.Border getBorder(Color color)
public static javax.swing.border.Border getBorder(javax.swing.border.Border bd, Color color)
public static JTextDb getEmptyLabel(String str)
public static GridBagConstraints getGbcTitre()
public static GridBagConstraints getGbcListe()
public static GridBagConstraints getGbcListeEntete()
public static GridBagConstraints getGbcListePied()
public static GridBagConstraints getGbcFiche()
public static GridBagConstraints getGbcFicheEntete()
public static GridBagConstraints getGbcFichePied()
public static GridBagConstraints getGbcDetail()
public static GridBagConstraints getGbcDetailEntete()
public static GridBagConstraints getGbcDetailPied(int indice)
public static void setxy(int gridx, int gridy)
public static void sety(int gridy)
public static GridBagConstraints gety()
public static void setx(int gridx)
public static void setWidth(int width)
public static void setHeight(int height)
public static GridBagConstraints getx()
public static void setFill(int fill)
public static void addSeparator(JPanel jpDbE, String titre)
jpDbE
- panel principal de saisietitre
- [Titre] aligné à gauchepublic static void setSeparatorVisible(JPanel jpDbT, String titre, boolean enable)
public static void addSeparator2(JPanel jpDbT)
public void setTcetorp()
public boolean isTcetorp()
public String geth()
public String getdecah(String decamehex)
public void zoomIn(Container cont, int step)
public void zoomOut(Container cont, int step)
public int notify(String titre, String mess, Object[] option, String nameImage, int defOption)
public void removeDbVue(boolean enable)
public void addDbVue()
public static boolean isSup(String s1, String s2)
public static boolean isSupOrEqual(String s1, String s2)
public static boolean isInf(String s1, String s2)
public static boolean isInfOrEqual(String s1, String s2)
public static double parseDouble(String value)
public static int parseInt(String value)
public static double doubleRound(double value, int n)
public static void setConsoleErr(boolean enable)
public static void setConsoleDebug(boolean enable)
public static StackTraceElement[] getTrace()
public static void af()
public static void af(int nbTrace, Object strDebug)
public static void af(Object o)
public static void ad(Object o)
public static void ad(char a)
public static void MB(Object o)
public static void MB(Sql sql, Object o)
public void initCbParamUser(String ms1204_port, int num, boolean beepInit)
ms1204_port
- Nom du Port comnum
- numéro internebeepInit
- public Ms1204 getCodeBarreMs1204(int num)
public boolean isCodeBarre(int num)
public void closeCodeBarre()
public void initImpDotParamUser(String impdot_port, int num, String impdot_driver)
impdot_port
- Nom du port comnum
- numéro interneimpdot_driver
- nom du driver 8 ou 12 Dotspublic boolean isImpDot(int num)
public String getImpDotDriver(int num)
public Serial getImpDotSerial(int num)
public void closeImpdot()
public static boolean isFileExists(String path)
public static long getFileLastModified(String path)
public static String[] readParamFromFile(String file, int nbParam)
public void setCursorWait(boolean enabled)
public static void quit()
public static int[] arrayStringToInt(String str)
public static void keyb(int[] keyb)
public static void keybAlt(int[] keyb)
public static void debugSpyFocus()
public static void dispatchEvent(Component c, java.awt.event.KeyEvent e)
public void catchKeyboard()
public boolean postProcessKeyEvent(java.awt.event.KeyEvent e)
postProcessKeyEvent
in interface KeyEventPostProcessor
public boolean isCtrlMask()
public boolean isShiftMask()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |