Class CDateTime.EditField
- java.lang.Object
-
- org.eclipse.nebula.widgets.cdatetime.CDateTime.EditField
-
- Enclosing class:
- CDateTime
private class CDateTime.EditField extends java.lang.Object
A 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) 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.(package private) int
getValue()
(package private) void
removeLastCharacter()
(package private) void
reset()
java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
-