Tabnine Logo
CareWebShell.setLayout
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.carewebframework/org.carewebframework.ui.statuspanel

@Test
public void test() throws Exception {
  CareWebShell shell = new CareWebShell();
  shell.setLayout("/StatusPanelTest.xml");
  shell.setPage(mockEnvironment.getDesktop().getFirstPage());
  shell.afterCompose();
  mockEnvironment.flushEvents();
  PluginContainer plugin = shell.getActivatedPlugin("statusPanel");
  Component root = plugin.getFirstChild();
  StatusPanel controller = (StatusPanel) FrameworkController.getController(root);
  assertNotNull("Controller must not be null.", controller);
  assertEquals(1, root.getChildren().size());
  test(root, "STATUS", 1, 1);
  test(root, "STATUS.TEST1", 1, 3);
  test(root, "STATUS.TEST1", 2, 3);
  test(root, "STATUS.TEST2", 1, 5);
  test(root, "STATUS.TEST2", 2, 5);
}

origin: org.carewebframework/org.carewebframework.plugin.statuspanel

@Test
public void test() throws Exception {
  CareWebShell shell = new CareWebShell();
  shell.setParent(getMockEnvironment().getSession().getPage());
  shell.setLayout("/StatusPanelTest.xml");
  getMockEnvironment().flushEvents();
  ElementPlugin plugin = shell.getActivatedPlugin("cwfStatusPanel");
  BaseComponent root = plugin.getOuterComponent().getFirstChild();
  StatusPanel controller = (StatusPanel) FrameworkController.getController(root);
  assertNotNull("Controller must not be null.", controller);
  assertEquals(1, root.getChildren().size());
  test(root, "STATUS", 1, 1);
  test(root, "STATUS.TEST1", 1, 2);
  test(root, "STATUS.TEST1", 2, 2);
  test(root, "STATUS.TEST2", 1, 3);
  test(root, "STATUS.TEST2", 2, 3);
}

org.carewebframework.shellCareWebShellsetLayout

Javadoc

Sets the layout to be loaded. If null, the layout specified by the configuration will be loaded.

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.
  • getMessageWindow
    Returns the message window instance for managing slide-down messages.
  • lock
    Lock the desktop.
  • 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

  • Start an intent from android
  • setScale (BigDecimal)
  • getContentResolver (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Best plugins for Eclipse
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