Kbase 19267: Apptivity 3.2 Sample Project EditMaskSample: Text Formatting
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  17/11/1999 |
|
This document applies to: Apptivity Samples and Online Documentation
Version and Release Number: 3.2
The sample project EditMaskSample is installed with Apptivity 3.2, in directory:
<Apptivity Install dir>\samples\Java\EditMaskSample
Documentation on this sample project was not included in the Online Help along with the documentation on samples, which is accessed from Apptivity Developer under Help->Help Topics->About Samples. The following is a brief description of this sample project.
The EditMaskSample project shows the usage of the TextFilter class, which can be used with both abTextField and abGridView columns to enhance the use of formatted fields, including chaining TextFilter to a TextField control in order to perform custom processing of KeyEvent. For example, a TextFilter can turn the "t" key into "the" by creating events for "h" and "e," adding all three events to events, and returning false. In this sample, class maskFilterForDate, which implements the TextFilter interface, has been chained to textField1. This sample mimics an Edit mask on a TextField with mask type of Date, edit format of 'dd/MM/yyyy'. The implementation of this technique and the complexity of the sample have been kept as simple as possible.
References To Written Documentation or Other KnowledgeBase Documents:
Apptivity 3.2 Developer's Guide Chapter 15: Formatting User Input
KB 19028 - Text Formatting Changes Between Apptivity 3.0.1 and 3.1