Java Code Examples for com.smartgwt.client.widgets.Label#setContents()
The following examples show how to use
com.smartgwt.client.widgets.Label#setContents() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: UpdatePanel.java From document-management-software with GNU Lesser General Public License v3.0 | 5 votes |
private void onUpdateUnavailable() { Label message = new Label(); message.setContents(I18N.message("updatepackagenotfound")); message.setWrap(false); message.setAlign(Alignment.LEFT); message.setStyleName("updateunavailable"); message.setLayoutAlign(Alignment.LEFT); message.setLayoutAlign(VerticalAlignment.TOP); message.setHeight(20); setMembers(message); }
Example 2
Source File: DeviceManager.java From proarc with GNU General Public License v3.0 | 5 votes |
public DeviceManagerWidget(ClientMessages i18n) { this.i18n = i18n; actionSource = new ActionSource(this); widget = new VLayout(); Label lblHeader = new Label(); String title = ClientUtils.format("<b>%s</b>", i18n.DeviceManager_Title()); lblHeader.setContents(title); lblHeader.setAutoHeight(); lblHeader.setPadding(4); lblHeader.setStyleName(Editor.CSS_PANEL_DESCRIPTION_TITLE); ToolStrip toolbar = createToolbar(i18n); deviceList = createDeviceList(i18n); form = createForm(); premisForm = createPremisForm(); descriptionForm = createDescriptionForm(); valuesManager = new ValuesManager(); valuesManager.addMember(form); valuesManager.addMember(premisForm); valuesManager.addMember(descriptionForm); valuesManager.setDataSource(DeviceDataSource.getInstance()); VLayout forms = new VLayout(); forms.setOverflow(Overflow.AUTO); forms.setMembers(form, premisForm, descriptionForm); HLayout hLayout = new HLayout(); deviceList.setWidth100(); forms.setWidth100(); hLayout.setMembers(deviceList, forms); widget.addMember(lblHeader); widget.addMember(toolbar); widget.addMember(hLayout); }
Example 3
Source File: WorkflowJobView.java From proarc with GNU General Public License v3.0 | 5 votes |
private Label createPanelLabel() { Label lblHeader = new Label(); String title = ClientUtils.format("<b>%s</b>", i18n.WorkflowJob_View_Title()); lblHeader.setContents(title); lblHeader.setAutoHeight(); lblHeader.setPadding(4); lblHeader.setStyleName(Editor.CSS_PANEL_DESCRIPTION_TITLE); return lblHeader; }
Example 4
Source File: WorkflowNewJobView.java From proarc with GNU General Public License v3.0 | 5 votes |
private Label createPanelLabel() { Label lblHeader = new Label(); String title = ClientUtils.format("<b>%s</b>", i18n.WorkflowJob_NewJobView_Title()); lblHeader.setContents(title); lblHeader.setAutoHeight(); lblHeader.setPadding(4); lblHeader.setStyleName(Editor.CSS_PANEL_DESCRIPTION_TITLE); return lblHeader; }
Example 5
Source File: WorkflowTasksView.java From proarc with GNU General Public License v3.0 | 5 votes |
private Label createPanelLabel() { Label lblHeader = new Label(); String title = ClientUtils.format("<b>%s</b>", i18n.WorkflowTask_View_Title()); lblHeader.setContents(title); lblHeader.setAutoHeight(); lblHeader.setPadding(4); lblHeader.setStyleName(Editor.CSS_PANEL_DESCRIPTION_TITLE); return lblHeader; }