Codota Logo
MObserverHandler.fireChanged
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
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

  • Updating database using SQL prepared statement
  • findViewById (Activity)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
  • Option (scala)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now