KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openbravo > xmlEngine > FormatCouple


1 /*
2  ************************************************************************************
3  * Copyright (C) 2001-2006 Openbravo S.L.
4  * Licensed under the Apache Software License version 2.0
5  * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6  * Unless required by applicable law or agreed to in writing, software distributed
7  * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
8  * CONDITIONS OF ANY KIND, either express or implied. See the License for the
9  * specific language governing permissions and limitations under the License.
10  ************************************************************************************
11 */

12 package org.openbravo.xmlEngine;
13
14 import java.text.DecimalFormat JavaDoc;
15
16 class FormatCouple {
17   DecimalFormat JavaDoc formatOutput;
18   DecimalFormat JavaDoc formatSimple;
19
20   public FormatCouple() {
21     this.formatOutput = null;
22     this.formatSimple = null;
23   }
24
25   public FormatCouple(DecimalFormat JavaDoc formatOutput, DecimalFormat JavaDoc formatSimple) {
26     this.formatOutput = formatOutput;
27     this.formatSimple = formatSimple;
28   }
29
30 }
31
32 /*
33  * In XmlEngine, load FormatCouple's in the put.
34  * In TemplateConfiguration, pass the FormatCouple to the addField and AddFunction functions
35  * In DataTemplate, call the constructors of FieldTemplate and Function...
36  * In los constructors, read both formats, in the printSimple use the formatSimple
37 */

38
Popular Tags