/** * Sets the subtext for the heading (wrapped in a Small tag). * <p/> * When using the setter for this, the subtext will be added after the text * * @param subText the subtext of the heading */ @Override public void setSubText(final String subText) { // Force a space between the heading and the subText this.subText.setText(" " + subText); add(this.subText); }
/** * Sets the subtext for the heading (wrapped in a Small tag). * <p/> * When using the setter for this, the subtext will be added after the text * * @param subText the subtext of the heading */ @Override public void setSubText(final String subText) { // Force a space between the heading and the subText this.subText.setText(" " + subText); add(this.subText); }
static PanelHeader createPanelHeader(final PropertyEditorCategory category, final PanelGroup propertyMenu, PanelCollapse panelCollapse) { final Heading heading = new Heading(HeadingSize.H4); final Anchor anchor = GWT.create(Anchor.class); anchor.setText(category.getName()); anchor.setDataToggle(Toggle.COLLAPSE); anchor.setDataParent(propertyMenu.getId()); anchor.setDataTargetWidget(panelCollapse); anchor.addStyleName("collapsed"); heading.add(anchor); final PanelHeader header = GWT.create(PanelHeader.class); header.add(heading); return header; }
public void init() { initCalendarIcon(); calendarPanel.add( calendarLabel ); mainPanel.add( calendarPanel ); initPrevNextTodayButtons(); rightPanel.add( previousButton ); rightPanel.add( todayButton ); rightPanel.add( nextButton ); iconLabel.add( calendarIcon ); iconPanel.add( iconLabel ); mainPanel.add( iconPanel ); rightPanel.addStyleName( Styles.BTN_GROUP ); rightPanel.addStyleName( Styles.PULL_RIGHT ); controlsLabel.add( rightPanel ); mainPanel.add( controlsPanel ); updateCalendarLabelText(); }