Tabnine Logo
KeyedComboBoxModel$ComboBoxItemPair.getKey
Code IndexAdd Tabnine to your IDE (free)

How to use
getKey
method
in
org.jfree.ui.KeyedComboBoxModel$ComboBoxItemPair

Best Java code snippets using org.jfree.ui.KeyedComboBoxModel$ComboBoxItemPair.getKey (Showing top 6 results out of 315)

origin: org.jfree/jcommon

/**
 * Searches an element by its data value. This method is called by the
 * setSelectedItem method and returns the first occurence of the element.
 *
 * @param anItem the item
 * @return the index of the item or -1 if not found.
 */
private int findDataElementIndex(final Object anItem)
{
 if (anItem == null)
 {
  throw new NullPointerException("Item to find must not be null");
 }
 for (int i = 0; i < this.data.size(); i++)
 {
  final ComboBoxItemPair datacon = (ComboBoxItemPair) this.data.get(i);
  if (anItem.equals(datacon.getKey()))
  {
   return i;
  }
 }
 return -1;
}
origin: jfree/jcommon

/**
 * Searches an element by its data value. This method is called by the
 * setSelectedItem method and returns the first occurence of the element.
 *
 * @param anItem the item
 * @return the index of the item or -1 if not found.
 */
private int findDataElementIndex(final Object anItem)
{
 if (anItem == null)
 {
  throw new NullPointerException("Item to find must not be null");
 }
 for (int i = 0; i < this.data.size(); i++)
 {
  final ComboBoxItemPair datacon = (ComboBoxItemPair) this.data.get(i);
  if (anItem.equals(datacon.getKey()))
  {
   return i;
  }
 }
 return -1;
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Searches an element by its data value. This method is called by the
 * setSelectedItem method and returns the first occurence of the element.
 *
 * @param anItem the item
 * @return the index of the item or -1 if not found.
 */
private int findDataElementIndex(final Object anItem)
{
 if (anItem == null)
 {
  throw new NullPointerException("Item to find must not be null");
 }
 for (int i = 0; i < data.size(); i++)
 {
  final ComboBoxItemPair datacon = (ComboBoxItemPair) data.get(i);
  if (anItem.equals(datacon.getKey()))
  {
   return i;
  }
 }
 return -1;
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Returns the key from the given index.
 *
 * @param index the index of the key.
 * @return the the key at the specified index.
 */
public Object getKeyAt(final int index)
{
 if (index >= data.size())
 {
  return null;
 }
 if (index < 0)
 {
  return null;
 }
 final ComboBoxItemPair datacon = (ComboBoxItemPair) data.get(index);
 if (datacon == null)
 {
  return null;
 }
 return datacon.getKey();
}
origin: jfree/jcommon

/**
 * Returns the key from the given index.
 *
 * @param index the index of the key.
 * @return the the key at the specified index.
 */
public Object getKeyAt(final int index)
{
 if (index >= this.data.size())
 {
  return null;
 }
 if (index < 0)
 {
  return null;
 }
 final ComboBoxItemPair datacon = (ComboBoxItemPair) this.data.get(index);
 if (datacon == null)
 {
  return null;
 }
 return datacon.getKey();
}
origin: org.jfree/jcommon

/**
 * Returns the key from the given index.
 *
 * @param index the index of the key.
 * @return the the key at the specified index.
 */
public Object getKeyAt(final int index)
{
 if (index >= this.data.size())
 {
  return null;
 }
 if (index < 0)
 {
  return null;
 }
 final ComboBoxItemPair datacon = (ComboBoxItemPair) this.data.get(index);
 if (datacon == null)
 {
  return null;
 }
 return datacon.getKey();
}
org.jfree.uiKeyedComboBoxModel$ComboBoxItemPairgetKey

Javadoc

Returns the key.

Popular methods of KeyedComboBoxModel$ComboBoxItemPair

  • <init>
    Creates a new item pair for the given key and value. The value can be changed later, if needed.
  • getValue
    Returns the value.

Popular in Java

  • Making http post requests using okhttp
  • getResourceAsStream (ClassLoader)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • startActivity (Activity)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • JTextField (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now