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

de.lessvoid.nifty.controls.textfield.format.TextFieldDisplayFormat Maven / Gradle / Ivy

There is a newer version: 1.4.3
Show newest version
package de.lessvoid.nifty.controls.textfield.format;

import javax.annotation.Nonnull;

/**
 * This is the interface for the display format that can be applied to a text field. These formats are used to transform
 * the actual text into different visible text.
 *
 * @author Martin Karing <[email protected]>
 */
public interface TextFieldDisplayFormat {
  /**
   * Get a part of the original text converted into the one that is supposed to be displayed.
   *
   * @param original the original text
   * @param start    the index of the first character that should be converted
   * @param end      the index of the first character after the area that should be converted
   * @return the converted sub-sequence of the original text
   */
  @Nonnull
  CharSequence getDisplaySequence(@Nonnull CharSequence original, int start, int end);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy