Examples of TabbedPane


Examples of org.olat.core.gui.components.tabbedpane.TabbedPane

   
    //info message controller has two implementations (SingleVM or cluster)
    InfoMessageManager InfoMgr = (InfoMessageManager)CoreSpringFactory.getBean(InfoMessageManager.class);
    infoMsgCtrl = InfoMgr.getInfoMessageController(ureq, getWindowControl());
     
    tabbedPane = new TabbedPane("tp", ureq.getLocale());
    tabbedPane.addTab(ACTION_SESSIONS, usessC.getInitialComponent());
    tabbedPane.addTab(ACTION_INFOMSG,infoMsgCtrl.getInitialComponent());
    tabbedPane.addTab(ACTION_ERRORS, myErrors);
    tabbedPane.addTab(ACTION_LOGLEVELS, myLoglevels);
    tabbedPane.addTab(ACTION_SYSINFO, mySysinfo);
View Full Code Here

Examples of org.olat.core.gui.components.tabbedpane.TabbedPane

   * configuration
   * @param identity
   * @param ureq
   */
  private void initTabbedPane(UserRequest ureq) {
    repositoryDeleteTabP = new TabbedPane("repositoryDeleteTabP", ureq.getLocale());
    repositoryDeleteTabP.addListener(this);
   
    selectionCtr = new SelectionController(ureq, getWindowControl());
    listenTo(selectionCtr);
    repositoryDeleteTabP.addTab(translate("delete.workflow.tab.start.process"), selectionCtr.getInitialComponent());
View Full Code Here

Examples of org.olat.core.gui.components.tabbedpane.TabbedPane

   * configuration
   * @param identity
   * @param ureq
   */
  private void initTabbedPane(UserRequest ureq) {
    repositoryDeleteTabP = new TabbedPane("repositoryDeleteTabP", ureq.getLocale());
    repositoryDeleteTabP.addListener(this);
   
    selectionCtr = new SelectionController(ureq, getWindowControl());
    selectionCtr.addControllerListener(this);
    repositoryDeleteTabP.addTab(translate("delete.workflow.tab.start.process"), selectionCtr.getInitialComponent());
View Full Code Here

Examples of org.olat.core.gui.components.tabbedpane.TabbedPane

    this.isNew = isNew;
    setTranslator(new PackageTranslator(CalendarManager.class.getPackage().getName(), getLocale()));

    mainVC = new VelocityContainer("calEditMain", VELOCITY_ROOT + "/calEditMain.html", getTranslator(), this);
    mainVC.contextPut("caller", caller);
    pane = new TabbedPane("pane", getLocale());
    pane.addListener(this);
    mainVC.put("pane", pane);
   
    eventVC = new VelocityContainer("calEditDetails", VELOCITY_ROOT + "/calEditDetails.html", getTranslator(), this);
    deleteButton = LinkFactory.createButton("cal.edit.delete", eventVC, this);
View Full Code Here

Examples of org.olat.core.gui.components.tabbedpane.TabbedPane

  /**
   * @see org.olat.ims.qti.editor.tree.GenericQtiNode#createEditTabbedPane(org.olat.core.gui.UserRequest, org.olat.core.gui.control.WindowControl, org.olat.core.gui.translator.Translator, QTIEditorMainController)
   */
  public TabbedPane createEditTabbedPane(UserRequest ureq, WindowControl wControl, Translator trnsltr, QTIEditorMainController editorMainController) {
    if (myTabbedPane == null) {
      myTabbedPane = new TabbedPane("tabbedPane", ureq.getLocale());
      TabbableController tabbCntrllr = new SectionController(section, qtiPackage, ureq, wControl, editorMainController.isRestrictedEdit());
      tabbCntrllr.addTabs(myTabbedPane);
      tabbCntrllr.addControllerListener(editorMainController);
    }
    return myTabbedPane;
View Full Code Here

Examples of org.olat.core.gui.components.tabbedpane.TabbedPane

    //
    if (source == menuTree) { // catch menu tree clicks
      if (event.getCommand().equals(MenuTree.COMMAND_TREENODE_CLICKED)) {
        GenericQtiNode clickedNode;       
        clickedNode = menuTreeModel.getQtiNode(menuTree.getSelectedNodeId());       
        TabbedPane tabbedPane = clickedNode.createEditTabbedPane(ureq, getWindowControl(), getTranslator(), this);
        if(tabbedPane!=null) {
          main.put("tabbedPane",tabbedPane);
        } else {
          VelocityContainer itemNotEditable = createVelocityContainer("tab_itemAlien");           
          main.put("tabbedPane", itemNotEditable);
View Full Code Here

Examples of org.openfaces.component.panel.TabbedPane

        setStringProperty(component, "rolloverClass");

        setStringProperty(component, "rolloverContainerStyle");
        setStringProperty(component, "rolloverContainerClass");

        TabbedPane tabbedPane = (TabbedPane) component;

        setEnumerationProperty(component, "tabAlignment", TabAlignment.class);
        setEnumerationProperty(component, "tabPlacement", TabPlacement.class);
        setStringProperty(component, "tabStyle");
        setStringProperty(component, "rolloverTabStyle");
        setStringProperty(component, "selectedTabStyle");
        setStringProperty(component, "focusedTabStyle");
        setStringProperty(component, "rolloverSelectedTabStyle");
        setStringProperty(component, "tabEmptySpaceStyle");
        setStringProperty(component, "frontBorderStyle");
        setStringProperty(component, "backBorderStyle");
        setStringProperty(component, "tabClass");
        setStringProperty(component, "rolloverTabClass");
        setStringProperty(component, "selectedTabClass");
        setStringProperty(component, "focusedTabClass");
        setStringProperty(component, "rolloverSelectedTabClass");
        setStringProperty(component, "tabEmptySpaceClass");

        setBooleanProperty(component, "focusable");
        setStringProperty(component, "focusAreaClass");
        setStringProperty(component, "focusAreaStyle");
        setStringProperty(component, "disabledStyle");
        setStringProperty(component, "disabledClassStyle");

        String onselectionchange = getPropertyValue("onselectionchange");
        if (!setAsValueExpressionIfPossible(component, "onselectionchange", onselectionchange))
            tabbedPane.setOnchange(onselectionchange);
        setBooleanProperty(component, "mirrorTabSetVisible");
    }
View Full Code Here

Examples of org.openfaces.component.panel.TabbedPane

        return Styles.mergeClassNames(super.getDefaultClassName(), "o_debug");
    }

    public void createSubComponents(FacesContext context, UIComponent component) {
        Debug debug = (Debug) component;
        TabbedPane tabbedPane = (TabbedPane) Components.createChildComponent(context, debug, TabbedPane.COMPONENT_TYPE, "pages");
        tabbedPane.setLoadingMode(LoadingMode.CLIENT);
        tabbedPane.setStyle("width: 100%; height: 100%;");

        tabbedPane.getChildren().add(new SubPanel(
                Components.createOutputText(context, "Console"),
                createLogPageContent(context, debug)
        ));
        DataTable elementProperties = (DataTable) Components.createChildComponent(
                context, debug, DataTable.COMPONENT_TYPE, "elementProperties");
        tabbedPane.getChildren().add(new SubPanel(
                Components.createOutputText(context, "Element Inspector"),
                elementProperties
        ));
        elementProperties.setStyle("width: 100%; height: 100%;");
        elementProperties.getChildren().add(new Scrolling());
View Full Code Here

Examples of org.openfaces.component.panel.TabbedPane

    @Override
    public void encodeBegin(FacesContext context, UIComponent component) throws IOException {
        if (AjaxUtil.getSkipExtraRenderingOnPortletsAjax(context))
            return;
        ResponseWriter writer = context.getResponseWriter();
        TabbedPane tabbedPane = (TabbedPane) component;

        LoadingMode loadingMode = tabbedPane.getLoadingMode();
        if (LoadingMode.AJAX_LAZY.equals(loadingMode) || LoadingMode.AJAX_ALWAYS.equals(loadingMode))
            AjaxUtil.prepareComponentForAjax(context, component);

        List<SubPanel> allSubPanels = tabbedPane.getSubPanels(true);

        // implementation note for one who is going to remove outer table rendering
        // need to check, that style="padding: 10px;" (10px for example) do not breaks border under IE
        // JSFC-754 TabbedPane border is not solid if set paddings
        writer.startElement("table", tabbedPane);
        writer.writeAttribute("border", "0", null);
        writer.writeAttribute("cellspacing", "0", null);
        writer.writeAttribute("cellpadding", "0", null);
        writer.writeAttribute("id", tabbedPane.getClientId(context), "id");

        Rendering.writeComponentClassAttribute(writer, tabbedPane);

        Rendering.writeStandardEvents(writer, tabbedPane);

        TabPlacement tabPlacement = getTabPlacement(tabbedPane);

        boolean horizontalPlacement = TabPlacement.LEFT.equals(tabPlacement) || TabPlacement.RIGHT.equals(tabPlacement);
        boolean paneFirst = TabPlacement.RIGHT.equals(tabPlacement) || TabPlacement.BOTTOM.equals(tabPlacement);
        writer.startElement("tr", tabbedPane);
        writer.startElement("td", tabbedPane);
        writer.writeAttribute("height", "100%", null);
        writer.writeAttribute("width", "100%", null);

        writer.startElement("table", tabbedPane);
        writer.writeAttribute("border", "0", null);
        writer.writeAttribute("cellspacing", "0", null);
        writer.writeAttribute("cellpadding", "0", null);
        writer.writeAttribute("height", "100%", null);
        writer.writeAttribute("width", "100%", null);
        writer.startElement("tr", tabbedPane);
        writer.startElement("td", tabbedPane);

        String containerClass = getContainerClass(context, tabbedPane);
        String rolloverContainerClass = Styles.getCSSClass(context,
                tabbedPane, tabbedPane.getRolloverContainerStyle(), StyleGroup.regularStyleGroup(), tabbedPane.getRolloverContainerClass());

        if (paneFirst) {
            if (tabbedPane.isMirrorTabSetVisible()) {
                encodeTabSet(context, tabbedPane, allSubPanels, true);
                writer.endElement("td");
                if (!horizontalPlacement) {
                    writer.endElement("tr");
                    writer.startElement("tr", tabbedPane);
                }
                writer.startElement("td", tabbedPane);
            }
            encodePane(context, tabbedPane, allSubPanels, containerClass);
        } else {
            encodeTabSet(context, tabbedPane, allSubPanels, false);
        }
        writer.endElement("td");
        if (!horizontalPlacement) {
            writer.endElement("tr");
            writer.startElement("tr", tabbedPane);
        }
        writer.startElement("td", tabbedPane);
        if (paneFirst) {
            encodeTabSet(context, tabbedPane, allSubPanels, false);
        } else {
            encodePane(context, tabbedPane, allSubPanels, containerClass);
            if (tabbedPane.isMirrorTabSetVisible()) {
                writer.endElement("td");
                if (!horizontalPlacement) {
                    writer.endElement("tr");
                    writer.startElement("tr", tabbedPane);
                }
View Full Code Here

Examples of versusSNP.gui.TabbedPane

    super(UICaption.mainframe_title);
    menu = new Menu(this);
    document = new Document(menu);
    choosePanel = new ChoosePanel(this);
    seqPanel = new SeqPanel();
    tabbedPane = new TabbedPane(document);
    addComponentListener(new ComponentAdapter(){
      @Override
      public void componentResized(ComponentEvent e) {
        if (isVisible()) {
          if (getTabbedPane().getSize().width > getTabbedPane().getSPanel().getTable().getSize().width) {
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.