Tabnine Logo
KeyedComboBoxModel$ComboBoxItemPair.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.jfree.ui.KeyedComboBoxModel$ComboBoxItemPair
constructor

Best Java code snippets using org.jfree.ui.KeyedComboBoxModel$ComboBoxItemPair.<init> (Showing top 3 results out of 315)

origin: jfree/jcommon

/**
 * Adds a new entry to the model.
 *
 * @param key    the key
 * @param cbitem the display value.
 */
public void add(final Object key, final Object cbitem)
{
 final ComboBoxItemPair con = new ComboBoxItemPair(key, cbitem);
 this.data.add(con);
 final ListDataEvent evt = new ListDataEvent
   (this, ListDataEvent.INTERVAL_ADDED, this.data.size() - 2, this.data.size() - 2);
 fireListDataEvent(evt);
}
origin: org.jfree/jcommon

/**
 * Adds a new entry to the model.
 *
 * @param key    the key
 * @param cbitem the display value.
 */
public void add(final Object key, final Object cbitem)
{
 final ComboBoxItemPair con = new ComboBoxItemPair(key, cbitem);
 this.data.add(con);
 final ListDataEvent evt = new ListDataEvent
   (this, ListDataEvent.INTERVAL_ADDED, this.data.size() - 2, this.data.size() - 2);
 fireListDataEvent(evt);
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Adds a new entry to the model.
 *
 * @param key    the key
 * @param cbitem the display value.
 */
public void add(final Object key, final Object cbitem)
{
 final ComboBoxItemPair con = new ComboBoxItemPair(key, cbitem);
 data.add(con);
 final ListDataEvent evt = new ListDataEvent
   (this, ListDataEvent.INTERVAL_ADDED, data.size() - 2, data.size() - 2);
 fireListDataEvent(evt);
}
org.jfree.uiKeyedComboBoxModel$ComboBoxItemPair<init>

Javadoc

Creates a new item pair for the given key and value. The value can be changed later, if needed.

Popular methods of KeyedComboBoxModel$ComboBoxItemPair

  • getKey
    Returns the key.
  • getValue
    Returns the value.

Popular in Java

  • Creating JSON documents from java classes using gson
  • findViewById (Activity)
  • scheduleAtFixedRate (Timer)
  • onCreateOptionsMenu (Activity)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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