org.pentaho.ui.xul.components.XulLabel Java Examples
The following examples show how to use
org.pentaho.ui.xul.components.XulLabel.
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: AbstractWizardStep.java From pentaho-reporting with GNU Lesser General Public License v2.1 | 6 votes |
/** * @throws XulException */ public void createPresentationComponent( final XulDomContainer mainWizardContainer ) throws XulException { final XulVbox stepContainer = (XulVbox) mainWizardContainer.getDocumentRoot().getElementById( STEP_CONTAINER ); XulHbox row = (XulHbox) mainWizardContainer.getDocumentRoot().createElement( XUL_HBOX_TYPE ); // Create and add the activeImage to the row (goes in the first column) stepImage = (XulImage) mainWizardContainer.getDocumentRoot().createElement( XUL_IMAGE_TYPE ); stepImage.setSrc( STEP_IMAGE_SRC ); stepImage.setId( this.getStepName() ); stepImage.setVisible( false ); row.addChild( stepImage ); // Create and add the text label to the row (goes in the second column) stepLabel = (XulLabel) mainWizardContainer.getDocumentRoot().createElement( XUL_LABEL_TYPE ); stepLabel.setValue( this.getStepName() ); stepLabel.setFlex( 1 ); stepLabel.setDisabled( true ); row.addChild( stepLabel ); stepContainer.addChild( row ); }
Example #2
Source File: MainController.java From pentaho-aggdesigner with GNU General Public License v2.0 | 6 votes |
public void helpAboutLoad() { // TODO - Use VersionHelper to get version information from the MANIFEST.MF file // and display the proper version and copyright information XulLabel helpAboutVersionLabel = (XulLabel) document.getElementById("aboutVersion"); Properties versionProps = new Properties(); try { InputStream is = getClass().getResourceAsStream("/version.properties"); if (is == null) { logger.error("Failed to locate version.properties on classpath"); } else { versionProps.load(is); } } catch (IOException e) { if (logger.isErrorEnabled()) { logger.error("an exception occurred", e); } return; } helpAboutVersionLabel.setValue(versionProps.getProperty("version")); XulLabel helpAboutCopyrightLabel = (XulLabel) document.getElementById( "aboutCopyright" ); helpAboutCopyrightLabel.setValue( Messages.getString( "about_copyright", "" + ( (new Date() ).getYear()+1900 ) ) ); }
Example #3
Source File: MainController.java From mql-editor with GNU Lesser General Public License v2.1 | 5 votes |
@Bindable public static void showErrorDialog( String message ) { if ( errorDialog == null ) { throw new IllegalStateException( "Error dialog has not been loaded yet" ); } else { XulLabel msg = (XulLabel) errorDialog.getElementById( "errorLabel" ); msg.setValue( message ); errorDialog.show(); } }
Example #4
Source File: DataHandler.java From pentaho-kettle with Apache License 2.0 | 4 votes |
protected void getControls() { // Not all of these controls are created at the same time.. that's OK, for now, just check // each one for null before using. dialogDeck = (XulDeck) document.getElementById( "dialog-panel-deck" ); deckOptionsBox = (XulListbox) document.getElementById( "deck-options-list" ); connectionBox = (XulListbox) document.getElementById( "connection-type-list" ); databaseDialectList = (XulMenuList) document.getElementById( "database-dialect-list" ); accessBox = (XulListbox) document.getElementById( "access-type-list" ); connectionNameBox = (XulTextbox) document.getElementById( "connection-name-text" ); hostNameBox = (XulTextbox) document.getElementById( "server-host-name-text" ); databaseNameBox = (XulTextbox) document.getElementById( "database-name-text" ); portNumberBox = (XulTextbox) document.getElementById( "port-number-text" ); userNameBox = (XulTextbox) document.getElementById( "username-text" ); passwordBox = (XulTextbox) document.getElementById( "password-text" ); dataTablespaceBox = (XulTextbox) document.getElementById( "data-tablespace-text" ); indexTablespaceBox = (XulTextbox) document.getElementById( "index-tablespace-text" ); serverInstanceBox = (XulTextbox) document.getElementById( "instance-text" ); serverNameBox = (XulTextbox) document.getElementById( "server-name-text" ); customUrlBox = (XulTextbox) document.getElementById( "custom-url-text" ); customDriverClassBox = (XulTextbox) document.getElementById( "custom-driver-class-text" ); languageBox = (XulTextbox) document.getElementById( "language-text" ); warehouseBox = (XulTextbox) document.getElementById( "warehouse-text" ); systemNumberBox = (XulTextbox) document.getElementById( "system-number-text" ); clientBox = (XulTextbox) document.getElementById( "client-text" ); doubleDecimalSeparatorCheck = (XulCheckbox) document.getElementById( "decimal-separator-check" ); resultStreamingCursorCheck = (XulCheckbox) document.getElementById( "result-streaming-check" ); webAppName = (XulTextbox) document.getElementById( "web-application-name-text" ); poolingCheck = (XulCheckbox) document.getElementById( "use-pool-check" ); clusteringCheck = (XulCheckbox) document.getElementById( "use-cluster-check" ); clusterParameterDescriptionLabel = (XulLabel) document.getElementById( "cluster-parameter-description-label" ); poolSizeLabel = (XulLabel) document.getElementById( "pool-size-label" ); poolSizeBox = (XulTextbox) document.getElementById( "pool-size-text" ); maxPoolSizeLabel = (XulLabel) document.getElementById( "max-pool-size-label" ); maxPoolSizeBox = (XulTextbox) document.getElementById( "max-pool-size-text" ); poolParameterTree = (XulTree) document.getElementById( "pool-parameter-tree" ); clusterParameterTree = (XulTree) document.getElementById( "cluster-parameter-tree" ); optionsParameterTree = (XulTree) document.getElementById( "options-parameter-tree" ); poolingDescription = (XulTextbox) document.getElementById( "pooling-description" ); poolingParameterDescriptionLabel = (XulLabel) document.getElementById( "pool-parameter-description-label" ); poolingDescriptionLabel = (XulLabel) document.getElementById( "pooling-description-label" ); supportBooleanDataType = (XulCheckbox) document.getElementById( "supports-boolean-data-type" ); supportTimestampDataType = (XulCheckbox) document.getElementById( "supports-timestamp-data-type" ); quoteIdentifiersCheck = (XulCheckbox) document.getElementById( "quote-identifiers-check" ); lowerCaseIdentifiersCheck = (XulCheckbox) document.getElementById( "force-lower-case-check" ); upperCaseIdentifiersCheck = (XulCheckbox) document.getElementById( "force-upper-case-check" ); preserveReservedCaseCheck = (XulCheckbox) document.getElementById( "preserve-reserved-case" ); strictBigNumberInterpretaion = (XulCheckbox) document.getElementById( "strict-bignum-interpretation" ); preferredSchemaName = (XulTextbox) document.getElementById( "preferred-schema-name-text" ); sqlBox = (XulTextbox) document.getElementById( "sql-text" ); useIntegratedSecurityCheck = (XulCheckbox) document.getElementById( "use-integrated-security-check" ); acceptButton = (XulButton) document.getElementById( "general-datasource-window_accept" ); cancelButton = (XulButton) document.getElementById( "general-datasource-window_cancel" ); testButton = (XulButton) document.getElementById( "test-button" ); noticeLabel = (XulLabel) document.getElementById( "notice-label" ); jdbcAuthMethod = (XulMenuList) document.getElementById( "redshift-auth-method-list" ); iamAccessKeyId = (XulTextbox) document.getElementById( "iam-access-key-id" ); iamSecretKeyId = (XulTextbox) document.getElementById( "iam-secret-access-key" ); iamSessionToken = (XulTextbox) document.getElementById( "iam-session-token" ); iamProfileName = (XulTextbox) document.getElementById( "iam-profile-name" ); namedClusterList = (XulMenuList) document.getElementById( "named-cluster-list" ); if ( portNumberBox != null && serverInstanceBox != null ) { if ( Boolean.parseBoolean( serverInstanceBox.getAttributeValue( "shouldDisablePortIfPopulated" ) ) ) { serverInstanceBox.addPropertyChangeListener( new PropertyChangeListener() { @Override public void propertyChange( PropertyChangeEvent evt ) { if ( "value".equals( evt.getPropertyName() ) ) { disablePortIfInstancePopulated(); } } } ); } } }