composant_saisie.wComposant
Class JTextDb

Object
  extended by Component
      extended by Container
          extended by JComponent
              extended by javax.swing.text.JTextComponent
                  extended by JTextField
                      extended by composant_saisie.wComposant.JTextDb
All Implemented Interfaces:
java.awt.event.FocusListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.image.ImageObserver, MenuContainer, Serializable, Runnable, java.util.EventListener, javax.accessibility.Accessible, Scrollable, SwingConstants, FicheIEditableColumns
Direct Known Subclasses:
JTextDbCalc, JTextDbDate, JTextDbF2, JTextDbSpin, JTextDbTime

public class JTextDb
extends JTextField
implements FicheIEditableColumns, java.awt.event.FocusListener, java.awt.event.MouseListener, java.awt.event.KeyListener, Runnable


A_doc
Licence.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class JTextField
JTextField.AccessibleJTextField
 
Nested classes/interfaces inherited from class javax.swing.text.JTextComponent
javax.swing.text.JTextComponent.AccessibleJTextComponent, javax.swing.text.JTextComponent.DropLocation, javax.swing.text.JTextComponent.KeyBinding
 
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)  String body
           
 boolean borderHeader
           
(package private)  boolean clicked
           
(package private)  Color color
           
(package private)  Color colorBorderHeader
           
(package private)  boolean debugDisposeTrace
           
(package private)  boolean debugSetText
           
(package private)  boolean debugSetTextTrace
           
(package private)  FicheIEditableColumns fe
           
(package private)  ListeIEditableColumn fl
           
 boolean libelleFiche
           
 String libelleHelpText
           
(package private)  String mail
           
(package private)  boolean mailTo
           
(package private)  int rotation
           
(package private)  boolean selectAllOnFocus
           
(package private)  String subject
           
(package private)  String superText
           
(package private)  TransferHandler th
           
(package private)  String urlsiteWeb
           
(package private)  boolean web
           
(package private)  int x
           
(package private)  int y
           
 
Fields inherited from class JTextField
notifyAction
 
Fields inherited from class javax.swing.text.JTextComponent
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY
 
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 SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
JTextDb()
           
JTextDb(String txt)
           
 
Method Summary
 void adapteTextField()
           
 void adapteTextLibe()
           
 void dispose()
           
 void enableEditableColumn(boolean enable)
           
protected  void finalize()
           
 void fireEditableColumnUpdate(String nameField, Object value)
          La liste envoi le nom de l'Edit et sa valeur validée par entrée
à la fiche
 void focusGained(java.awt.event.FocusEvent arg0)
           
 void focusLost(java.awt.event.FocusEvent arg0)
           
 String getBody()
           
 double getDouble()
           
 int getInt()
           
 String getLibelleHelpText()
           
 String getSSeparator(String separator)
           
 String getSubject()
           
 Point getToolTipLocation(java.awt.event.MouseEvent event)
           
 void headerBorderPaint(Graphics g)
           
 boolean isEmpty()
           
 boolean isEnableClipboard()
           
 boolean isSelectAllOnFocus()
           
 void keyPressed(java.awt.event.KeyEvent e)
           
 void keyReleased(java.awt.event.KeyEvent e)
           
 void keyTyped(java.awt.event.KeyEvent e)
           
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
 void paint(Graphics g)
           
 void reduceHeightDim(int height)
           
 void removeEditableColumn()
           
 void run()
           
 void setAlert(boolean alert)
           
 void setBody(String body)
           
 void setCbMS1204(AbstractMS1204 ms1204)
           
 void setColor(Color color)
           
 void setDebugDisposeTrace(boolean enable)
           
 void setDebugSetText(boolean enable)
           
 void setDebugSetTextTrace(boolean enable)
           
 void setEditable(boolean enable)
           
 void setEditableColumns(FicheIEditableColumns fe, ListeIEditableColumn fl)
          Ajoute les Edits en saisie rapide sur la liste
 void setEnableClipboard(boolean enable)
           
 void setEnabled(boolean enable)
           
 void setLibelleHelpText(String libelleHelpText)
           
 void setSelectAllOnFocus(boolean selectAllOnFocus)
           
 void setSubject(String subject)
           
 void setSuperText(String txt, int rotation, int x, int y, Color color)
           
 void setText(String string)
           
 void setUnderline(boolean enable)
           
 void setUrlWebBrowse(String urlsiteweb)
           
 void setWebBrowse(String nondusite, String urlsiteweb)
           
 void setWebMailto(String mailto)
           
 void setWidthChar(int width)
           
 boolean startWaitCodeCb()
           
 void surPaint(Graphics g, String txt, int x, int y)
           
 void surPaintText(Graphics g, String txt, Color color)
           
 void userRecordByFireEditableColumn()
          La fiche est enregistrée suite à une saisie sur la liste
Par un Edit en EditColumn
 
Methods inherited from class JTextField
actionPropertyChanged, addActionListener, configurePropertiesFromAction, createActionPropertyChangeListener, createDefaultModel, fireActionPerformed, getAccessibleContext, getAction, getActionListeners, getActions, getColumns, getColumnWidth, getHorizontalAlignment, getHorizontalVisibility, getPreferredSize, getScrollOffset, getUIClassID, isValidateRoot, paramString, postActionEvent, removeActionListener, scrollRectToVisible, setAction, setActionCommand, setColumns, setDocument, setFont, setHorizontalAlignment, setScrollOffset
 
Methods inherited from class javax.swing.text.JTextComponent
addCaretListener, addInputMethodListener, addKeymap, copy, cut, fireCaretUpdate, getCaret, getCaretColor, getCaretListeners, getCaretPosition, getDisabledTextColor, getDocument, getDragEnabled, getDropLocation, getDropMode, getFocusAccelerator, getHighlighter, getInputMethodRequests, getKeymap, getKeymap, getMargin, getNavigationFilter, getPreferredScrollableViewportSize, getPrintable, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getSelectedText, getSelectedTextColor, getSelectionColor, getSelectionEnd, getSelectionStart, getText, getText, getToolTipText, getUI, isEditable, loadKeymap, modelToView, moveCaretPosition, paste, print, print, print, processInputMethodEvent, read, removeCaretListener, removeKeymap, removeNotify, replaceSelection, select, selectAll, setCaret, setCaretColor, setCaretPosition, setComponentOrientation, setDisabledTextColor, setDragEnabled, setDropMode, setFocusAccelerator, setHighlighter, setKeymap, setMargin, setNavigationFilter, setSelectedTextColor, setSelectionColor, setSelectionEnd, setSelectionStart, setUI, updateUI, viewToModel, write
 
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, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, 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, 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, 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, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, 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

rotation

int rotation

x

int x

y

int y

colorBorderHeader

Color colorBorderHeader

color

Color color

superText

String superText

libelleHelpText

public String libelleHelpText

fe

FicheIEditableColumns fe

fl

ListeIEditableColumn fl

selectAllOnFocus

boolean selectAllOnFocus

borderHeader

public boolean borderHeader

libelleFiche

public boolean libelleFiche

web

boolean web

mailTo

boolean mailTo

mail

String mail

subject

String subject

body

String body

urlsiteWeb

String urlsiteWeb

debugSetText

boolean debugSetText

debugSetTextTrace

boolean debugSetTextTrace

debugDisposeTrace

boolean debugDisposeTrace

th

TransferHandler th

clicked

boolean clicked
Constructor Detail

JTextDb

public JTextDb()

JTextDb

public JTextDb(String txt)
Method Detail

setText

public void setText(String string)
Overrides:
setText in class javax.swing.text.JTextComponent

isSelectAllOnFocus

public boolean isSelectAllOnFocus()

isEmpty

public boolean isEmpty()

setEnableClipboard

public void setEnableClipboard(boolean enable)

isEnableClipboard

public boolean isEnableClipboard()

setSelectAllOnFocus

public void setSelectAllOnFocus(boolean selectAllOnFocus)

setDebugSetText

public void setDebugSetText(boolean enable)

setDebugSetTextTrace

public void setDebugSetTextTrace(boolean enable)

setDebugDisposeTrace

public void setDebugDisposeTrace(boolean enable)

setSuperText

public void setSuperText(String txt,
                         int rotation,
                         int x,
                         int y,
                         Color color)

setLibelleHelpText

public void setLibelleHelpText(String libelleHelpText)

getLibelleHelpText

public String getLibelleHelpText()

setUnderline

public void setUnderline(boolean enable)

setWidthChar

public void setWidthChar(int width)

reduceHeightDim

public void reduceHeightDim(int height)

setEnabled

public void setEnabled(boolean enable)
Overrides:
setEnabled in class JComponent

setEditable

public void setEditable(boolean enable)
Overrides:
setEditable in class javax.swing.text.JTextComponent

setEditableColumns

public void setEditableColumns(FicheIEditableColumns fe,
                               ListeIEditableColumn fl)
Description copied from interface: FicheIEditableColumns
Ajoute les Edits en saisie rapide sur la liste

Specified by:
setEditableColumns in interface FicheIEditableColumns
Parameters:
fe - Interface de fiche
fl - Interface de liste

removeEditableColumn

public void removeEditableColumn()
Specified by:
removeEditableColumn in interface FicheIEditableColumns

enableEditableColumn

public void enableEditableColumn(boolean enable)
Specified by:
enableEditableColumn in interface FicheIEditableColumns

fireEditableColumnUpdate

public void fireEditableColumnUpdate(String nameField,
                                     Object value)
Description copied from interface: FicheIEditableColumns
La liste envoi le nom de l'Edit et sa valeur validée par entrée
à la fiche

Specified by:
fireEditableColumnUpdate in interface FicheIEditableColumns

userRecordByFireEditableColumn

public void userRecordByFireEditableColumn()
Description copied from interface: FicheIEditableColumns
La fiche est enregistrée suite à une saisie sur la liste
Par un Edit en EditColumn

Specified by:
userRecordByFireEditableColumn in interface FicheIEditableColumns

getDouble

public double getDouble()

getInt

public int getInt()

getSSeparator

public String getSSeparator(String separator)

adapteTextLibe

public void adapteTextLibe()

adapteTextField

public void adapteTextField()

setColor

public void setColor(Color color)

setAlert

public void setAlert(boolean alert)

paint

public void paint(Graphics g)
Overrides:
paint in class JComponent

getToolTipLocation

public Point getToolTipLocation(java.awt.event.MouseEvent event)
Overrides:
getToolTipLocation in class JComponent

headerBorderPaint

public void headerBorderPaint(Graphics g)

surPaint

public void surPaint(Graphics g,
                     String txt,
                     int x,
                     int y)

surPaintText

public void surPaintText(Graphics g,
                         String txt,
                         Color color)

setWebBrowse

public void setWebBrowse(String nondusite,
                         String urlsiteweb)

setUrlWebBrowse

public void setUrlWebBrowse(String urlsiteweb)

setWebMailto

public void setWebMailto(String mailto)

getSubject

public String getSubject()

setSubject

public void setSubject(String subject)

getBody

public String getBody()

setBody

public void setBody(String body)

mouseClicked

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

mouseEntered

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

mouseExited

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

mousePressed

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

mouseReleased

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

keyPressed

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

keyReleased

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

keyTyped

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

dispose

public void dispose()

setCbMS1204

public void setCbMS1204(AbstractMS1204 ms1204)

focusGained

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

startWaitCodeCb

public boolean startWaitCodeCb()

run

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

focusLost

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

finalize

protected void finalize()
Overrides:
finalize in class Object