Class CDateTime.EditField
- java.lang.Object
-
- org.eclipse.nebula.widgets.cdatetime.CDateTime.EditField
-
- Enclosing class:
- CDateTime
private class CDateTime.EditField extends java.lang.ObjectA simple class used for editing a field numerically.
-
-
Constructor Summary
Constructors Constructor Description EditField(int digits, int initialValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) booleanaddChar(char c)Adds a character if it is a digit; in case the field exceeds its capacity, the oldest character is dropped from the buffer.(package private) intgetValue()(package private) voidremoveLastCharacter()(package private) voidreset()java.lang.StringtoString()
-
-
-
Method Detail
-
addChar
boolean addChar(char c)
Adds a character if it is a digit; in case the field exceeds its capacity, the oldest character is dropped from the buffer. Non-digits are dropped.- Parameters:
c-- Returns:
- true if the new character is a digit and with its addition the active field reaches or exceeds its capacity, false otherwise
-
getValue
int getValue()
-
removeLastCharacter
void removeLastCharacter()
-
reset
void reset()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-