Examples of Panel


Examples of org.beryl.gui.widgets.Panel

            }
          }
        });
      }

      Panel panel = new Panel(null, null);
      panel.setProperty("layout", new GridLayout(1, 2));
      TextField widthField = new TextField(panel, null);
      widthField.addValidator(new IntegerValidator());
      widthField.setProperty("key", "width");
      TextField heightField = new TextField(panel, null);
      heightField.addValidator(new IntegerValidator());
      heightField.setProperty("key", "height");
      panel.addChild(widthField, null);
      panel.addChild(heightField, null);
      panel.recursiveSetDataModel(dataModel);

      widthField.finalizeConstruction();
      heightField.finalizeConstruction();

      return panel;
View Full Code Here

Examples of org.jboss.arquillian.graphene.ftest.enricher.page.fragment.Panel

        Resource.inCurrentPackage().find("container-elements.html").loadPage(browser, contextRoot);
    }

    @Test
    public void testTabPanelSwitching() {
        Panel tab3 = tabPanel.switchTo(2);
        ContentOfTab content = tab3.getContent(ContentOfTab.class);
        assertEquals("The tab panel was not switched to third tab correctly!", "Content of the tab 3", content.getText().getText());

        Panel tab1 = tabPanel.switchTo(0);
        content = tab1.getContent(ContentOfTab.class);
        assertEquals("The tab panel was not switched to first tab correctly!", "Content of the tab 1", content.getText().getText());
    }
View Full Code Here

Examples of org.jboss.dashboard.workspace.Panel

        HashMap result = new HashMap();
        for (Iterator iterator = sections.iterator(); iterator.hasNext();) {
            Section section = (Section) iterator.next();
            Set panels = section.getPanels();
            for (Iterator iterator1 = panels.iterator(); iterator1.hasNext();) {
                Panel panel = (Panel) iterator1.next();
                Long instanceId = panel.getInstanceId();
                Integer instanceCount = (Integer) result.get(instanceId);
                if (instanceCount == null) {
                    result.put(instanceId, new Integer(1));
                } else {
                    result.put(instanceId, new Integer(1 + instanceCount.intValue()));
View Full Code Here

Examples of org.joshy.gfx.node.layout.Panel

                    context.redraw();
                }
            });
            picker.setTranslateX(10);
            picker.setTranslateY(10);
            Panel panel = new Panel();
            panel.add(picker);
            Button okay = new Button("Close");
            okay.setTranslateX(200);
            okay.setTranslateY(200);
            okay.onClicked(okayed);
            panel.add(okay);
            dialog.setContent(panel);


        }
View Full Code Here

Examples of org.olat.core.gui.components.panel.Panel

   * @param modalContent
   * @param showAsOverlay
   */
  public CloseableModalController(WindowControl wControl, String closeButtonText, Component modalContent, boolean displayAsOverlay, String title) {
    super(wControl);
    final Panel guiMsgPlace = new Panel("guimessage_place");
    myContent = new VelocityContainer("closeablewrapper", VELOCITY_ROOT + "/index.html", null, this) {
      public void validate(UserRequest ureq, ValidationResult vr) {
        super.validate(ureq, vr);
        // just before rendering, we need to tell the windowbackoffice that we are a favorite for accepting gui-messages.
        // the windowbackoffice doesn't know about guimessages, it is only a container that keeps them for one render cycle
View Full Code Here

Examples of org.olat.core.gui.components.panel.Panel

  public CloseableModalWindowController(UserRequest ureq, WindowControl wControl, String title, Component modalContent, String id) {
    super(ureq, wControl);
    modalId = id;

    final Panel guiMsgPlace = new Panel("guimessage_place");
    mainVC = new VelocityContainer("closeablewrapper", Util.getPackageVelocityRoot(this.getClass()) + "/modalwindow.html", null, this) {
      public void validate(UserRequest ureq, ValidationResult vr) {
        super.validate(ureq, vr);
        // just before rendering, we need to tell the windowbackoffice
        // that we are a favorite for accepting gui-messages.
View Full Code Here

Examples of org.olat.core.gui.components.panel.Panel

    this.subscriptionContext = subscriptionContext;
    this.publisherData = publisherData;
    myContent = createVelocityContainer("consubs");
   
    if (subscriptionContext == null) {
      setInitialComponent(new Panel("empty:nosubscription"));
      return;
    }
   
    detailsPanel = new Panel("subscription_detail");
    allPanel = new Panel("subscription_all");

    subscribeButton = LinkFactory.createButtonSmall("command.subscribe", myContent, this);
    subscribeButton.setCustomEnabledLinkCSS("b_noti_subscribe_link");
   
    unsubscribeButton = LinkFactory.createButtonSmall("command.unsubscribe", myContent, this);
View Full Code Here

Examples of org.olat.core.gui.components.panel.Panel

   */
  public void init(UserRequest ureq) {
    olatMenuTree = new MenuTree("olatMenuTree");
    TreeModel tm = buildTreeModel();
    olatMenuTree.setTreeModel(tm);
    content = new Panel("content");
    // no child -> show a blank page
    if (tm.getRootNode().getChildCount() > 0) {
      INode firstNode = tm.getRootNode();
      olatMenuTree.setSelectedNodeId(firstNode.getIdent());
      olatMenuTree.addListener(this);
View Full Code Here

Examples of org.olat.core.gui.components.panel.Panel

  /**
   *
   */
  private GuiStackNiceImpl() {
    panel = new Panel("guistackpanel");
    modalPanel = new Panel("guistackmodalpanel");
    modalLayers = 0;
  }
View Full Code Here

Examples of org.olat.core.gui.components.panel.Panel

   * @param title the title of the modal dialog, can be null
   * @param content the component to push as modal dialog
   */
  public void pushModalDialog(Component content) {
    // wrap the component into a modal foreground dialog with alpha-blended-background
    final Panel guiMsgPlace = new Panel("guimsgplace_for_modaldialog");
    VelocityContainer inset = new VelocityContainer("inset", VELOCITY_ROOT + "/modalDialog.html", null, null) {
      public void validate(UserRequest ureq, ValidationResult vr) {
        super.validate(ureq, vr);
        // just before rendering, we need to tell the windowbackoffice that we are a favorite for accepting gui-messages.
        // the windowbackoffice doesn't know about guimessages, it is only a container that keeps them for one render cycle
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.