Package org.olat.core.gui.components.panel

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


  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

    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

   */
  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

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

   * @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

 
  /**
   *
   */
  public GuiStackSimpleImpl(Component initialComponent) {
    contentPanel = new Panel("simpleguistack");
    contentPanel.setContent(initialComponent);
  }
View Full Code Here

    String uri = mreg.register(m);
    myContent.contextPut("mapuri", uri);
    myContent.contextPut("iframeName", iframeName);
    myContent.contextPut("showJSON", Boolean.valueOf(showJSON));
   
    mainP = new Panel("ajaxMainPanel");
    mainP.setContent(myContent);
   
    pollperiodPanel = new Panel("pollperiodP");
    pollperiodPanel.setContent(pollPeriodContent);
    myContent.put("pollperiodPanel", pollperiodPanel);

    setInitialComponent(mainP);
   
View Full Code Here

      }

    };
    overrideWindowControl(myWControl);

    content = new Panel("content");
    mainVc.put("content", content);

    // panel for modal overlays, placed right after the olat-header-div
    modalPanel = new Panel("ccmodalpanel");
    mainVc.put("modalpanel", modalPanel);

    putInitialPanel(mainVc);
  }
View Full Code Here

    if (contentController != null) contentController.dispose();
  }

  private void setGuiStack(GuiStack guiStack) {
    currentGuiStack = guiStack;
    Panel guiStackPanel = currentGuiStack.getPanel();
    content.setContent(guiStackPanel);
    // place for modal dialogs, which are overlayd over the normal layout (using
    // css alpha blending)
    // maybe null if no current modal dialog -> clears the panel
    Panel modalStackP = currentGuiStack.getModalPanel();
    modalPanel.setContent(modalStackP);
  }
View Full Code Here

TOP

Related Classes of org.olat.core.gui.components.panel.Panel

Copyright © 2018 www.massapicom. 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.