/** * Constructs a ValueBoxEditorDecorator using a {@link ValueBoxBase} * widget and a {@link ValueBoxEditor} editor. * * @param widget the widget * @param editor the editor */ public ValueBoxEditorDecorator(ValueBoxBase<T> widget, ValueBoxEditor<T> editor) { this(); contents.add(widget); this.editor = editor; }
public void add(Widget w) { ((SimplePanel) getWidget()).add(w); }
/** * Set the widget that the EditorPanel will display. This method will * automatically call {@link #setEditor}. * * @param widget a {@link ValueBoxBase} widget */ @UiChild(limit = 1, tagname = "valuebox") public void setValueBox(ValueBoxBase<T> widget) { contents.add(widget); setEditor(widget.asEditor()); }
@UiField SimplePanel simplePanel; ... private CellTable<Contact> configureCellTable() { ... simplePanel.add(table); }
private void updateBreadcrumb( final PartDefinition partDefinition ) { this.title.clear(); final Widget title = partTitle.get( partDefinition ); this.title.add( title ); }
@Override public void render(String inputId, Widget widget, FieldDefinition fieldDefinition) { fieldLabel.renderForInputId(inputId, fieldDefinition); fieldContainer.clear(); fieldContainer.add(widget); }
public void onClick( ClickEvent arg0 ) { resultsP.clear(); if ( searchTextBox.getText() == null || searchTextBox.getText().equals( "" ) ) { JarListEditor table = new JarListEditor( m2RepoService ); resultsP.add( table ); } else { JarListEditor table = new JarListEditor( m2RepoService, searchTextBox.getText() ); resultsP.add( table ); } }
private void search() { presenter.setTitle( termTextBox.getText().trim() ); resultPanel.clear(); final String term = termTextBox.getText().trim(); if ( term.isEmpty() ) { resultPanel.add( new SearchResultTable() ); return; } resultPanel.add( new SearchResultTable( new SearchTermPageRequest( term, 0, null ) ) ); } }
@Override public void initialise() { final UberElement<?> view = getView(); final ElementWrapperWidget<?> widget = ElementWrapperWidget.getWidget(view.getElement()); content.add(widget); }
/** * Set the widget that the EditorPanel will display. This method will * automatically call {@link #setEditor}. * * @param widget * a {@link ValueBoxBase} widget */ @UiChild(limit = 1, tagname = "valuebox") public void setValueBox(W widget) { contents.add(widget); setEditor(widget.asParseableEditor()); }
public void setValue(String html) { html = html.trim(); if (_msie_compatibility && html.length() == 0) { cellFormat.setValue(" "); } else { cellFormat.setValue(html); panel.clear(); panel.add(cellFormat.getWidget(wsGrid)); } numeric = isNumeric(html); }
private void refreshGui() { descriptionElement.setInnerHTML(samplePanelFactory.getDescription()); contentPanel.clear(); contentPanel.add(samplePanelFactory.create()); }
public void setValue(WSCellFormatter formatter) { if (_msie_compatibility && (formatter.getTextValue() == null || formatter.getTextValue().length() == 0)) { formatter.setValue(" "); } this.cellFormat = formatter; panel.clear(); Widget w = formatter.getWidget(wsGrid); panel.add(w); numeric = isNumeric(formatter.getTextValue()); }
public ValueBoxEditor.View<T> addHelpContent(final String title, final String content, final Placement placement) { final Tooltip tooltip = new Tooltip(widget); tooltip.setContainer("body"); tooltip.setShowDelayMs(1000); tooltip.setPlacement(placement); tooltip.setTitle(content); contents.add(tooltip); return this; }
private void initLogoutPanel() { if (logoutPanel != null) { return; } logoutPanel = new LogoutPanel(); if ( SearchApplicationContext.getInstance().requiresLogin() ) { passwordContainer.add(logoutPanel); passwordContainer.getElement().setId("passwordContainer"); } else { passwordContainer.setVisible( false ); } }
@PostConstruct public void init() { initWidget(uiBinder.createAndBindUi(this)); accordion.setId(DOM.createUniqueId()); headerVariables.setDataParent(accordion.getId()); headerVariables.setDataTargetWidget(collapseVariables); variables.add(iocManager.lookupBean(PorcentualsGroup.class).getInstance()); }
@PostConstruct public void init() { initWidget(uiBinder.createAndBindUi(this)); accordion.setId(DOM.createUniqueId()); headerActions.setDataParent(accordion.getId()); headerActions.setDataTargetWidget(collapseActions); actions.add(iocManager.lookupBean(ActionsGroup.class).getInstance()); }
@PostConstruct public void init() { initWidget(uiBinder.createAndBindUi(this)); accordion.setId(DOM.createUniqueId()); headerVariables.setDataParent(accordion.getId()); headerVariables.setDataTargetWidget(collapseVariables); variables.add(iocManager.lookupBean(PorcentualsGroup.class).getInstance()); }
public @UiConstructor JQMPanel(String panelId) { flowPanel = new FlowPanel(); flowPanel.setStylePrimaryName("ui-panel-inner"); flowPanelContainer = new SimplePanel(); flowPanelContainer.add(flowPanel); initWidget(flowPanelContainer); if (panelId == null || panelId.isEmpty()) setId(Document.get().createUniqueId()); else setId(panelId); setDataRole("panel"); }