com.sibvisions.rad.ui.qt.ext.text
Class NumberValidator

java.lang.Object
  extended by com.trolltech.qt.internal.QSignalEmitterInternal
      extended by com.trolltech.qt.QSignalEmitter
          extended by com.trolltech.qt.QtJambiObject
              extended by com.trolltech.qt.core.QObject
                  extended by com.trolltech.qt.gui.QValidator
                      extended by com.sibvisions.rad.ui.qt.ext.text.NumberValidator
All Implemented Interfaces:
QtJambiInterface

public class NumberValidator
extends QValidator

The NumberValidator is a QValidator extension. It checks the input from a text component for validation. The validation will be performed with an IDataType.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.trolltech.qt.gui.QValidator
QValidator.QValidationData, QValidator.State
 
Nested classes/interfaces inherited from class com.trolltech.qt.QtJambiObject
QtJambiObject.QPrivateConstructor
 
Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter
QSignalEmitter.AbstractSignal, QSignalEmitter.PrivateSignal0, QSignalEmitter.PrivateSignal1<A>, QSignalEmitter.PrivateSignal2<A,B>, QSignalEmitter.PrivateSignal3<A,B,C>, QSignalEmitter.PrivateSignal4<A,B,C,D>, QSignalEmitter.PrivateSignal5<A,B,C,D,E>, QSignalEmitter.PrivateSignal6<A,B,C,D,E,F>, QSignalEmitter.PrivateSignal7<A,B,C,D,E,F,G>, QSignalEmitter.PrivateSignal8<A,B,C,D,E,F,G,H>, QSignalEmitter.PrivateSignal9<A,B,C,D,E,F,G,H,I>, QSignalEmitter.Signal0, QSignalEmitter.Signal1<A>, QSignalEmitter.Signal2<A,B>, QSignalEmitter.Signal3<A,B,C>, QSignalEmitter.Signal4<A,B,C,D>, QSignalEmitter.Signal5<A,B,C,D,E>, QSignalEmitter.Signal6<A,B,C,D,E,F>, QSignalEmitter.Signal7<A,B,C,D,E,F,G>, QSignalEmitter.Signal8<A,B,C,D,E,F,G,H>, QSignalEmitter.Signal9<A,B,C,D,E,F,G,H,I>
 
Nested classes/interfaces inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
com.trolltech.qt.internal.QSignalEmitterInternal.AbstractSignalInternal
 
Field Summary
 
Fields inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
currentSender
 
Constructor Summary
NumberValidator(QObject pParent)
          Creates a new instance of NumberValidator for a specific object.
 
Method Summary
 IDataType getDataType()
          Gets the data type.
 NumberFormat getNumberFormat()
          Gets the number format.
 String getNumberPattern()
          Gets the number pattern.
 void setDataType(IDataType pDataType)
          Gets the data type.
 void setNumberFormat(NumberFormat pNumberFormat)
          Gets the number format.
 void setNumberPattern(String pNumberPattern)
          Gets the number pattern.
 QValidator.State validate(QValidator.QValidationData pData)
          
 String valueToString(Object pValue)
          Gets a string representation of an object.
 
Methods inherited from class com.trolltech.qt.gui.QValidator
fixup, fromNativePointer, locale, setLocale
 
Methods inherited from class com.trolltech.qt.core.QObject
blockSignals, childEvent, children, connectSlotsByName, customEvent, disposeLater, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, event, eventFilter, findChild, findChild, findChild, findChildren, findChildren, findChildren, findChildren, indexOfProperty, installEventFilter, isWidgetType, killTimer, moveToThread, objectName, parent, properties, property, removeEventFilter, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, timerEvent, toString, userProperty
 
Methods inherited from class com.trolltech.qt.QtJambiObject
disableGarbageCollection, dispose, disposed, equals, finalize, nativeId, nativePointer, reassignNativeResources, reenableGarbageCollection, setJavaOwnership, tr, tr, tr
 
Methods inherited from class com.trolltech.qt.QSignalEmitter
disconnect, disconnect, signalSender
 
Methods inherited from class com.trolltech.qt.internal.QSignalEmitterInternal
__qt_signalInitialization
 
Methods inherited from class java.lang.Object
clone, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NumberValidator

public NumberValidator(QObject pParent)
Creates a new instance of NumberValidator for a specific object.

Parameters:
pParent - the parent object
Method Detail

validate

public QValidator.State validate(QValidator.QValidationData pData)

Specified by:
validate in class QValidator

getDataType

public IDataType getDataType()
Gets the data type.

Returns:
thedata type.

setDataType

public void setDataType(IDataType pDataType)
Gets the data type.

Parameters:
pDataType - the data type.

getNumberFormat

public NumberFormat getNumberFormat()
Gets the number format.

Returns:
the number format.

setNumberFormat

public void setNumberFormat(NumberFormat pNumberFormat)
Gets the number format.

Parameters:
pNumberFormat - the number format.

getNumberPattern

public String getNumberPattern()
Gets the number pattern.

Returns:
the number pattern.

setNumberPattern

public void setNumberPattern(String pNumberPattern)
Gets the number pattern.

Parameters:
pNumberPattern - the number pattern.

valueToString

public String valueToString(Object pValue)
                     throws ParseException
Gets a string representation of an object.

Parameters:
pValue - the object to represent as string
Returns:
the formatted string value of pValue.
Throws:
ParseException - if the object can't be represented as string


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.