All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.tsl2.nano.bean.def.IInputAssist Maven / Gradle / Ivy

Go to download

TSL2 Framework Descriptor (currency-handling, generic formatter, descriptors for beans, collections, actions and values)

There is a newer version: 2.5.1
Show newest version
/*
 * File: $HeadURL$
 * Id  : $Id$
 * 
 * created by: Tom
 * created on: 01.07.2014
 * 
 * Copyright: (c) Thomas Schneider 2014, all rights reserved
 */
package de.tsl2.nano.bean.def;

import java.util.Collection;

/**
 * known from code-assist, this interfaces provides an input assist, see {@link #availableValues(Object)}. this input
 * assist may refresh connected change listeners, hold by {@link #changeHandler()}.
 * 
 * @author Tom
 * @version $Revision$
 */
public interface IInputAssist {
    /**
     * evaluates matching objects for given prefix. technical base routine for {@link #availableValues(Object)}.
     * @param prefix part of a value
     * @return all possible values for prefix
     */
    Collection matchingObjects(Object prefix);
    /**
     * getting a part of a value this method should return all available/possible values for this part or prefix.
     * 
     * @param prefix part of a value
     * @return all possible values for prefix
     */
    Collection availableValues(Object prefix);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy