本文整理汇总了Java中com.extjs.gxt.ui.client.widget.Info类的典型用法代码示例。如果您正苦于以下问题:Java Info类的具体用法?Java Info怎么用?Java Info使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Info类属于com.extjs.gxt.ui.client.widget包,在下文中一共展示了Info类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: doDelete
import com.extjs.gxt.ui.client.widget.Info; //导入依赖的package包/类
private void doDelete()
{
AsyncCallback<Void> callback = new AsyncCallback<Void>()
{
@Override
public void onFailure(Throwable caught)
{
WebPasswordSafe.handleServerFailure(caught);
}
@Override
public void onSuccess(Void result)
{
Info.display(textMessages.status(), textMessages.templateDeleted());
hide();
}
};
PasswordService.Util.getInstance().deleteTemplate(template, callback);
}
开发者ID:alfameCom,项目名称:salasanasiilo,代码行数:19,代码来源:TemplateDialog.java
示例2: doSearch
import com.extjs.gxt.ui.client.widget.Info; //导入依赖的package包/类
public void doSearch()
{
List<TagData> selectedTagData = tagTree.getCheckedSelection();
Set<Tag> selectedTags = new HashSet<Tag>(selectedTagData.size());
for (TagData selectedTag : selectedTagData)
{
selectedTags.add((Tag)selectedTag.get(Constants.TAG));
}
AsyncCallback<List<Password>> callback = new AsyncCallback<List<Password>>()
{
@Override
public void onFailure(Throwable caught)
{
WebPasswordSafe.handleServerFailure(caught);
}
@Override
public void onSuccess(List<Password> result)
{
Info.display(textMessages.status(), textMessages.foundPasswords(result.size()));
refreshTable(result);
}
};
Match match = tagMatchRG.getValue().equals(radioAND) ? Match.AND : Match.OR;
PasswordService.Util.getInstance().searchPassword(Utils.safeString(searchTextBox.getValue()), activeOnlyCheckBox.getValue(), selectedTags, match, callback);
}
开发者ID:alfameCom,项目名称:salasanasiilo,代码行数:26,代码来源:PasswordSearchPanel.java
示例3: doUnblockIP
import com.extjs.gxt.ui.client.widget.Info; //导入依赖的package包/类
private void doUnblockIP(String ipaddress)
{
AsyncCallback<Boolean> callback = new AsyncCallback<Boolean>()
{
@Override
public void onFailure(Throwable caught)
{
WebPasswordSafe.handleServerFailure(caught);
}
@Override
public void onSuccess(Boolean result)
{
hide();
if (result)
{
Info.display(textMessages.status(), textMessages.ipAddressUnblocked());
}
else
{
Info.display(textMessages.status(), textMessages.ipAddressNotExist());
}
}
};
UserService.Util.getInstance().unblockIP(ipaddress, callback);
}
开发者ID:alfameCom,项目名称:salasanasiilo,代码行数:26,代码来源:IPUnblockDialog.java
示例4: doDelete
import com.extjs.gxt.ui.client.widget.Info; //导入依赖的package包/类
private void doDelete()
{
AsyncCallback<Void> callback = new AsyncCallback<Void>()
{
@Override
public void onFailure(Throwable caught)
{
WebPasswordSafe.handleServerFailure(caught);
}
@Override
public void onSuccess(Void result)
{
Info.display(textMessages.status(), textMessages.groupDeleted());
hide();
}
};
UserService.Util.getInstance().deleteGroup(group, callback);
}
开发者ID:alfameCom,项目名称:salasanasiilo,代码行数:19,代码来源:GroupDialog.java
示例5: doChangePassword
import com.extjs.gxt.ui.client.widget.Info; //导入依赖的package包/类
/**
* @param password
*/
private void doChangePassword(String password)
{
AsyncCallback<Void> callback = new AsyncCallback<Void>()
{
@Override
public void onFailure(Throwable caught)
{
WebPasswordSafe.handleServerFailure(caught);
}
@Override
public void onSuccess(Void result)
{
hide();
Info.display(textMessages.status(), textMessages.passwordChanged());
}
};
UserService.Util.getInstance().changePassword(password, callback);
}
开发者ID:alfameCom,项目名称:salasanasiilo,代码行数:22,代码来源:ChangePasswordDialog.java
示例6: onModuleLoad
import com.extjs.gxt.ui.client.widget.Info; //导入依赖的package包/类
public void onModuleLoad() {
// subscribe widget to events
OpenAjaxHubFactory openAjaxHubFactory = new OpenAjaxHubFactory(true, "D2_EVENT_SELECT_OBJECT");
openAjaxHubFactory.setConnectCompletedCallback(new AsyncCallback<HubConnectionMessage>() {
public void onSuccess(HubConnectionMessage result) {
// widget successfully connected to
logger.log(Level.INFO, "TutorialOne::onModuleLoad: connected to hub successfully");
setOpenAjaxHub(result.getHubClient());
RootPanel.get().add(new TutorialOneContainer(getOpenAjaxHub()));
}
public void onFailure(Throwable caught) {
logger.log(Level.WARNING, "TutorialOne::onModuleLoad: failed to connect to the hub " + caught.getMessage());
Info.display("TutorialOne widget", "Failed to connect to Open Ajax Hub");
}
});
openAjaxHubFactory.connect();
}
开发者ID:Roche,项目名称:ROGeTMF,代码行数:22,代码来源:TutorialOne.java
示例7: onModuleLoad
import com.extjs.gxt.ui.client.widget.Info; //导入依赖的package包/类
public void onModuleLoad() {
// subscribe widget to events
OpenAjaxHubFactory openAjaxHubFactory = new OpenAjaxHubFactory(true, "D2_EVENT_CUSTOM", "D2_EVENT_DIALOG_HIDE", "D2_ACTION_SEARCH_HIGHLIGHT_TERMS", "D2_EVENT_SEARCH_SAVED","D2_EVENT_OBJECT_DESTROYED","D2_EVENT_SEARCH_RUN");
openAjaxHubFactory.setConnectCompletedCallback(new AsyncCallback<HubConnectionMessage>() {
public void onSuccess(HubConnectionMessage result) {
// widget successfully connected to
logger.log(Level.INFO, "Searches::onModuleLoad: connected to hub successfully");
setOpenAjaxHub(result.getHubClient());
RootPanel.get().add(new SearchesContainer(getOpenAjaxHub()));
}
public void onFailure(Throwable caught) {
logger.log(Level.WARNING, "Searches::onModuleLoad: failed to connect to the hub " + caught.getMessage());
Info.display("Searches widget", "Failed to connect to Open Ajax Hub");
}
});
openAjaxHubFactory.connect();
}
开发者ID:Roche,项目名称:ROGeTMF,代码行数:22,代码来源:Searches.java
示例8: updateQuickHelp
import com.extjs.gxt.ui.client.widget.Info; //导入依赖的package包/类
protected void updateQuickHelp(boolean b) {
UserPreference pref = CMDBSession.get().getUserPreference();
pref.setHideQuickHelp(b);
ModelServiceFactory.get().saveUserPreferences(CMDBSession.get().getToken(),
CMDBSession.get().getUsername(), pref, new AsyncCallback<Void>() {
public void onFailure(Throwable caught) {
Info.display("User Preferences", "Save failed!!!");
}
public void onSuccess(Void result) {
Info.display("User Preferences", "Saved");
}
});
}
开发者ID:luox12,项目名称:onecmdb,代码行数:17,代码来源:DesktopContoller.java
示例9: doStop
import com.extjs.gxt.ui.client.widget.Info; //导入依赖的package包/类
public void doStop() {
for (TabItem item : advanced.getItems()) {
final CIModel model = (CIModel)item.getData("model");
// Do a HTTP request..
RequestBuilder req = new RequestBuilder(RequestBuilder.GET, getStopURL(model));
try {
Info.display("Stop", "Send stop to " + model.getDisplayName());
req.sendRequest(null, new RequestCallback() {
public void onResponseReceived(Request request, Response response) {
Info.display("Stop", "COMPLETED. Stop sent to " + model.getDisplayName());
}
public void onError(Request arg0, Throwable arg1) {
Info.display("Stop", "FAILED. to stop " + model.getDisplayName());
}
});
} catch (RequestException e) {
Info.display("Stop", "ERROR. to stop " + model.getDisplayName());
}
}
}
开发者ID:luox12,项目名称:onecmdb,代码行数:26,代码来源:MDRStartWidget.java
示例10: getField
import com.extjs.gxt.ui.client.widget.Info; //导入依赖的package包/类
protected Field getField(AttributeModel aModel, final ValueModel v) {
TextField text = new TextField();
text.setFieldLabel(aModel.getDisplayName());
if (v != null) {
text.setValue(v.getValue());
} else {
text.setEmptyText("Edit...");
}
text.setAllowBlank(true);
text.setMinLength(4);
text.setAutoWidth(true);
text.addListener(Events.Change, new Listener<FieldEvent>() {
public void handleEvent(FieldEvent be) {
v.setUpdateValue((String)be.value);
Info.display("ChangeEvent", "OldValue {0} - NewValue{0} ", (String)be.oldValue, (String)be.value);
}
});
return(text);
}
开发者ID:luox12,项目名称:onecmdb,代码行数:24,代码来源:CIInstanceBrowser.java
示例11: setAssignmentDepartmentTimeline
import com.extjs.gxt.ui.client.widget.Info; //导入依赖的package包/类
private void setAssignmentDepartmentTimeline(){
System.out.println("assignmentId :" + assignmentId + " departmentId :" + departmentId);
Integer timeline = timelineField.getValue().intValue();
if(assignmentId != null && departmentId != null){
timelineService.setAssignmentDepartmentTimeline(assignmentId, departmentId, timeline, false, new AsyncCallback<BaseModel>(){
@Override public void onFailure(Throwable caught) {
if(caught instanceof ParentTimelineIsNullException){
MessageBox.info("Error",caught.getMessage(),null);
}else if(caught instanceof ParentTimelineTooSmallException){
MessageBox.info("Error",caught.getMessage(),null);
}else{
MessageBox.info("Error",caught.getMessage(),null);
}
}
@Override public void onSuccess(BaseModel result) {
Info.display("Success","OK");
}
});
}
}
开发者ID:treblereel,项目名称:Opensheet,代码行数:22,代码来源:AssignmentDepartmentPanel.java
示例12: saveTimeline
import com.extjs.gxt.ui.client.widget.Info; //导入依赖的package包/类
private void saveTimeline(){
if(assignmentId != null && userId != null){
Integer timeline = (Integer) timelineField.getValue().intValue();
timelineService.setUserAssignmentTimeline(userId, assignmentId, timeline, new AsyncCallback<Void>(){
@Override public void onFailure(Throwable caught) {
MessageBox.info("ERROR",caught.getMessage(),null);
}
@Override public void onSuccess(Void result) {
Info.display("OK","Timeline updated");
loadUserAssignmentCheckGrid();
}
});
}
}
开发者ID:treblereel,项目名称:Opensheet,代码行数:17,代码来源:DepartmentPanel.java
示例13: loadUserAssignmentCheckGrid
import com.extjs.gxt.ui.client.widget.Info; //导入依赖的package包/类
private void loadUserAssignmentCheckGrid(){
departmentService.getUsersByDepartmentAndByAssignment(departmentId,assignmentId,new AsyncCallback<List<BaseModel>>(){
@Override public void onFailure(Throwable caught) {
Info.display("Error", caught.toString());
}
@Override
public void onSuccess(List<BaseModel> result) {
userAssignmentCheckGrid.getStore().removeAll();
userAssignmentCheckGrid.getStore().add(result);
for(BaseModel bm: result){
if(bm.get("selected").equals(true))
userAssignmentCheckGrid.getSelectionModel().select(bm, true);
}
}
});
}
开发者ID:treblereel,项目名称:Opensheet,代码行数:17,代码来源:AddUserToAssignmentWindow.java
示例14: valiatePanelInfor
import com.extjs.gxt.ui.client.widget.Info; //导入依赖的package包/类
public boolean valiatePanelInfor()
{
if(pack == null)
{
Info.display("Error", "Pelase select a pack for your goods");
return false;
}
if(card == null)
{
Info.display("Error", "Pelase select a card for your deal");
return false;
}
orderInfoMap = contentPanel.getValues();
return true;
}
开发者ID:jbosschina,项目名称:jcommerce,代码行数:19,代码来源:OtherPanel.java
示例15: removeUsers
import com.extjs.gxt.ui.client.widget.Info; //导入依赖的package包/类
private void removeUsers(final List<BeanObject> users){
List<String> ids = new ArrayList<String>();
for(BeanObject user:users){
ids.add(user.getString(UserForm.ID));
}
DeleteService service = new DeleteService();
service.deleteBeans(ModelNames.USER,ids,new DeleteService.BatchDeleteListener(){
public void onSuccess(Integer successCount){
Info.display("恭喜", successCount+"个用户被删除");
toolBar.refresh();
}
public void onFailure(Throwable caught){
Info.display("糟糕", caught.toString());
}
});
}
开发者ID:jbosschina,项目名称:jcommerce,代码行数:19,代码来源:UserListPanel.java
示例16: deleteAttributesAndRefresh
import com.extjs.gxt.ui.client.widget.Info; //导入依赖的package包/类
private void deleteAttributesAndRefresh(List<BeanObject> selected) {
List<Long> ids = new ArrayList<Long>();
for(BeanObject bean:selected) {
ids.add(bean.getLong(AttributeForm.ID));
}
new DeleteService().deleteBeans(ModelNames.ATTRIBUTE, ids,
new DeleteService.BatchDeleteListener() {
public void onSuccess(Integer successCount) {
Info.display("恭喜", successCount+"个商品属性已删除");
toolBar.refresh();
}
public void onFailure(Throwable caught) {
super.onFailure(caught);
Info.display("糟糕", "删除商品属性失败");
}
});
}
开发者ID:jbosschina,项目名称:jcommerce,代码行数:18,代码来源:AttributeListPanel.java
示例17: updateAttribute
import com.extjs.gxt.ui.client.widget.Info; //导入依赖的package包/类
private void updateAttribute(final BeanObject att) {
new UpdateService().updateBean(att.getLong(AttributeForm.ID), att,
new UpdateService.Listener() {
@Override
public void onFailure(Throwable caught) {
super.onFailure(caught);
Info.display("糟糕", "更新商品属性失败"+att.getString(AttributeForm.NAME));
}
@Override
public void onSuccess(Boolean success) {
if(success) {
Info.display("恭喜", "更新商品属性成功"+att.getString(AttributeForm.NAME));
} else {
Info.display("糟糕", "更新商品属性失败"+att.getString(AttributeForm.NAME));
}
}
});
}
开发者ID:jbosschina,项目名称:jcommerce,代码行数:21,代码来源:AttributeListPanel.java
示例18: deleteComment
import com.extjs.gxt.ui.client.widget.Info; //导入依赖的package包/类
private void deleteComment(final String id) {
System.out.println("deleteComment:id= "+id);
MessageBox.confirm(Resources.constants.deleteConfirmTitle(), Resources.constants.deleteConfirmContent(), new com.extjs.gxt.ui.client.event.Listener<MessageBoxEvent>() {
public void handleEvent(MessageBoxEvent ce) {
Button btn = ce.getButtonClicked();
if ( btn.getItemId().equals("yes")){
new DeleteService().deleteBean(ModelNames.COMMENT, id, new DeleteService.Listener() {
public void onSuccess(Boolean success) {
if(success) {
Info.display(Resources.constants.OperationSuccessful(), Resources.constants.CommentList_deleteSuccessfully());
} else {
Info.display(Resources.constants.OperationFailure(), Resources.constants.CommentList_deleteFailure());
}
refresh();
}
public void onFailure(Throwable caught) {
Info.display(Resources.constants.OperationFailure(), Resources.constants.CommentList_deleteFailure());
};
});
}
}
});
}
开发者ID:jbosschina,项目名称:jcommerce,代码行数:26,代码来源:CommentListPanel.java
示例19: submit
import com.extjs.gxt.ui.client.widget.Info; //导入依赖的package包/类
@Override
protected void submit() {
// default implementation is thru GWT-RPC
ShippingConfigMetaForm form = (ShippingConfigMetaForm)obj;
// form.setShippingPrint(fTemplate.getValue());
RemoteService.getSpecialService().saveShipping(form, new AsyncCallback<Boolean>() {
public void onFailure(Throwable caught) {
log("save failure: "+caught.getMessage());
}
public void onSuccess(Boolean result) {
System.out.println("onSuccess: "+result.toString());
if(result) {
gotoSuccessPanel();
}
else {
Info.display("oops", "保存结果失败!!!");
}
}
});
}
开发者ID:jbosschina,项目名称:jcommerce,代码行数:25,代码来源:ShippingTemplatePanel.java
示例20: deleteShippingArea
import com.extjs.gxt.ui.client.widget.Info; //导入依赖的package包/类
private void deleteShippingArea(String id) {
System.out.println("deleteShippingArea: "+id);
new DeleteService().deleteBean(ModelNames.SHIPPING_AREA, id, new DeleteService.Listener() {
public void onFailure(Throwable caught) {
log("error in deleteShippingArea : "+caught.getMessage());
}
public void onSuccess(Boolean result) {
if(result) {
refresh();
}
else {
Info.display("oops", "deleteShippingArea failed!!!");
}
}
});
}
开发者ID:jbosschina,项目名称:jcommerce,代码行数:17,代码来源:ShippingAreaListPanel.java
注:本文中的com.extjs.gxt.ui.client.widget.Info类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论