org.pentaho.ui.xul.containers.XulTabs Java Examples
The following examples show how to use
org.pentaho.ui.xul.containers.XulTabs.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BeamPerspective.java From kettle-beam with Apache License 2.0 | 5 votes |
BeamPerspective() throws XulException { KettleXulLoader loader = new KettleXulLoader(); loader.registerClassLoader( getClass().getClassLoader() ); container = loader.loadXul( "beam_perspective.xul", resourceBundle ); try { document = container.getDocumentRoot(); tabs = (XulTabs) document.getElementById( "tabs" ); panels = (XulTabpanels) document.getElementById( "tabpanels" ); tabbox = (XulTabbox) tabs.getParent(); container.addEventHandler( this ); // addAdminTab(); /* * To make compatible with webSpoon * Create a temporary parent for the UI and then call layout(). * A different parent will be assigned to the UI in SpoonPerspectiveManager.PerspectiveManager.performInit(). SwtDeck deck = (SwtDeck) Spoon.getInstance().getXulDomContainer().getDocumentRoot().getElementById( "canvas-deck" ); box = deck.createVBoxCard(); getUI().setParent( (Composite) box.getManagedObject() ); getUI().layout(); */ } catch ( Exception e ) { logger.logError( "Error initializing perspective", e ); } }
Example #2
Source File: Neo4jPerspective.java From knowbi-pentaho-pdi-neo4j-output with Apache License 2.0 | 5 votes |
Neo4jPerspective() throws XulException { KettleXulLoader loader = new KettleXulLoader(); loader.registerClassLoader( getClass().getClassLoader() ); container = loader.loadXul( "neo4j_perspective.xul", resourceBundle ); try { document = container.getDocumentRoot(); tabs = (XulTabs) document.getElementById( "tabs" ); panels = (XulTabpanels) document.getElementById( "tabpanels" ); tabbox = (XulTabbox) tabs.getParent(); container.addEventHandler( this ); connectionFactory = new MetaStoreFactory<>( NeoConnection.class, Spoon.getInstance().getMetaStore(), Neo4jDefaults.NAMESPACE ); modelsFactory = new MetaStoreFactory<>( GraphModel.class, Spoon.getInstance().getMetaStore(), Neo4jDefaults.NAMESPACE ); // addAdminTab(); /* * To make compatible with webSpoon * Create a temporary parent for the UI and then call layout(). * A different parent will be assigned to the UI in SpoonPerspectiveManager.PerspectiveManager.performInit(). */ SwtDeck deck = (SwtDeck) Spoon.getInstance().getXulDomContainer().getDocumentRoot().getElementById( "canvas-deck" ); box = deck.createVBoxCard(); getUI().setParent( (Composite) box.getManagedObject() ); getUI().layout(); } catch ( Exception e ) { logger.logError( "Error initializing perspective", e ); } }