本文整理汇总了Java中com.extjs.gxt.ui.client.event.BaseEvent类的典型用法代码示例。如果您正苦于以下问题:Java BaseEvent类的具体用法?Java BaseEvent怎么用?Java BaseEvent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BaseEvent类属于com.extjs.gxt.ui.client.event包,在下文中一共展示了BaseEvent类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getStartSelectionListener
import com.extjs.gxt.ui.client.event.BaseEvent; //导入依赖的package包/类
private SelectionListener getStartSelectionListener() {
return(new SelectionListener<ToolBarEvent>() {
@Override
public void componentSelected(ToolBarEvent ce) {
if (selectedItems == null || selectedItems.size() == 0) {
return;
}
MDRStartWindow start = new MDRStartWindow(selectedMDR, selectedItems);
start.setCloseAction(CloseAction.CLOSE);
start.addListener(Events.Close, new Listener<BaseEvent>() {
public void handleEvent(BaseEvent be) {
reloadHistory();
}
});
start.show();
}
});
}
开发者ID:luox12,项目名称:onecmdb,代码行数:23,代码来源:MDRDetailWindow.java
示例2: setupUI
import com.extjs.gxt.ui.client.event.BaseEvent; //导入依赖的package包/类
protected void setupUI() {
final MessageBox info = MessageBox.progress("Setup", "Fetch Columns", "wait....");
ModelServiceFactory.get().loadDataSourceColumns(CMDBSession.get().getToken(), config, new CMDBAsyncCallback<GridModelConfig>() {
@Override
public void onFailure(Throwable t) {
info.close();
super.onFailure(t);
}
@Override
public void onSuccess(GridModelConfig arg0) {
info.close();
gridConfig = arg0;
fireEvent(CMDBEvents.MDR_GRID_AVAILIABLE, new BaseEvent(gridConfig));
initUI();
}
});
}
开发者ID:luox12,项目名称:onecmdb,代码行数:24,代码来源:PreviewTableWidget.java
示例3: update
import com.extjs.gxt.ui.client.event.BaseEvent; //导入依赖的package包/类
public void update() {
// Remove
south.removeAll();
PreviewTableWidget preview = new PreviewTableWidget(cfg);
preview.addListener(CMDBEvents.MDR_GRID_AVAILIABLE, new Listener<BaseEvent>() {
public void handleEvent(BaseEvent be) {
if (be.source instanceof GridModelConfig) {
selectorTable.setSourceGridConfig((GridModelConfig)be.source);
}
}
});
south.add(preview);
layout();
}
开发者ID:luox12,项目名称:onecmdb,代码行数:20,代码来源:MDRTransformTableConfigurator.java
示例4: createNorth
import com.extjs.gxt.ui.client.event.BaseEvent; //导入依赖的package包/类
/**
* Creates the north.
*/
private void createNorth()
{
north = new ContentPanel();
north.setHeaderVisible(false);
north.addListener(Events.Resize, new Listener<BaseEvent>()
{
public void handleEvent(BaseEvent be)
{
Dispatcher.forwardEvent(GeoGWTEvents.UPDATE_MAP_SIZE);
// Dispatcher.forwardEvent(GeofenceEvents.UPDATE_SOUTH_SIZE);
}
});
BorderLayoutData data = new BorderLayoutData(LayoutRegion.NORTH,
Constants.NORTH_PANEL_DIMENSION);
data.setMargins(new Margins(0, 5, 0, 5));
data.setSplit(true);
viewport.add(north, data);
}
开发者ID:geoserver,项目名称:geofence,代码行数:25,代码来源:AppView.java
示例5: RuleLimitsTabItem
import com.extjs.gxt.ui.client.event.BaseEvent; //导入依赖的package包/类
/**
* Instantiates a new rule details tab item.
*
* @param tabItemId
* the tab item id
* @param model
* the model
* @param loadModel
* @param workspacesService
* the workspaces service
*/
public RuleLimitsTabItem(String tabItemId, RuleModel model,
RulesManagerRemoteServiceAsync rulesService, boolean loadModel) {
this(tabItemId);
this.theRule = model;
setRuleLimitsWidget(new RuleLimitsWidget(this.theRule, rulesService));
add(getRuleLimitsWidget());
setScrollMode(Scroll.NONE);
if (loadModel) {
this.addListener(Events.Select, new Listener<BaseEvent>() {
public void handleEvent(BaseEvent be) {
if (ruleLimitsWidget.getRuleLimitsInfo().getModel() == null) {
Dispatcher.forwardEvent(
GeofenceEvents.LOAD_LAYER_LIMITS, theRule);
}
}
});
}
}
开发者ID:geoserver,项目名称:geofence,代码行数:36,代码来源:RuleLimitsTabItem.java
示例6: UserDetailsTabItem
import com.extjs.gxt.ui.client.event.BaseEvent; //导入依赖的package包/类
/**
* Instantiates a new rule details tab item.
*
* @param tabItemId
* the tab item id
* @param model
* the model
* @param profilesManagerServiceRemote
* @param workspacesService
* the workspaces service
*/
public UserDetailsTabItem(String tabItemId, GSUserModel model, GsUsersManagerRemoteServiceAsync usersService, ProfilesManagerRemoteServiceAsync profilesManagerServiceRemote)
{
this(tabItemId);
this.user = model;
setUserDetailsWidget(new UserDetailsWidget(this.user, usersService, profilesManagerServiceRemote));
add(getUserDetailsWidget());
setScrollMode(Scroll.NONE);
this.addListener(Events.Select, new Listener<BaseEvent>()
{
public void handleEvent(BaseEvent be)
{
if (userDetailsWidget.getProfilesInfo().getStore().getCount() < 1)
{
userDetailsWidget.getProfilesInfo().getLoader().load();
}
}
});
}
开发者ID:geoserver,项目名称:geofence,代码行数:36,代码来源:UserDetailsTabItem.java
示例7: LayerAttributesTabItem
import com.extjs.gxt.ui.client.event.BaseEvent; //导入依赖的package包/类
/**
* Instantiates a new layer attributes tab item.
*
* @param tabItemId
* the tab item id
* @param model
* the model
* @param rulesService
* the rules service
*/
public LayerAttributesTabItem(String tabItemId, RuleModel model, RulesManagerRemoteServiceAsync rulesService)
{
this(tabItemId);
this.model = model;
setLayerAttributesWidget(new LayerAttributesWidget(model, rulesService));
add(getLayerAttributesWidget());
setScrollMode(Scroll.NONE);
this.addListener(Events.Select, new Listener<BaseEvent>() {
public void handleEvent(BaseEvent be) {
getLayerAttributesWidget().getLayerAttributesInfo().getLoader().load();
}
});
}
开发者ID:geoserver,项目名称:geofence,代码行数:29,代码来源:LayerAttributesTabItem.java
示例8: initialize
import com.extjs.gxt.ui.client.event.BaseEvent; //导入依赖的package包/类
@Override
public void initialize() {
contactHistoryGrid = new Grid<ContactHistory>(new ListStore<ContactHistory>(), buildColumnModel());
contactHistoryGrid.getView().setForceFit(true);
contactHistoryGrid.setAutoHeight(true);
contactHistoryGrid.addListener(Events.ViewReady, new Listener<BaseEvent>() {
@Override
public void handleEvent(BaseEvent be) {
resizeGrid(contactHistoryGrid, container, true);
}
});
Window.addResizeHandler(new ResizeHandler() {
@Override
public void onResize(ResizeEvent event) {
resizeGrid(contactHistoryGrid, container, true);
}
});
container = Panels.content(null, false, Layouts.vBoxLayout(VBoxLayout.VBoxLayoutAlign.STRETCH, new Layouts.LayoutOptions(new Padding(10))), "x-border-layout-ct");
container.setScrollMode(Style.Scroll.AUTOY);
container.add(contactHistoryGrid);
add(container);
}
开发者ID:sigmah-dev,项目名称:sigmah,代码行数:24,代码来源:ContactHistoryView.java
示例9: MenuAction
import com.extjs.gxt.ui.client.event.BaseEvent; //导入依赖的package包/类
/**
* Builds this action.
*/
public MenuAction() {
item = new MenuItem(getText(), getIcon());
// Action.
item.addListener(Events.Select, new Listener<BaseEvent>() {
@Override
public void handleEvent(BaseEvent be) {
perform();
}
});
// Defines the default policy.
inactivationPolicy = InactivationPolicy.DISABLE_POLICY;
}
开发者ID:sigmah-dev,项目名称:sigmah,代码行数:20,代码来源:MenuAction.java
示例10: onBind
import com.extjs.gxt.ui.client.event.BaseEvent; //导入依赖的package包/类
@Override
public void onBind() {
view.getSaveButton().addListener(Events.OnClick, new Listener<BaseEvent>() {
@Override
public void handleEvent(BaseEvent be) {
if (view.getForm().isValid()) {
currentBudgetSubField.setLabel(view.getNameField().getValue());
eventBus.fireEvent(new UpdateEvent(UpdateEvent.EDIT_FLEXIBLEELEMNT_EDIT_BUDGETSUBFIELD));
view.hide();
}
}
});
}
开发者ID:sigmah-dev,项目名称:sigmah,代码行数:19,代码来源:AddBudgetSubFieldPresenter.java
示例11: onBind
import com.extjs.gxt.ui.client.event.BaseEvent; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public void onBind() {
// Enter key handler.
view.getEmailField().addListener(Events.KeyDown, new KeyListener() {
@Override
public void componentKeyDown(final ComponentEvent event) {
if (event.getKeyCode() == KeyCodes.KEY_ENTER) {
onValidateAction();
}
}
});
// Validate button action handler.
view.getValidateButton().addListener(Events.Select, new Listener<BaseEvent>() {
@Override
public void handleEvent(final BaseEvent be) {
onValidateAction();
}
});
}
开发者ID:sigmah-dev,项目名称:sigmah,代码行数:27,代码来源:LostPasswordPresenter.java
示例12: onBind
import com.extjs.gxt.ui.client.event.BaseEvent; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public void onBind() {
// Enter key handler.
view.getPasswordField().addKeyDownHandler(keyDownHandler);
view.getPasswordConfirmationField().addKeyDownHandler(keyDownHandler);
// Validate button action handler.
view.getValidateButton().addListener(Events.Select, new Listener<BaseEvent>() {
@Override
public void handleEvent(final BaseEvent be) {
onValidateAction();
}
});
}
开发者ID:sigmah-dev,项目名称:sigmah,代码行数:20,代码来源:ResetPasswordPresenter.java
示例13: addToolBar
import com.extjs.gxt.ui.client.event.BaseEvent; //导入依赖的package包/类
private ToolBar addToolBar(){
ToolBar tb = new ToolBar();
Button xlsExportButton = new Button();
xlsExportButton.setText("Excel Export");
xlsExportButton.setIcon(Resources.ICONS.table());
xlsExportButton.addListener(Events.Select, new Listener<BaseEvent>(){
@Override
public void handleEvent(BaseEvent be) {
com.google.gwt.user.client.Window.Location.assign(GWT.getHostPageBaseURL().toString() +"userassignmenttoxls.htm?assignment_id="+assignment);
}
});
tb.add(xlsExportButton);
return tb;
}
开发者ID:treblereel,项目名称:Opensheet,代码行数:20,代码来源:AssignmentUsers.java
示例14: showError
import com.extjs.gxt.ui.client.event.BaseEvent; //导入依赖的package包/类
private void showError(BaseModel result){
timelineErrorWindow = new Window();
timelineErrorWindow.setWidth(250);
timelineErrorWindow.setHeight(180);
timelineErrorWindow.setResizable(false);
timelineErrorWindow.setHeadingHtml("ERROR");
timelineErrorWindow.setClosable(false);
timelineErrorWindow.addText(result.get("string").toString());
Button btn = new Button("Cancel");
btn.addListener(Events.Select, new Listener<BaseEvent>(){
@Override public void handleEvent(BaseEvent be) {
timelineErrorWindow.hide();
makeRequest();
}
});
timelineErrorWindow.addButton(btn);
timelineErrorWindow.show();
}
开发者ID:treblereel,项目名称:Opensheet,代码行数:23,代码来源:DepartmentTimeline.java
示例15: onRender
import com.extjs.gxt.ui.client.event.BaseEvent; //导入依赖的package包/类
@Override
protected void onRender(Element parent, int index) {
ContentFile mdr = new ContentFile();
String mdrConf = item.getParams().get("mdrConfig");
if (mdrConf == null) {
mdrConf = CMDBSession.get().getConfig().get(Config.OneCMDBWebService);
}
mdr.setPath(mdrConf);
super.onRender(parent, index);
setLayout(new FitLayout());
TabPanel tab = new TabPanel();
TabItem overviewItem = new TabItem("MDR Overview");
overviewItem.setLayout(new FitLayout());
overviewItem.add(new MDROverview(mdr, this.permissions));
TabItem detailTab = new TabItem("MDR Details");
detailTab.setLayout(new FitLayout());
detailTab.add(detail);
tab.add(overviewItem);
tab.add(detailTab);
add(tab);
layout();
if (getParent() instanceof Window) {
((Window)getParent()).addListener(Events.BeforeClose, new Listener<BaseEvent>() {
public void handleEvent(BaseEvent be) {
HelpInfo.abort();
}
});
}
}
开发者ID:luox12,项目名称:onecmdb,代码行数:37,代码来源:MDRViewWindow.java
示例16: getPropertySelection
import com.extjs.gxt.ui.client.event.BaseEvent; //导入依赖的package包/类
private SelectionListener getPropertySelection() {
SelectionListener<ComponentEvent> selection = new SelectionListener<ComponentEvent>() {
@Override
public void componentSelected(ComponentEvent ce) {
CIModelCollection dataCol = new CIModelCollection();
dataCol.addCIModel("offspring", modelLocal);
String rootCI = "Ci";
if (roots.contains("Root")) {
rootCI = "Root";
}
final CIPropertyPanel panel = new CIPropertyPanel(mdr, dataCol, rootCI);
panel.setPermissions(permission);
Window w = WindowFactory.getWindow("Properties for " + dataCol.getCIModels().get(0).getDisplayName(), panel);
w.addListener(Events.Close, new Listener<BaseEvent>() {
public void handleEvent(BaseEvent be) {
if (panel.isModelChanged()) {
reloadModel();
}
}
});
w.show();
w.layout();
w.toFront();
}
};
return(selection);
}
开发者ID:luox12,项目名称:onecmdb,代码行数:35,代码来源:CIModelInternalBrowser.java
示例17: init
import com.extjs.gxt.ui.client.event.BaseEvent; //导入依赖的package包/类
public void init() {
setLayout(new RowLayout());
editContainer = new ContentPanel();
editContainer.setHeight("150px");
editContainer.setLayout(new RowLayout());
editContainer.setLayoutOnChange(true);
refTree = new CIInstanceReferenceTree(this.mdr, this.model);
refTree.setPermission(permissions);
/*
refTree.setReadonly(readonly);
refTree.setDeletable(deletable);
*/
add(refTree, new RowData(1,1));
add(editContainer, new RowData(1,-1));
refTree.addListener(CIInstanceReferenceTree.CI_SELECTED_EVENT, new Listener<BaseEvent>() {
public void handleEvent(BaseEvent be) {
if (be.source instanceof CIModel) {
modelLocal = (CIModel)be.source;
modelBase = modelLocal.copy();
editCI = new EditableSingleCIGrid(mdr, modelLocal);
editCI.setPermissions(permissions);
//editCI.setReadonly(readonly);
editContainer.removeAll();
editContainer.setHeading("Attributes for " + modelLocal.getDisplayName());
editContainer.add(getToolBar(), new RowData(1,-1));
editContainer.add(editCI, new RowData(1,1));
editContainer.layout();
CIInstanceEditableReferenceTree.this.layout();
}
}
});
}
开发者ID:luox12,项目名称:onecmdb,代码行数:37,代码来源:CIInstanceEditableReferenceTree.java
示例18: RuleDetailsTabItem
import com.extjs.gxt.ui.client.event.BaseEvent; //导入依赖的package包/类
/**
* Instantiates a new rule details tab item.
*
* @param tabItemId
* the tab item id
* @param model
* the model
* @param workspacesService
* the workspaces service
* @param loadModel
*/
public RuleDetailsTabItem(String tabItemId, RuleModel model,
WorkspacesManagerRemoteServiceAsync workspacesService,
final boolean loadModel) {
this(tabItemId);
this.theRule = model;
setRuleDetailsWidget(new RuleDetailsWidget(this.theRule,
workspacesService));
add(getRuleDetailsWidget());
setScrollMode(Scroll.NONE);
this.addListener(Events.Select, new Listener<BaseEvent>() {
public void handleEvent(BaseEvent be) {
if (loadModel && ruleDetailsWidget.getRuleDetailsInfo().getModel() == null) {
Dispatcher.forwardEvent(
GeofenceEvents.LOAD_LAYER_DETAILS, theRule);
}
if (ruleDetailsWidget.getRuleDetailsGrid().getStore()
.getCount() < 1) {
ruleDetailsWidget.getRuleDetailsGrid().getLoader()
.load();
}
}
});
// getLayerCustomPropsWidget().getLayerCustomPropsInfo().getLoader().load(0,
// org.geoserver.geofence.gui.client.Constants.DEFAULT_PAGESIZE);
}
开发者ID:geoserver,项目名称:geofence,代码行数:44,代码来源:RuleDetailsTabItem.java
示例19: handleEvent
import com.extjs.gxt.ui.client.event.BaseEvent; //导入依赖的package包/类
public void handleEvent(BaseEvent e) {
// if (e.getType() == GeofenceEvents.ADMIN_MODE_CHANGE) {
// onAdminModeChange((AppEvent) e);
// }
if (e.getType() == GeofenceEvents.BIND_SELECTED_MEMBER) {
onBindMember((AppEvent) e);
}
// if (e.getType() == GeofenceEvents.GEOCONSTRAINT_DELETED) {
// onGeoConstraintDeleted((AppEvent) e);
// }
// if (e.getType() == GeofenceEvents.RELOAD_GEOCONSTRAINTS) {
// onReloadGeoConstraints((AppEvent) e);
// }
}
开发者ID:geoserver,项目名称:geofence,代码行数:15,代码来源:TabWidget.java
示例20: createStringField
import com.extjs.gxt.ui.client.event.BaseEvent; //导入依赖的package包/类
/**
* Create a text field to represent a default flexible element.
*
* @param length The max length of the field.
* @param allowBlank If the field allow blank value.
* @return The text field.
*/
protected TextField<String> createStringField(final int length, final boolean allowBlank) {
final TextField<String> textField = new TextField<String>();
textField.setAllowBlank(allowBlank);
// Sets the max length.
textField.setMaxLength(length);
// Adds the listeners.
textField.addListener(Events.OnKeyUp, new Listener<BaseEvent>() {
@Override
public void handleEvent(BaseEvent be) {
String rawValue = textField.getValue();
if (rawValue == null) {
rawValue = "";
}
// The value is valid if it contains at least one non-blank
// character.
final boolean isValueOn = !rawValue.trim().equals("") && !(rawValue.length() > length);
if (!(!allowBlank && !isValueOn)) {
fireEvents(rawValue, isValueOn);
}
}
});
return textField;
}
开发者ID:sigmah-dev,项目名称:sigmah,代码行数:40,代码来源:AbstractDefaultFlexibleElementDTO.java
注:本文中的com.extjs.gxt.ui.client.event.BaseEvent类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论