congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
CareWebShell.getMessageWindow
Code IndexAdd Tabnine to your IDE (free)

How to use
getMessageWindow
method
in
org.carewebframework.shell.CareWebShell

Best Java code snippets using org.carewebframework.shell.CareWebShell.getMessageWindow (Showing top 2 results out of 315)

origin: org.carewebframework/org.carewebframework.shell

/**
 * Sends an informational message for display by desktop.
 *
 * @param message Text of the message.
 * @param caption Optional caption text.
 */
public static void showMessage(String message, String caption) {
  getShell().getMessageWindow().showMessage(message, caption);
}
origin: org.carewebframework/org.carewebframework.plugin.chat

  /**
   * If event data is of the format [session id]^[requester], this is an invitation
   * request. If event data is of the format [session id], it is a cancellation of a
   * previous request.
   */
  @Override
  public void eventCallback(String eventName, String eventData) {
    String[] pcs = eventData.split("\\^", 2);
    String tag = EVENT_INVITE + "_" + pcs[0];
    CareWebShell shell = CareWebUtil.getShell();
    
    if (pcs.length == 2) {
      String message = StrUtil.formatMessage("@cwf.chat.invitation.message", pcs[1]);
      String caption = StrUtil.formatMessage("@cwf.chat.invitation.caption");
      shell.getMessageWindow().showMessage(message, caption, null, 999999, tag, (event) -> {
        eventManager.fireLocalEvent(EVENT_ACCEPT, pcs[0]);
      });
    } else {
      shell.getMessageWindow().clearMessages(tag);
    }
  }
};
org.carewebframework.shellCareWebShellgetMessageWindow

Javadoc

Returns the message window instance for managing slide-down messages.

Popular methods of CareWebShell

  • <init>
    Create the shell instance.
  • logout
    Logout user after confirmation prompt.
  • getActivatedPlugin
  • getLoadedPlugin
    Locates a loaded plugin with the specified id.
  • lock
    Lock the desktop.
  • setLayout
    Sets the layout to be loaded. If null, the layout specified by the configuration will be loaded.
  • setParent
  • addChild
  • addEventListener
  • addMenu
    Adds a menu.
  • addToolbarComponent
    Adds a component to the common tool bar.
  • afterCompose
  • addToolbarComponent,
  • afterCompose,
  • buildUI,
  • findStyleSheet,
  • getActivatedPlugins,
  • getAppProperty,
  • getApplicationName,
  • getDesktop,
  • getHelpViewer

Popular in Java

  • Making http post requests using okhttp
  • startActivity (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (Timer)
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Collectors (java.util.stream)
  • Notification (javax.management)
  • JButton (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top plugins for Android Studio
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