Tabnine Logo
ObjectModel.set
Code IndexAdd Tabnine to your IDE (free)

How to use
set
method
in
net.anwiba.commons.model.ObjectModel

Best Java code snippets using net.anwiba.commons.model.ObjectModel.set (Showing top 11 results out of 315)

origin: net.anwiba.commons/anwiba-commons-swing-core

@SuppressWarnings("unchecked")
@Override
public void setSelectedItem(final Object item) {
 this.model.set((T) item);
}
origin: net.anwiba.commons/anwiba-commons-swing-core

@Override
public void set(final T object) {
 this.model.set(object);
}
origin: net.anwiba.commons/anwiba-commons-swing-core

@SuppressWarnings("unchecked")
@Override
public void setSelectedItem(final Object item) {
 this.model.set((T) item);
}
origin: net.anwiba.commons/anwiba-commons-swing-icon

public MutableImageIcon(final ImageIcon icon) {
 this.model.set(icon);
}
origin: net.anwiba.commons/anwiba-commons-swing-core

@Override
public void set(final T object) {
 this.model.set(object);
}
origin: net.anwiba.commons/anwiba-commons-swing-core

 @Override
 public void actionPerformed(final ActionEvent e) {
  BooleanComboBoxField.this.model.set((Boolean) BooleanComboBoxField.this.booleanComboBox.getSelectedItem());
 }
});
origin: net.anwiba.commons/anwiba-commons-swing-core

public ObjectComboBoxComponentModel(final List<T> objects) {
 super(objects);
 if (!objects.isEmpty()) {
  this.model.set(objects.get(0));
 }
 this.model.addChangeListener(new IChangeableObjectListener() {
  @Override
  public void objectChanged() {
   fireContentsChanged(ObjectComboBoxComponentModel.this, -1, -1);
  }
 });
}
origin: net.anwiba.commons/anwiba-commons-swing-core

public ObjectComboBoxModel(final List<T> objects) {
 super(objects);
 if (!objects.isEmpty()) {
  this.model.set(objects.get(0));
 }
 this.model.addChangeListener(new IChangeableObjectListener() {
  @Override
  public void objectChanged() {
   fireContentsChanged(ObjectComboBoxModel.this, -1, -1);
  }
 });
}
origin: net.anwiba.commons/anwiba-commons-swing-core

@Override
public void next() {
 if (!hasNext()) {
  return;
 }
 this.currentResultIndex++;
 this.resultCursor.set(this.resultsModel.get(this.currentResultIndex));
}
origin: net.anwiba.commons/anwiba-commons-swing-core

@Override
public void previous() {
 if (!hasPrevious()) {
  return;
 }
 this.currentResultIndex--;
 this.resultCursor.set(this.resultsModel.get(this.currentResultIndex));
}
origin: net.anwiba.commons/anwiba-commons-swing-core

protected void updateCursor() {
 this.currentResultIndex = this.resultsModel.isEmpty() ? -1 : 0;
 this.resultCursor.set(this.currentResultIndex == -1 ? null : this.resultsModel.get(this.currentResultIndex));
}
net.anwiba.commons.modelObjectModelset

Popular methods of ObjectModel

  • get
  • <init>
  • addChangeListener
  • removeChangeListener
  • accept
  • fireObjectChanged
  • removeChangeListeners

Popular in Java

  • Running tasks concurrently on multiple threads
  • compareTo (BigDecimal)
  • addToBackStack (FragmentTransaction)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • JButton (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Runner (org.openjdk.jmh.runner)
  • Best IntelliJ plugins
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