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

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

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

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

@Override
public T get() {
 return this.model.get();
}
origin: net.anwiba.commons/anwiba-commons-swing-core

public AbstractWizardController(final List<IWizardPage> container, final IObjectModel<DataState> dataStateModel) {
 this(container, dataStateModel, new ObjectModel<>());
}
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-core

@Override
public void set(final T value) {
 accept(this.isNullable, value);
 synchronized (this.monitor) {
  if (this.comperator.equals(this.value, value)) {
   return;
  }
  this.value = value;
 }
 fireObjectChanged();
}
origin: net.anwiba.commons/anwiba-commons-workflow

 @Override
 public void objectChanged() {
  stateModel.removeChangeListener(this);
  execute(stateModel.get());
 }
};
origin: net.anwiba.commons/anwiba-commons-swing-core

nextAction.setEnabled(false);
final ObjectModel<String> searchStringModel = new ObjectModel<>();
final StringObjectFieldConfigurationBuilder builder = new StringObjectFieldConfigurationBuilder()
  .setToolTipFactory(this.toolTipFactory)
  .setColumns(24)
  .setModel(searchStringModel);
final IObjectModel<C> searchFeatureAcceptorModel = new ObjectModel<>();
final AbstractAction searchAction = new ConfigurableActionBuilder()
  .setEnabledDistributor(this.enabledDistributor)
   engine.search(
     Optional.ofNullable(searchFeatureAcceptorModel.get()).orElseGet(
       () -> this.stringConditionFactory.create(searchStringModel.get())));
  })
  .build();
searchStringModel.addChangeListener(new IChangeableObjectListener() {
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-workflow

@Override
public void execute(final IState<T> state) {
 final IExecutable<T> executable = this.controller.next(state);
 if (executable == null) {
  return;
 }
 final ObjectModel<IState<T>> stateModel = new ObjectModel<>();
 final IChangeableObjectListener listener = createChangeListener(stateModel);
 stateModel.addChangeListener(listener);
 launch(executable, state, stateModel);
}
origin: net.anwiba.commons/anwiba-commons-swing-core

@Override
public void removeChangeListener(final IChangeableObjectListener listener) {
 this.model.removeChangeListener(listener);
}
origin: net.anwiba.commons/anwiba-commons-swing-core

@Override
public void addChangeListener(final IChangeableObjectListener listener) {
 this.model.addChangeListener(listener);
}
origin: net.anwiba.commons/anwiba-commons-swing-core

@Override
public void removeChangeListeners() {
 this.model.removeChangeListeners();
}
origin: net.anwiba.commons/anwiba-commons-core

public ObjectModel(final boolean isNullable, final IEqualComperator<T> comperator, final T value) {
 accept(isNullable, value);
 this.comperator = comperator;
 this.isNullable = isNullable;
 this.value = value;
}
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 removeChangeListener(final IChangeableObjectListener listener) {
 this.model.removeChangeListener(listener);
}
origin: net.anwiba.commons/anwiba-commons-swing-core

@Override
public void addChangeListener(final IChangeableObjectListener listener) {
 this.model.addChangeListener(listener);
}
origin: net.anwiba.commons/anwiba-commons-swing-core

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

@Override
public Object getSelectedItem() {
 return this.model.get();
}
origin: net.anwiba.commons/anwiba-commons-swing-core

public MessageDialog(
  final Window owner,
  final IWindowPreferences preferences,
  final String title,
  final IMessage message,
  final Icon icon,
  final DialogType dialogType,
  final boolean modal) {
 super(owner, preferences, title, message, icon, dialogType, Collections.emptyList(), new ObjectModel<>(), modal);
}
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

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);
  }
 });
}
net.anwiba.commons.modelObjectModel

Most used methods

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

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSupportFragmentManager (FragmentActivity)
  • scheduleAtFixedRate (Timer)
  • startActivity (Activity)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top 15 Vim Plugins
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