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;
}
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);
}
};
}
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();
}
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();
}
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);
}
});
}
Aggregations