/** * * Copyright 2003-2006 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* * This module was adapted from IzPack work done by Julien Ponge * and Elmar Grom. * http://www.izforge.com/izpack/ * http://developer.berlios.de/projects/izpack/ */ package com.izforge.izpack.panels; /*---------------------------------------------------------------------------*/ /** * Implement this interface in any class that wants to use processing or validation services. * * @see com.izforge.izpack.panels.Processor * @see com.izforge.izpack.panels.Validator * * @version 0.0.1 / 2/22/03 * @author Elmar Grom */ /*---------------------------------------------------------------------------*/ public interface ProcessingClient { /*--------------------------------------------------------------------------*/ /** * Returns the number of sub-fields. * * @return the number of sub-fields */ /*--------------------------------------------------------------------------*/ public int getNumFields(); /*--------------------------------------------------------------------------*/ /** * Returns the contents of the field indicated by <code>index</code>. * * @param index the index of the sub-field from which the contents is requested. * * @return the contents of the indicated sub-field. * * @exception IndexOutOfBoundsException if the index is out of bounds. */ /*--------------------------------------------------------------------------*/ public String getFieldContents(int index); } /*---------------------------------------------------------------------------*/