Java Code Examples for com.smartgwt.client.widgets.Label#setAutoWidth()
The following examples show how to use
com.smartgwt.client.widgets.Label#setAutoWidth() .
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: StationSelector.java From SensorWebClient with GNU General Public License v2.0 | 6 votes |
private Canvas createSelectionMenuButton() { showSelectionMenuButton = new Label(i18n.chooseDataSource()); showSelectionMenuButton.setStyleName("n52_sensorweb_client_legendbuttonPrimary"); showSelectionMenuButton.setZIndex(1000000); showSelectionMenuButton.setAutoHeight(); showSelectionMenuButton.setAutoWidth(); showSelectionMenuButton.setWrap(false); showSelectionMenuButton.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { if (selectionMenu.isVisible()) { selectionMenu.animateHide(AnimationEffect.SLIDE); } else { selectionMenu.animateShow(AnimationEffect.SLIDE); } } }); setSelectionMenuButtonPosition(); return showSelectionMenuButton; }
Example 2
Source File: ItemFactory.java From document-management-software with GNU Lesser General Public License v3.0 | 5 votes |
public static Label newLinkLabel(String title) { Label label = new Label(I18N.message(title)); label.setWrap(false); label.setCursor(Cursor.HAND); label.setAutoWidth(); return label; }
Example 3
Source File: Header.java From SensorWebClient with GNU General Public License v2.0 | 5 votes |
private Label getHeaderLinkLabel(String labelText) { Label label = new Label(labelText); label.setStyleName("n52_sensorweb_client_headerlink"); label.setAutoWidth(); label.setWrap(false); return label; }
Example 4
Source File: LoginHeaderLayout.java From SensorWebClient with GNU General Public License v2.0 | 5 votes |
private Label getHeaderLinkLabel(String labelText) { Label label = new Label(labelText); label.setStyleName("n52_sensorweb_client_headerlink"); label.setAutoWidth(); label.setWrap(false); return label; }
Example 5
Source File: Header.java From SensorWebClient with GNU General Public License v2.0 | 4 votes |
private Label getSeparator(){ Label pipe = new Label("|"); pipe.setStyleName("n52_sensorweb_client_pipe"); pipe.setAutoWidth(); return pipe; }
Example 6
Source File: LoginHeaderLayout.java From SensorWebClient with GNU General Public License v2.0 | 4 votes |
private Label getSeparator(){ Label pipe = new Label("|"); pipe.setStyleName("n52_sensorweb_client_pipe"); pipe.setAutoWidth(); return pipe; }