com.smartgwt.client.types.Cursor Java Examples
The following examples show how to use
com.smartgwt.client.types.Cursor.
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: MessageLabel.java From document-management-software with GNU Lesser General Public License v3.0 | 6 votes |
public MessageLabel(final GUIMessage message, boolean showLinks) { if (message.getUrl() == null || message.getUrl().isEmpty() || !showLinks) setContents("<span>" + message.getMessage() + "</span>"); else setContents("<span style='text-decoration: underline'>" + message.getMessage() + "</span>"); setHeight(25); setWrap(true); if (message.getPriority() == GUIMessage.PRIO_INFO) setIcon("[SKIN]/Dialog/notify.png"); else if (message.getPriority() == GUIMessage.PRIO_WARN) setIcon("[SKIN]/Dialog/warn.png"); if (showLinks && message.getUrl() != null && !message.getUrl().isEmpty()) { setCursor(Cursor.HAND); addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { Window.open(message.getUrl(), "_self", ""); } }); } }
Example #2
Source File: Header.java From SensorWebClient with GNU General Public License v2.0 | 6 votes |
private Layout getHomeLabel() { Layout layout = new VLayout(); layout.setStyleName("n52_sensorweb_client_logoBlock"); Img homeLabel = new Img("../img/client-logo.png", 289, 55); homeLabel.setStyleName("n52_sensorweb_client_logo"); homeLabel.setCursor(Cursor.POINTER); homeLabel.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { String url = "http://52north.org/communities/sensorweb/"; Window.open(url, "_blank", ""); } }); layout.addMember(homeLabel); return layout; }
Example #3
Source File: LegendEntryButton.java From SensorWebClient with GNU General Public License v2.0 | 6 votes |
private void init() { this.setWidth(this.size + 2 * this.margin); this.setHeight(this.size + 2 * this.margin); this.setSrc(this.icon); this.setShowRollOver(this.showRollOver); this.setShowDownIcon(false); this.setShowHover(true); this.setShowFocusedAsOver(false); this.setMargin(this.margin); this.setCursor(Cursor.POINTER); if (View.getView().isShowExtendedTooltip()) { this.setTooltip(this.extendedTooltip); } else { this.setTooltip(this.toolTip); } }
Example #4
Source File: ImageButton.java From SensorWebClient with GNU General Public License v2.0 | 6 votes |
private void init() { setStyleName("n52_sensorweb_client_imagebutton"); // int length = this.size + 2 * this.margin; // this.setWidth(length); // this.setHeight(length); String loaderId = "loader_" + (LoaderManager.getInstance().getCount() + Random.nextInt(10000)); this.loader = new LoaderImage(loaderId, "../img/mini_loader_bright.gif", this); this.setID(this.id); this.setSrc(this.icon); this.setShowHover(true); this.setShowRollOver(this.showRollOver); this.setShowDownIcon(this.showDown); this.setShowFocusedAsOver(false); this.setCursor(Cursor.POINTER); if (View.getView().isShowExtendedTooltip()) { this.setTooltip(this.extendedTooltip); } else { this.setTooltip(this.shortToolTip); } }
Example #5
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; }