本文整理汇总了Java中org.pentaho.ui.xul.impl.XulEventHandler类的典型用法代码示例。如果您正苦于以下问题:Java XulEventHandler类的具体用法?Java XulEventHandler怎么用?Java XulEventHandler使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
XulEventHandler类属于org.pentaho.ui.xul.impl包,在下文中一共展示了XulEventHandler类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: AbstractRepositoryExplorerUISupport
import org.pentaho.ui.xul.impl.XulEventHandler; //导入依赖的package包/类
public AbstractRepositoryExplorerUISupport() {
super();
handlers = new ArrayList<XulEventHandler>();
overlays = new ArrayList<XulOverlay>();
controllerNames = new ArrayList<String>();
setup();
}
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:8,代码来源:AbstractRepositoryExplorerUISupport.java
示例2: apply
import org.pentaho.ui.xul.impl.XulEventHandler; //导入依赖的package包/类
public void apply(XulDomContainer container) throws XulException {
this.container = container;
container.registerClassLoader(getClass().getClassLoader());
for(XulEventHandler handler:handlers) {
container.addEventHandler(handler);
}
for (XulOverlay overlay : overlays) {
if(overlay instanceof RepositoryExplorerDefaultXulOverlay) {
container.loadOverlay(overlay.getOverlayUri(), new XulSpoonResourceBundle(((RepositoryExplorerDefaultXulOverlay) overlay).getPackageClass()));
} else {
container.loadOverlay(overlay.getOverlayUri(), overlay.getResourceBundleUri());
}
}
}
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:15,代码来源:AbstractRepositoryExplorerUISupport.java
示例3: initializeXul
import org.pentaho.ui.xul.impl.XulEventHandler; //导入依赖的package包/类
private void initializeXul() throws XulException {
SwtXulLoader loader = new SwtXulLoader();
loader.registerClassLoader(getClass().getClassLoader());
loader.setSettingsManager(XulSpoonSettingsManager.getInstance());
loader.setOuterContext(parentShell);
container = loader.loadXul( xulFile, new XulSpoonResourceBundle(getClassForMessages()));
bf.setDocument(container.getDocumentRoot());
for(XulEventHandler h : getEventHandlers()){
container.addEventHandler(h);
}
runner = new SwtXulRunner();
runner.addContainer(container);
// try and get the dialog
xulDialog = (XulDialog) container.getDocumentRoot().getRootElement();
dialogShell = (Shell) xulDialog.getRootObject();
runner.initialize();
}
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:22,代码来源:BaseStepXulDialog.java
示例4: initializeXul
import org.pentaho.ui.xul.impl.XulEventHandler; //导入依赖的package包/类
protected void initializeXul( XulLoader loader, BindingFactory bindingFactory, XulRunner runner, Object parent ) throws XulException {
bf = bindingFactory;
this.runner = runner;
loader.registerClassLoader( getClass().getClassLoader() );
loader.setSettingsManager( getSettingsManager() );
loader.setOuterContext( parent );
container = loader.loadXul( xulFile, getResourceBundle() );
bf.setDocument( container.getDocumentRoot() );
for ( XulEventHandler h : getEventHandlers() ) {
container.addEventHandler( h );
}
this.runner.addContainer( container );
// try and get the dialog
xulDialog = (XulDialog) container.getDocumentRoot().getRootElement();
runner.initialize();
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:24,代码来源:AbstractPreviewRowsXulDialog.java
示例5: initializeXul
import org.pentaho.ui.xul.impl.XulEventHandler; //导入依赖的package包/类
protected void initializeXul( XulLoader loader, BindingFactory bindingFactory, XulRunner runner, Object parent ) throws XulException {
bf = bindingFactory;
this.runner = runner;
loader.registerClassLoader( getClass().getClassLoader() );
loader.setSettingsManager( getSettingsManager() );
loader.setOuterContext( parent );
container = loader.loadXul( xulFile, getResourceBundle() );
bf.setDocument( container.getDocumentRoot() );
for ( XulEventHandler h : getEventHandlers() ) {
container.addEventHandler( h );
}
this.runner.addContainer( container );
// try and get the dialog
xulDialog = (XulDialog) container.getDocumentRoot().getRootElement();
runner.initialize();
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:20,代码来源:BaseStepGenericXulDialog.java
示例6: initDialogController
import org.pentaho.ui.xul.impl.XulEventHandler; //导入依赖的package包/类
/**
* Initializes a dialog using the specified xul document and dialog id. If
* an event handler is not provided the dialog class will be added as an
* event handler
* @param xulPath Path to the XUL document
* @param dialogId Id of the dialog to create
* @param eventHandler Optional event handler to register
* @param perspective Optional perspective to load
* @throws XulException
*/
public void initDialogController( String xulPath, String dialogId, XulEventHandler eventHandler, String perspective ) throws XulException {
SwtXulLoader loader = new SwtXulLoader();
loader.registerClassLoader(getClass().getClassLoader());
loader.setSettingsManager(XulSpoonSettingsManager.getInstance());
loader.setOuterContext(shell);
container = loader.loadXul( xulPath );
if( eventHandler != null ) {
container.addEventHandler(eventHandler);
} else {
container.addEventHandler(this);
}
runner = new SwtXulRunner();
runner.addContainer(container);
// try and get the dialog
xulDialog = (XulDialog) container.getDocumentRoot().getRootElement().getElementById( dialogId );
swtDialog = (Composite) container.getDocumentRoot().getRootElement().getElementById( dialogId ).getManagedObject();
runner.initialize();
if( perspective != null ) {
container.loadPerspective( perspective );
}
}
开发者ID:pentaho,项目名称:pdi-agile-bi-plugin,代码行数:37,代码来源:AbstractSwtXulDialogController.java
示例7: apply
import org.pentaho.ui.xul.impl.XulEventHandler; //导入依赖的package包/类
public void apply( XulDomContainer container ) throws XulException {
this.container = container;
container.registerClassLoader( getClass().getClassLoader() );
for ( XulEventHandler handler : handlers ) {
container.addEventHandler( handler );
}
for ( XulOverlay overlay : overlays ) {
if ( overlay instanceof RepositoryExplorerDefaultXulOverlay ) {
container.loadOverlay( overlay.getOverlayUri(), new XulSpoonResourceBundle(
( (RepositoryExplorerDefaultXulOverlay) overlay ).getPackageClass() ) );
} else {
container.loadOverlay( overlay.getOverlayUri(), overlay.getResourceBundleUri() );
}
}
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:16,代码来源:AbstractRepositoryExplorerUISupport.java
示例8: init
import org.pentaho.ui.xul.impl.XulEventHandler; //导入依赖的package包/类
public void init( Repository rep ) throws ControllerInitializationException {
try {
if ( rep != null && rep.hasService( ILockService.class ) ) {
repository = rep;
service = (ILockService) rep.getService( ILockService.class );
} else {
throw new ControllerInitializationException( BaseMessages.getString( PKG,
"RepositoryLockController.ERROR_0001_UNABLE_TO_INITIAL_REPOSITORY_SERVICE", ILockService.class ) ); //$NON-NLS-1$
}
bindingFactory = new DefaultBindingFactory();
bindingFactory.setDocument( getXulDomContainer().getDocumentRoot() );
XulEventHandler eventHandler = getXulDomContainer().getEventHandler( "browseController" ); //$NON-NLS-1$
if ( eventHandler instanceof BrowseController ) {
browseController = (BrowseController) eventHandler;
}
// Disable row dragging if it is locked and the user does not have permissions
fileTable = (XulTree) getXulDomContainer().getDocumentRoot().getElementById( "file-table" ); //$NON-NLS-1$
folderTree = (XulTree) document.getElementById( "folder-tree" ); //$NON-NLS-1$
lockFileMenuItem = (XulMenuitem) getXulDomContainer().getDocumentRoot().getElementById( "file-context-lock" ); //$NON-NLS-1$
deleteFileMenuItem = (XulMenuitem) getXulDomContainer().getDocumentRoot().getElementById( "file-context-delete" ); //$NON-NLS-1$
renameFileMenuItem = (XulMenuitem) getXulDomContainer().getDocumentRoot().getElementById( "file-context-rename" ); //$NON-NLS-1$
messageBox = (XulMessageBox) document.createElement( "messagebox" ); //$NON-NLS-1$
createBindings();
} catch ( Exception e ) {
throw new RuntimeException( e );
}
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:35,代码来源:RepositoryLockController.java
示例9: start
import org.pentaho.ui.xul.impl.XulEventHandler; //导入依赖的package包/类
@SuppressWarnings("unchecked")
public void start(ApplicationContext context) throws XulException {
XulDomContainer container;
//check to see if they've specified an alternate resource bundle
String bundleStr = configuration.getResourceBundle();
ResourceBundle bundle = null;
if(bundleStr != null){
try{
bundle = ResourceBundle.getBundle(bundleStr);
} catch (MissingResourceException e){
logger.error("Could not load Resource Bundle: "+bundleStr); //$NON-NLS-1$
}
}
//Set the look and feel based on configuration
setLAF();
if(bundle != null){
container = xulLoader.loadXul("org/pentaho/aggdes/ui/resources/mainFrame.xul", bundle); //$NON-NLS-1$
} else {
container = xulLoader.loadXul("org/pentaho/aggdes/ui/resources/mainFrame.xul"); //$NON-NLS-1$
}
//generically register all Spring-initialized XulEventHandlers
Map handlerMap = context.getBeansOfType(XulEventHandler.class);
for(Object handler : handlerMap.values()) {
container.addEventHandler((XulEventHandler)handler);
}
xulRunner.addContainer(container);
xulRunner.initialize();
xulRunner.start();
}
开发者ID:pentaho,项目名称:pentaho-aggdesigner,代码行数:35,代码来源:UIMain.java
示例10: setUp
import org.pentaho.ui.xul.impl.XulEventHandler; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
controller = new ConnectionController();
context = new JUnit4Mockery();
doc = context.mock(Document.class);
container = context.mock(XulDomContainer.class);
dataHandler = context.mock(XulEventHandler.class);
model = context.mock(ConnectionModel.class);
controller.setConnectionModel(model);
workspace = new Workspace();
controller.setWorkspace(workspace);
outputService = context.mock(OutputService.class);
controller.setOutputService(outputService);
aSchemaProvider = context.mock(SchemaProviderUiExtension.class);
cubeNames = Arrays.asList("testCube1", "testCube2");
providerModel = context.mock(SchemaModel.class);
// need some expectations here as setXulDomContainer calls getDocumentRoot on the container
context.checking(new Expectations() {
{
one(container).getDocumentRoot();
will(returnValue(doc));
allowing(doc).invokeLater(with(any(Runnable.class))); //don't care if the controller uses invokeLater or not
}
});
controller.setXulDomContainer(container);
controller.setDataHandler(dataHandler);
}
开发者ID:pentaho,项目名称:pentaho-aggdesigner,代码行数:30,代码来源:ConnectionControllerTest.java
示例11: getEventHandlers
import org.pentaho.ui.xul.impl.XulEventHandler; //导入依赖的package包/类
@Override
public List<XulEventHandler> getEventHandlers() {
// TODO Auto-generated method stub
return null;
}
开发者ID:HiromuHota,项目名称:pdi-git-plugin,代码行数:6,代码来源:GitPerspective.java
示例12: getEventHandlers
import org.pentaho.ui.xul.impl.XulEventHandler; //导入依赖的package包/类
public List<XulEventHandler> getEventHandlers() {
return handlers;
}
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:4,代码来源:AbstractRepositoryExplorerUISupport.java
示例13: getEventHandlers
import org.pentaho.ui.xul.impl.XulEventHandler; //导入依赖的package包/类
protected List<XulEventHandler> getEventHandlers(){
return Collections.singletonList((XulEventHandler) this);
}
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:4,代码来源:BaseStepXulDialog.java
示例14: getEventHandlers
import org.pentaho.ui.xul.impl.XulEventHandler; //导入依赖的package包/类
public List<XulEventHandler> getEventHandlers() {
return null;
}
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:4,代码来源:MainSpoonPerspective.java
示例15: getEventHandlers
import org.pentaho.ui.xul.impl.XulEventHandler; //导入依赖的package包/类
@Override
public List<XulEventHandler> getEventHandlers() {
return null;
}
开发者ID:jjeb,项目名称:kettle-trunk,代码行数:5,代码来源:StarModelerPerspective.java
示例16: getEventHandlers
import org.pentaho.ui.xul.impl.XulEventHandler; //导入依赖的package包/类
public List<XulEventHandler> getEventHandlers() {
return Collections.singletonList( (XulEventHandler) perspectiveController);
}
开发者ID:pentaho,项目名称:pdi-agile-bi-plugin,代码行数:4,代码来源:AgileBiInstaPerspective.java
示例17: getEventHandlers
import org.pentaho.ui.xul.impl.XulEventHandler; //导入依赖的package包/类
public List<XulEventHandler> getEventHandlers() {
return Collections.singletonList( (XulEventHandler) perspectiveController);
}
开发者ID:pentaho,项目名称:pdi-agile-bi-plugin,代码行数:4,代码来源:AgileBiModelerPerspective.java
示例18: getEventHandlers
import org.pentaho.ui.xul.impl.XulEventHandler; //导入依赖的package包/类
public List<XulEventHandler> getEventHandlers() {
return Collections.singletonList( (XulEventHandler) controller);
}
开发者ID:pentaho,项目名称:pdi-agile-bi-plugin,代码行数:4,代码来源:AgileBiVisualizationPerspective.java
示例19: getController
import org.pentaho.ui.xul.impl.XulEventHandler; //导入依赖的package包/类
public XulEventHandler getController() {
return browser;
}
开发者ID:pentaho,项目名称:pdi-agile-bi-plugin,代码行数:4,代码来源:AnalyzerVisualizationMeta.java
示例20: getController
import org.pentaho.ui.xul.impl.XulEventHandler; //导入依赖的package包/类
public XulEventHandler getController() {
return controller;
}
开发者ID:pentaho,项目名称:pdi-agile-bi-plugin,代码行数:4,代码来源:PRPTMeta.java
注:本文中的org.pentaho.ui.xul.impl.XulEventHandler类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论