当前位置: 首页>>代码示例>>Java>>正文


Java Location.assign方法代码示例

本文整理汇总了Java中com.google.gwt.user.client.Window.Location.assign方法的典型用法代码示例。如果您正苦于以下问题:Java Location.assign方法的具体用法?Java Location.assign怎么用?Java Location.assign使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.google.gwt.user.client.Window.Location的用法示例。


在下文中一共展示了Location.assign方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: buildUrlAndGoToGraphPage

import com.google.gwt.user.client.Window.Location; //导入方法依赖的package包/类
private void buildUrlAndGoToGraphPage(List<ResourceListItem> reports) {
    StringBuilder sb = new StringBuilder();
    sb.append(m_baseUrl + "graph/results.htm?reports=all&resourceId=");
    
    
    boolean first = true;
    for(ResourceListItem item : reports) {
        if(!first) {
            
            sb.append("&resourceId=");
        }
        sb.append(item.getId());
        first = false;
    }
    
    Location.assign(sb.toString());
}
 
开发者ID:qoswork,项目名称:opennmszh,代码行数:18,代码来源:ReportSelectListPresenter.java

示例2: onResourceItemSelected

import com.google.gwt.user.client.Window.Location; //导入方法依赖的package包/类
@Override
public void onResourceItemSelected() {
    StringBuilder url = new StringBuilder(getBaseUrl());
    url.append("graph/chooseresource.htm");
    url.append("?reports=all");
    url.append("&parentResourceId=" + getView().getSelectedResource().getId());
    
    Location.assign(url.toString());
}
 
开发者ID:qoswork,项目名称:opennmszh,代码行数:10,代码来源:DefaultResourceListPresenter.java

示例3: onResourceItemSelected

import com.google.gwt.user.client.Window.Location; //导入方法依赖的package包/类
@Override
public void onResourceItemSelected() {
    StringBuilder urlBuilder = new StringBuilder();
    urlBuilder.append(getBaseUrl() + "/KSC/customView.htm");
    urlBuilder.append("?type=" + getView().getSelectedResource().getType());
    urlBuilder.append("&report=" + getView().getSelectedResource().getId());
    
    Location.assign(urlBuilder.toString());
}
 
开发者ID:qoswork,项目名称:opennmszh,代码行数:10,代码来源:KscReportListPresenter.java

示例4: onPhysicalInterfaceSelected

import com.google.gwt.user.client.Window.Location; //导入方法依赖的package包/类
@Override
public void onPhysicalInterfaceSelected(PhysicalInterfaceSelectionEvent event) {
    StringBuilder urlBuilder = new StringBuilder();
    urlBuilder.append(getBaseHref() + "element/snmpinterface.jsp");
    urlBuilder.append("?node=" + getNodeId());
    urlBuilder.append("&ifindex=" + event.getIfIndex());
    
    Location.assign(urlBuilder.toString());
}
 
开发者ID:qoswork,项目名称:opennmszh,代码行数:10,代码来源:PageableNodeList.java

示例5: onIpInterfaceSelection

import com.google.gwt.user.client.Window.Location; //导入方法依赖的package包/类
@Override
public void onIpInterfaceSelection(IpInterfaceSelectionEvent event) {
    StringBuilder urlBuilder = new StringBuilder();
    urlBuilder.append(getBaseHref() + "element/interface.jsp");
    urlBuilder.append("?ipinterfaceid=" + event.getIpInterfaceId());
    
    Location.assign(urlBuilder.toString());
}
 
开发者ID:qoswork,项目名称:opennmszh,代码行数:9,代码来源:PageableNodeList.java

示例6: onNodeSelected

import com.google.gwt.user.client.Window.Location; //导入方法依赖的package包/类
@Override
public void onNodeSelected() {
    StringBuilder builder = new StringBuilder();
    builder.append(getBaseHref() + "graph/chooseresource.htm");
    builder.append("?reports=all");
    builder.append("&parentResourceType=node");
    builder.append("&parentResource=" + m_view.getSelectedNode().getId());

    Location.assign(builder.toString());
}
 
开发者ID:qoswork,项目名称:opennmszh,代码行数:11,代码来源:SuggestionComboboxPresenter.java

示例7: onKscReportSelected

import com.google.gwt.user.client.Window.Location; //导入方法依赖的package包/类
@Override
public void onKscReportSelected() {
    StringBuilder urlBuilder = new StringBuilder();
    urlBuilder.append(getBaseHref() + "KSC/customView.htm");
    urlBuilder.append("?type=custom");
    urlBuilder.append("&report=" + m_view.getSelectedReport().getId());
    Location.assign(urlBuilder.toString());
}
 
开发者ID:qoswork,项目名称:opennmszh,代码行数:9,代码来源:KscComboboxPresenter.java

示例8: doSignIn

import com.google.gwt.user.client.Window.Location; //导入方法依赖的package包/类
/** Sign the user into the application. */
public static void doSignIn(String token) {
  Location.assign(loginRedirect(token));
}
 
开发者ID:gerrit-review,项目名称:gerrit,代码行数:5,代码来源:Gerrit.java


注:本文中的com.google.gwt.user.client.Window.Location.assign方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。