composant_saisie.wSaisieFormat
Class CcsFmt

Object
  extended by javax.swing.text.AbstractDocument
      extended by javax.swing.text.PlainDocument
          extended by composant_saisie.wSaisieFormat.CcsFmt
All Implemented Interfaces:
Serializable, javax.swing.text.Document

public class CcsFmt
extends javax.swing.text.PlainDocument


A_doc
Licence.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.text.AbstractDocument
javax.swing.text.AbstractDocument.AbstractElement, javax.swing.text.AbstractDocument.AttributeContext, javax.swing.text.AbstractDocument.BranchElement, javax.swing.text.AbstractDocument.Content, javax.swing.text.AbstractDocument.DefaultDocumentEvent, javax.swing.text.AbstractDocument.ElementEdit, javax.swing.text.AbstractDocument.LeafElement
 
Field Summary
(package private) static boolean debug
           
 String format
           
(package private)  javax.swing.text.JTextComponent jt
           
(package private)  int maxLength
           
(package private)  int newlength
           
(package private)  int newoffset
           
(package private)  String newstr
           
(package private)  StringBuffer sbTest
           
(package private)  int typeOfTest
           
 
Fields inherited from class javax.swing.text.PlainDocument
lineLimitAttribute, tabSizeAttribute
 
Fields inherited from class javax.swing.text.AbstractDocument
BAD_LOCATION, BidiElementName, ContentElementName, ElementNameAttribute, listenerList, ParagraphElementName, SectionElementName
 
Fields inherited from interface javax.swing.text.Document
StreamDescriptionProperty, TitleProperty
 
Constructor Summary
CcsFmt(javax.swing.text.JTextComponent jt, int maxLength)
           
CcsFmt(javax.swing.text.JTextComponent jt, String format)
           
 
Method Summary
static String clearStringDigit(String strgetTxt)
           
static String clearStringDigit(String strgetTxt, String separator)
           
static String formatEstampille(String v_esta)
           
static String formatStrDate(String str, boolean complementZero)
           
static String formatStrDecimal(String str, String format, boolean decimalEndedZero)
           
static String formatStrMonth(String str, boolean complementZero)
           
static String formatStrPhone(String str, boolean complementCheck)
           
static String formatStrPostal(String str, boolean decimalEndedZero)
           
static String formatStrSecu(String str, boolean complementCheck)
           
static String formatStrTime(String str, boolean complementZero)
           
static String formatStrUrss(String str, boolean complementZero)
           
static String formatStrYear(String str, boolean complement2000)
           
static String getDigit(String str)
           
 void insertString(int offset, String str, javax.swing.text.AttributeSet attrs)
           
 boolean isTest()
           
static String keepMaxInt(String stmp, String format)
           
static String ligLig(String value, int length)
           
static String ligLig(String value, int length, String complement)
           
static String ligSpace(String value, int length)
           
static String ligSpace(String str, int length, String complement)
           
 void replace(int offset, int length, String str, javax.swing.text.AttributeSet attrs)
           
 void setDebug(boolean enable)
           
static String textFormat(String str, Fma fma, String format)
           
 
Methods inherited from class javax.swing.text.PlainDocument
createDefaultRoot, getDefaultRootElement, getParagraphElement, insertUpdate, removeUpdate
 
Methods inherited from class javax.swing.text.AbstractDocument
addDocumentListener, addUndoableEditListener, createBranchElement, createLeafElement, createPosition, dump, fireChangedUpdate, fireInsertUpdate, fireRemoveUpdate, fireUndoableEditUpdate, getAsynchronousLoadPriority, getAttributeContext, getBidiRootElement, getContent, getCurrentWriter, getDocumentFilter, getDocumentListeners, getDocumentProperties, getEndPosition, getLength, getListeners, getProperty, getRootElements, getStartPosition, getText, getText, getUndoableEditListeners, postRemoveUpdate, putProperty, readLock, readUnlock, remove, removeDocumentListener, removeUndoableEditListener, render, setAsynchronousLoadPriority, setDocumentFilter, setDocumentProperties, writeLock, writeUnlock
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

typeOfTest

int typeOfTest

newstr

String newstr

newoffset

int newoffset

newlength

int newlength

maxLength

int maxLength

sbTest

StringBuffer sbTest

format

public String format

jt

javax.swing.text.JTextComponent jt

debug

static boolean debug
Constructor Detail

CcsFmt

public CcsFmt(javax.swing.text.JTextComponent jt,
              int maxLength)

CcsFmt

public CcsFmt(javax.swing.text.JTextComponent jt,
              String format)
Method Detail

insertString

public void insertString(int offset,
                         String str,
                         javax.swing.text.AttributeSet attrs)
Specified by:
insertString in interface javax.swing.text.Document
Overrides:
insertString in class javax.swing.text.PlainDocument

replace

public void replace(int offset,
                    int length,
                    String str,
                    javax.swing.text.AttributeSet attrs)
Overrides:
replace in class javax.swing.text.AbstractDocument

isTest

public boolean isTest()

setDebug

public void setDebug(boolean enable)

textFormat

public static String textFormat(String str,
                                Fma fma,
                                String format)

formatStrDate

public static String formatStrDate(String str,
                                   boolean complementZero)

formatStrMonth

public static String formatStrMonth(String str,
                                    boolean complementZero)

formatStrYear

public static String formatStrYear(String str,
                                   boolean complement2000)

formatStrPhone

public static String formatStrPhone(String str,
                                    boolean complementCheck)

formatStrTime

public static String formatStrTime(String str,
                                   boolean complementZero)

formatStrUrss

public static String formatStrUrss(String str,
                                   boolean complementZero)

formatStrSecu

public static String formatStrSecu(String str,
                                   boolean complementCheck)

formatStrPostal

public static String formatStrPostal(String str,
                                     boolean decimalEndedZero)

formatStrDecimal

public static String formatStrDecimal(String str,
                                      String format,
                                      boolean decimalEndedZero)

keepMaxInt

public static String keepMaxInt(String stmp,
                                String format)

clearStringDigit

public static String clearStringDigit(String strgetTxt,
                                      String separator)

clearStringDigit

public static String clearStringDigit(String strgetTxt)

ligLig

public static String ligLig(String value,
                            int length)

ligLig

public static String ligLig(String value,
                            int length,
                            String complement)

ligSpace

public static String ligSpace(String value,
                              int length)

ligSpace

public static String ligSpace(String str,
                              int length,
                              String complement)

getDigit

public static String getDigit(String str)

formatEstampille

public static String formatEstampille(String v_esta)