本文整理了Java中com.google.gwt.user.client.ui.Hyperlink.<init>()
方法的一些代码示例,展示了Hyperlink.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Hyperlink.<init>()
方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.Hyperlink
类名称:Hyperlink
方法名:<init>
[英]Creates an empty hyperlink.
[中]创建一个空超链接。
代码示例来源:origin: stackoverflow.com
Hyperlink link = new Hyperlink();
Image image = new Image(someUrl);
...
link.getElement().appendChild(image.getElement());
代码示例来源:origin: org.kuali.student.core/ks-common-ui
private static void createLink(String name, final String viewPath){
Hyperlink link = new Hyperlink(name, viewPath);
links.add(link);
addToPanel(link);
}
代码示例来源:origin: org.switchyard.console.wildfly/switchyard-console-wildfly-extension
/**
* Create a new ClickableTextItem.
*
* @param name the name of the bean member.
* @param title the label text.
* @param valueAdapter the adapter for the field value.
*/
public ClickableTextItem(String name, String title, ValueAdapter<T> valueAdapter) {
super(name, title);
_link = new Hyperlink();
_valueAdapter = valueAdapter;
resetMetaData();
}
代码示例来源:origin: stackoverflow.com
Hyperlink link = new Hyperlink();
Image image = new Image(someUrl);
...
link.getElement().getFirstChild().appendChild(image.getElement());
代码示例来源:origin: org.kuali.student.core/ks-common-ui
/**
* Use this when you simply want to Navigate to other internal, KS screens.
* @param text - label
* @param location - relative internal path to screen
*/
public void addNavLinkWidget(String text, String location){
Hyperlink hyperlink = new Hyperlink(text, location);
hyperlink.addStyleName("contentBlock-navLink");
listLayout.add(hyperlink);
}
代码示例来源:origin: de.esoco/gewt
/***************************************
* {@inheritDoc}
*/
@Override
@SuppressWarnings("unchecked")
public W createWidget(Component rComponent, StyleData rStyle)
{
Widget aWidget = null;
if (rStyle.hasFlag(StyleFlag.HYPERLINK))
{
aWidget = new Hyperlink();
}
else
{
LabelStyle eLabelStyle =
rStyle.getProperty(UserInterfaceProperties.LABEL_STYLE,
LabelStyle.DEFAULT);
aWidget = createLabelWidget(rComponent, eLabelStyle, rStyle);
}
return (W) aWidget;
}
}
代码示例来源:origin: org.eagle-i/eagle-i-search-gwt
public void setReferences(final Map<EIEntity, List<EIInstanceMinimal>> listReferences) {
setVisible( false );
if ( listReferences == null || listReferences.size() == 0 ) {
return;
}
linksPanel.clear();
final List<EIEntity> instanceTypes = new LinkedList<EIEntity>( listReferences.keySet() );
Collections.sort( instanceTypes );
for (final EIEntity instanceType : instanceTypes) {
final String rootTypeString = EIOntPlurals.plurals.containsKey( instanceType.getLabel() ) ? EIOntPlurals.plurals.get( instanceType.getLabel() ) : instanceType.getLabel();
final Label rootTypeLabel = new Label( rootTypeString );
rootTypeLabel.setStyleName( "relatedResourcesGroupTitle" );
linksPanel.add( rootTypeLabel );
final List<EIInstanceMinimal> references = listReferences.get( instanceType );
Collections.sort( references );
for (final EIInstanceMinimal eiInstanceMinimal : references) {
final Hyperlink instanceLink = new Hyperlink( InstanceWidgetUtils.formatText( eiInstanceMinimal.getInstanceLabel() ),
INSTANCE_PAGE_TOKEN + "?" + URI_KEY + "=" + eiInstanceMinimal.getInstanceURI().toString() );
linksPanel.add( instanceLink );
instanceLink.addStyleName( "link" );
}
}
setVisible( true );
}
}
代码示例来源:origin: org.apache.james.hupa/hupa-widgets
public EnableHyperlink(String text, boolean asHTML, String historyToken) {
link = historyToken != null ? new Hyperlink(text, asHTML, historyToken) : new Anchor(text);
html = new HTML();
panel.setStyleName(WidgetsCSS.C_hyperlink);
html.setStyleName(link.getStyleName());
html.addStyleDependentName("disabled");
if (asHTML) {
html.setHTML(text);
} else {
html.setText(text);
}
panel.setWidget(link);
initWidget(panel);
}
/*
内容来源于网络,如有侵权,请联系作者删除!