Tabnine Logo
MObserverHandler.fireChanged
Code IndexAdd Tabnine to your IDE (free)

How to use
fireChanged
method
in
de.mhus.lib.core.MObserverHandler

Best Java code snippets using de.mhus.lib.core.MObserverHandler.fireChanged (Showing top 6 results out of 315)

origin: de.mhus.lib/mhu-lib-vaadin

public Section setSelected(String name) {
  eventHandler.fireChanged(new Event(this,EVENTS.SECTION_CHANGEING,getSection(name)));
  Section sel = null;
  synchronized (sections) {
    for (Section section : sections) {
      if (section.getName().equals(name)) {
        section.setSelected(true);
        sel = section;
      } else {
        section.setSelected(false);
      }
          
    }
  }
  eventHandler.fireChanged(new Event(this,EVENTS.SECTION_CHANGED,getSection(name)));
  return sel;
}
  
origin: de.mhus.lib/mhu-lib-vaadin6

public Section setSelected(String name) {
  eventHandler.fireChanged(new Event(this,EVENTS.SECTION_CHANGEING,getSection(name)));
  Section sel = null;
  synchronized (sections) {
    for (Section section : sections) {
      if (section.getName().equals(name)) {
        section.setSelected(true);
        sel = section;
      } else {
        section.setSelected(false);
      }
          
    }
  }
  eventHandler.fireChanged(new Event(this,EVENTS.SECTION_CHANGED,getSection(name)));
  return sel;
}
  
origin: de.mhus.lib/mhu-lib-vaadin6

public Section addSection(String name, String title, Object userData) {
  Section section = getSection(name);
  if (section != null) {
    section.setTitle(title);
    if (userData != null) section.setUserData(userData);
    eventHandler.fireChanged(new Event(this,EVENTS.UPDATED,section));
  } else {
    section = new Section(name,title);
    section.setUserData(userData);
    eventHandler.fireChanged(new Event(this,EVENTS.ADDED,section));
    if (autoSelect) {
      if (sections.size() == 1) { // first one
        setSelected(name);
      }
    }
  }
  return section;
}

origin: de.mhus.lib/mhu-lib-vaadin

public Section addSection(String name, String title, Object userData) {
  Section section = getSection(name);
  if (section != null) {
    section.setTitle(title);
    if (userData != null) section.setUserData(userData);
    eventHandler.fireChanged(new Event(this,EVENTS.UPDATED,section));
  } else {
    section = new Section(name,title);
    section.setUserData(userData);
    eventHandler.fireChanged(new Event(this,EVENTS.ADDED,section));
    if (autoSelect) {
      if (sections.size() == 1) { // first one
        setSelected(name);
      }
    }
  }
  return section;
}

origin: de.mhus.lib/mhu-lib-vaadin

public Section removeSection(String name) {
  Section sec = getSection(name);
  if (autoSelect && sec.isSelected()) {
    synchronized (sections) {
      for (Section section : sections) {
        if (section.isEnabled()) {
          setSelected(section.getName());
          break;
        }
      }
    }
  }
  synchronized (sections) {
    if (sec == null) return null;
    sections.remove(sec);
  }
  
  
  eventHandler.fireChanged(new Event(this,EVENTS.REMOVED,sec));
  return sec;
}

origin: de.mhus.lib/mhu-lib-vaadin6

public Section removeSection(String name) {
  Section sec = getSection(name);
  if (autoSelect && sec.isSelected()) {
    synchronized (sections) {
      for (Section section : sections) {
        if (section.isEnabled()) {
          setSelected(section.getName());
          break;
        }
      }
    }
  }
  synchronized (sections) {
    if (sec == null) return null;
    sections.remove(sec);
  }
  
  
  eventHandler.fireChanged(new Event(this,EVENTS.REMOVED,sec));
  return sec;
}

de.mhus.lib.coreMObserverHandlerfireChanged

Popular methods of MObserverHandler

  • register
  • fire

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • compareTo (BigDecimal)
  • setScale (BigDecimal)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • JLabel (javax.swing)
  • IsNull (org.hamcrest.core)
    Is the value null?
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top 12 Jupyter Notebook extensions
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