Search in sources :

Example 1 with Heading

use of org.gwtbootstrap3.client.ui.Heading in project ovirt-engine by oVirt.

the class EventsListPopover method createTitleHeader.

private IsWidget createTitleHeader(String title) {
    FlowPanel header = new FlowPanel();
    header.addStyleName(PatternflyConstants.PF_DRAWER_TITLE);
    titleAnchor = new Anchor();
    titleAnchor.addStyleName(PatternflyConstants.PF_DRAWER_TOGGLE_EXPAND);
    titleAnchor.addClickHandler(e -> toggle());
    header.add(titleAnchor);
    Anchor closeAnchor = new Anchor();
    closeAnchor.addStyleName(PatternflyConstants.PF_DRAWER_CLOSE);
    closeAnchor.addStyleName(PatternflyConstants.PFICON);
    closeAnchor.addStyleName(PatternflyConstants.PFICON_CLOSE);
    closeAnchor.addClickHandler(e -> hide());
    header.add(closeAnchor);
    Heading titleHeading = new Heading(HeadingSize.H3, title);
    titleHeading.addStyleName(PatternflyConstants.CENTER_TEXT);
    header.add(titleHeading);
    return header;
}
Also used : Anchor(org.gwtbootstrap3.client.ui.Anchor) Heading(org.gwtbootstrap3.client.ui.Heading) FlowPanel(com.google.gwt.user.client.ui.FlowPanel)

Example 2 with Heading

use of org.gwtbootstrap3.client.ui.Heading in project drools-wb by kiegroup.

the class GuidedDecisionTreePalette method makePanelGroup.

private PanelGroup makePanelGroup(final String className, final boolean isReadOnly) {
    return new PanelGroup() {

        {
            final PanelCollapse collapse = new PanelCollapse() {

                {
                    add(new PanelBody() {

                        {
                            add(makeStencils(className, isReadOnly));
                        }
                    });
                }
            };
            add(new PanelHeader() {

                {
                    setDataToggle(Toggle.COLLAPSE);
                    setDataParent(getId());
                    setDataTargetWidget(collapse);
                    add(new Heading(HeadingSize.H4) {

                        {
                            setText(className);
                        }
                    });
                }
            });
            add(collapse);
        }
    };
}
Also used : Heading(org.gwtbootstrap3.client.ui.Heading) PanelHeader(org.gwtbootstrap3.client.ui.PanelHeader) PanelGroup(org.gwtbootstrap3.client.ui.PanelGroup) PanelBody(org.gwtbootstrap3.client.ui.PanelBody) PanelCollapse(org.gwtbootstrap3.client.ui.PanelCollapse)

Example 3 with Heading

use of org.gwtbootstrap3.client.ui.Heading in project kie-wb-common by kiegroup.

the class SessionScreenViewImpl method init.

@PostConstruct
public void init() {
    mainPanel.add(emptyViewPanel);
    mainPanel.add(screenViewPanel);
    mainPanel.setHeight("100%");
    this.emptyViewPanel.setHeight("100%");
    this.emptyViewPanel.getElement().getStyle().setTextAlign(Style.TextAlign.CENTER);
    this.screenViewPanel.setHeight("100%");
    this.emptyViewPanel.add(new Heading(HeadingSize.H5, EMPTY_TEXT));
    showEmptySession();
}
Also used : Heading(org.gwtbootstrap3.client.ui.Heading) PostConstruct(javax.annotation.PostConstruct)

Example 4 with Heading

use of org.gwtbootstrap3.client.ui.Heading in project kie-wb-common by kiegroup.

the class SessionScreenViewImpl method init.

@PostConstruct
public void init() {
    mainPanel.add(emptyViewPanel);
    mainPanel.add(screenViewPanel);
    mainPanel.setHeight("100%");
    this.emptyViewPanel.setHeight("100%");
    this.emptyViewPanel.getElement().getStyle().setTextAlign(Style.TextAlign.CENTER);
    this.screenViewPanel.setHeight("100%");
    this.emptyViewPanel.add(new Heading(HeadingSize.H5, EMPTY_TEXT));
    showEmptySession();
}
Also used : Heading(org.gwtbootstrap3.client.ui.Heading) PostConstruct(javax.annotation.PostConstruct)

Example 5 with Heading

use of org.gwtbootstrap3.client.ui.Heading in project drools-wb by kiegroup.

the class GuidedDecisionTreePalette method setDataModelOracle.

public void setDataModelOracle(final AsyncPackageDataModelOracle oracle, final boolean isReadOnly) {
    this.oracle = PortablePreconditions.checkNotNull("oracle", oracle);
    clear();
    // Add types and constraints
    for (String className : oracle.getFactTypes()) {
        add(makePanelGroup(className, isReadOnly));
    }
    // Add actions
    final GuidedDecisionTreePaletteGroup paletteGroup = new GuidedDecisionTreePaletteGroup();
    if (oracle.getFactTypes().length > 0) {
        final String className = oracle.getFactTypes()[0];
        final ActionInsertNode an1 = new ActionInsertNodeImpl(className);
        paletteGroup.addStencil(actionInsertNodeFactory, stencilBuilder, new ActionInsertFactoryHelper(an1, isReadOnly), isReadOnly);
    }
    final ActionUpdateNode an2 = new ActionUpdateNodeImpl();
    paletteGroup.addStencil(actionUpdateNodeFactory, stencilBuilder, new ActionUpdateFactoryHelper(an2, isReadOnly), isReadOnly);
    final ActionRetractNode an3 = new ActionRetractNodeImpl();
    paletteGroup.addStencil(actionRetractNodeFactory, stencilBuilder, new ActionRetractFactoryHelper(an3, isReadOnly), isReadOnly);
    add(new PanelGroup() {

        {
            final PanelCollapse collapse = new PanelCollapse() {

                {
                    add(new PanelBody() {

                        {
                            add(paletteGroup);
                        }
                    });
                }
            };
            add(new PanelHeader() {

                {
                    setDataToggle(Toggle.COLLAPSE);
                    setDataParent(getId());
                    setDataTargetWidget(collapse);
                    add(new Heading(HeadingSize.H4) {

                        {
                            setText(GuidedDecisionTreeConstants.INSTANCE.actionsPaletteGroup());
                        }
                    });
                }
            });
            add(collapse);
        }
    });
}
Also used : ActionInsertNode(org.drools.workbench.models.guided.dtree.shared.model.nodes.ActionInsertNode) Heading(org.gwtbootstrap3.client.ui.Heading) ActionRetractFactoryHelper(org.drools.workbench.screens.guided.dtree.client.widget.factories.ActionRetractFactoryHelper) ActionUpdateFactoryHelper(org.drools.workbench.screens.guided.dtree.client.widget.factories.ActionUpdateFactoryHelper) ActionRetractNode(org.drools.workbench.models.guided.dtree.shared.model.nodes.ActionRetractNode) ActionInsertFactoryHelper(org.drools.workbench.screens.guided.dtree.client.widget.factories.ActionInsertFactoryHelper) ActionInsertNodeImpl(org.drools.workbench.models.guided.dtree.shared.model.nodes.impl.ActionInsertNodeImpl) ActionRetractNodeImpl(org.drools.workbench.models.guided.dtree.shared.model.nodes.impl.ActionRetractNodeImpl) PanelBody(org.gwtbootstrap3.client.ui.PanelBody) PanelHeader(org.gwtbootstrap3.client.ui.PanelHeader) ActionUpdateNode(org.drools.workbench.models.guided.dtree.shared.model.nodes.ActionUpdateNode) ActionUpdateNodeImpl(org.drools.workbench.models.guided.dtree.shared.model.nodes.impl.ActionUpdateNodeImpl) PanelGroup(org.gwtbootstrap3.client.ui.PanelGroup) PanelCollapse(org.gwtbootstrap3.client.ui.PanelCollapse)

Aggregations

Heading (org.gwtbootstrap3.client.ui.Heading)6 PanelBody (org.gwtbootstrap3.client.ui.PanelBody)3 PanelCollapse (org.gwtbootstrap3.client.ui.PanelCollapse)3 PanelHeader (org.gwtbootstrap3.client.ui.PanelHeader)3 FlowPanel (com.google.gwt.user.client.ui.FlowPanel)2 PostConstruct (javax.annotation.PostConstruct)2 Anchor (org.gwtbootstrap3.client.ui.Anchor)2 PanelGroup (org.gwtbootstrap3.client.ui.PanelGroup)2 ActionInsertNode (org.drools.workbench.models.guided.dtree.shared.model.nodes.ActionInsertNode)1 ActionRetractNode (org.drools.workbench.models.guided.dtree.shared.model.nodes.ActionRetractNode)1 ActionUpdateNode (org.drools.workbench.models.guided.dtree.shared.model.nodes.ActionUpdateNode)1 ActionInsertNodeImpl (org.drools.workbench.models.guided.dtree.shared.model.nodes.impl.ActionInsertNodeImpl)1 ActionRetractNodeImpl (org.drools.workbench.models.guided.dtree.shared.model.nodes.impl.ActionRetractNodeImpl)1 ActionUpdateNodeImpl (org.drools.workbench.models.guided.dtree.shared.model.nodes.impl.ActionUpdateNodeImpl)1 ActionInsertFactoryHelper (org.drools.workbench.screens.guided.dtree.client.widget.factories.ActionInsertFactoryHelper)1 ActionRetractFactoryHelper (org.drools.workbench.screens.guided.dtree.client.widget.factories.ActionRetractFactoryHelper)1 ActionUpdateFactoryHelper (org.drools.workbench.screens.guided.dtree.client.widget.factories.ActionUpdateFactoryHelper)1 Button (org.gwtbootstrap3.client.ui.Button)1 AuditLog (org.ovirt.engine.core.common.businessentities.AuditLog)1 ActionAnchorListItem (org.ovirt.engine.ui.common.widget.action.ActionAnchorListItem)1