Package org.pentaho.gwt.widgets.client.buttons

Examples of org.pentaho.gwt.widgets.client.buttons.ThemeableImageButton


    labelAndButtonsPanel.add( new Label( Messages.getString( "usersColon" ) ) );
    hSpacer = new SimplePanel();
    hSpacer.setWidth( "100%" );
    labelAndButtonsPanel.add( hSpacer );
    labelAndButtonsPanel.setCellWidth( hSpacer, "100%" );
    newUserButton = new ThemeableImageButton( addButtonStyles, null, Messages.getString( "new" ) );
    labelAndButtonsPanel.add( newUserButton );
    hSpacer = new SimplePanel();
    hSpacer.setWidth( "7px" );
    labelAndButtonsPanel.add( hSpacer );
    deleteUserButton = new ThemeableImageButton( removeButtonStyles, null, Messages.getString( "delete" ) );
    labelAndButtonsPanel.add( deleteUserButton );

    usersListBox = new ListBox( true );
    usersListBox.addStyleName( "users-roles-list" );
    availablePanel.add( usersListBox );
    usersListBox.setVisibleItemCount( 20 );

    hSpacer = new SimplePanel();
    hSpacer.setWidth( "24px" );
    mainUsersPanel.add( hSpacer );

    VerticalPanel detailsPanel = new VerticalPanel();
    mainUsersPanel.add( detailsPanel );
    mainUsersPanel.setCellWidth( detailsPanel, "100%" );
    hSpacer = new SimplePanel();
    hSpacer.setHeight( "32px" );
    detailsPanel.add( hSpacer );

    detailsPanel.add( new Label( Messages.getString( "password" ) + ":" ) );

    userPasswordTextBox = new PasswordTextBox();
    userPasswordTextBox.setEnabled( false );
    userPasswordTextBox.setWidth( "200px" );
    HorizontalPanel passwordPanel = new HorizontalPanel();
    passwordPanel.add( userPasswordTextBox );
    hSpacer = new SimplePanel();
    hSpacer.setWidth( "10px" );
    passwordPanel.add( hSpacer );
    editPasswordButton = new Button( Messages.getString( "edit" ) + "..." );
    editPasswordButton.setStylePrimaryName( "pentaho-button" );
    editPasswordButton.setEnabled( false );
    passwordPanel.add( editPasswordButton );
    detailsPanel.add( passwordPanel );

    hSpacer = new SimplePanel();
    hSpacer.setHeight( "15px" );
    detailsPanel.add( hSpacer );

    Label roleLabel = new Label( Messages.getString( "roles" ) );
    roleLabel.setStyleName( "pentaho-fieldgroup-minor" );
    detailsPanel.add( roleLabel );

    hSpacer = new SimplePanel();
    hSpacer.setHeight( "15px" );
    detailsPanel.add( hSpacer );

    HorizontalPanel groupsPanel = new HorizontalPanel();
    detailsPanel.add( groupsPanel );

    VerticalPanel availableRolesPanel = new VerticalPanel();
    groupsPanel.add( availableRolesPanel );
    availableRolesPanel.add( new Label( Messages.getString( "available" ) + ":" ) );
    availableRolesListBox = new ListBox( true );
    availableRolesPanel.add( availableRolesListBox );
    availableRolesListBox.setVisibleItemCount( 20 );
    availableRolesListBox.addStyleName( "users-roles-selection-list" );

    VerticalPanel vSpacer = new VerticalPanel();
    vSpacer.setWidth( "15px" );
    groupsPanel.add( vSpacer );

    VerticalPanel arrowsPanel = new VerticalPanel();
    groupsPanel.add( arrowsPanel );
    arrowsPanel.setWidth( "35px" );

    hSpacer = new SimplePanel();
    hSpacer.setHeight( "110px" );
    arrowsPanel.add( hSpacer );

    addRoleButton = new ThemeableImageButton( accumAddButtonStyles, null, null );
    arrowsPanel.add( addRoleButton );
    hSpacer = new SimplePanel();
    hSpacer.setHeight( "10px" );
    arrowsPanel.add( hSpacer );

    removeRoleButton = new ThemeableImageButton( accumRemoveButtonStyles, null, null );
    arrowsPanel.add( removeRoleButton );
    hSpacer = new SimplePanel();
    hSpacer.setHeight( "30px" );
    arrowsPanel.add( hSpacer );

    addAllRolesButton = new ThemeableImageButton( accumAddAllButtonStyles, null, null );
    arrowsPanel.add( addAllRolesButton );
    hSpacer = new SimplePanel();
    hSpacer.setHeight( "10px" );
    arrowsPanel.add( hSpacer );

    removeAllRolesButton = new ThemeableImageButton( accumRemoveAllButtonStyles, null, null );
    arrowsPanel.add( removeAllRolesButton );

    VerticalPanel selectedRolesPanel = new VerticalPanel();
    groupsPanel.add( selectedRolesPanel );
    selectedRolesPanel.add( new Label( Messages.getString( "selected" ) + ":" ) );
View Full Code Here


    labelAndButtonsPanel.add( new Label( Messages.getString( "roles" ) ) );
    hSpacer = new SimplePanel();
    hSpacer.setWidth( "100%" );
    labelAndButtonsPanel.add( hSpacer );
    labelAndButtonsPanel.setCellWidth( hSpacer, "100%" );
    newRoleButton = new ThemeableImageButton( addButtonStyles, null, Messages.getString( "new" ) );
    labelAndButtonsPanel.add( newRoleButton );
    hSpacer = new SimplePanel();
    hSpacer.setWidth( "7px" );
    labelAndButtonsPanel.add( hSpacer );
    deleteRoleButton = new ThemeableImageButton( removeButtonStyles, null, Messages.getString( "delete" ) );
    labelAndButtonsPanel.add( deleteRoleButton );

    rolesListBox = new ListBox( true );
    availablePanel.add( rolesListBox );
    rolesListBox.setVisibleItemCount( 20 );
    rolesListBox.addStyleName( "users-roles-list" );

    hSpacer = new SimplePanel();
    hSpacer.setWidth( "24px" );
    mainRolesPanel.add( hSpacer );

    VerticalPanel detailsPanel = new VerticalPanel();
    mainRolesPanel.add( detailsPanel );
    mainRolesPanel.setCellWidth( detailsPanel, "100%" );

    hSpacer = new SimplePanel();
    hSpacer.setHeight( "15px" );
    detailsPanel.add( hSpacer );

    rolesPermissionsPanel = new PermissionsPanel( rolesListBox );
    detailsPanel.add( rolesPermissionsPanel );

    usersLabelPanel = new VerticalPanel();
    Label usersLabel = new Label( Messages.getString( "users" ) );
    usersLabel.setStyleName( "pentaho-fieldgroup-minor" );
    hSpacer = new SimplePanel();
    hSpacer.setHeight( "15px" );
    usersLabelPanel.add( hSpacer );
    usersLabelPanel.add( usersLabel );
    hSpacer = new SimplePanel();
    hSpacer.setHeight( "15px" );
    usersLabelPanel.add( hSpacer );
    detailsPanel.add( usersLabelPanel );

    usersPanel = new HorizontalPanel();
    detailsPanel.add( usersPanel );

    VerticalPanel availableMembersPanel = new VerticalPanel();
    usersPanel.add( availableMembersPanel );

    availableMembersPanel.add( new Label( Messages.getString( "available" ) + ":" ) );
    availableMembersListBox = new ListBox( true );
    availableMembersPanel.add( availableMembersListBox );
    availableMembersListBox.setVisibleItemCount( 20 );
    availableMembersListBox.addStyleName( "users-roles-selection-list" );

    VerticalPanel vSpacer = new VerticalPanel();
    vSpacer.setWidth( "15px" );
    usersPanel.add( vSpacer );

    VerticalPanel arrowsPanel = new VerticalPanel();
    usersPanel.add( arrowsPanel );
    arrowsPanel.setWidth( "35px" );

    hSpacer = new SimplePanel();
    hSpacer.setHeight( "80px" );
    arrowsPanel.add( hSpacer );

    addUserButton = new ThemeableImageButton( accumAddButtonStyles, null, null );
    arrowsPanel.add( addUserButton );
    hSpacer = new SimplePanel();
    hSpacer.setHeight( "10px" );
    arrowsPanel.add( hSpacer );

    removeUserButton = new ThemeableImageButton( accumRemoveButtonStyles, null, null );
    arrowsPanel.add( removeUserButton );
    hSpacer = new SimplePanel();
    hSpacer.setHeight( "30px" );
    arrowsPanel.add( hSpacer );

    addAllUsersButton = new ThemeableImageButton( accumAddAllButtonStyles, null, null );
    arrowsPanel.add( addAllUsersButton );
    hSpacer = new SimplePanel();
    hSpacer.setHeight( "10px" );
    arrowsPanel.add( hSpacer );

    removeAllUsersButton = new ThemeableImageButton( accumRemoveAllButtonStyles, null, null );
    arrowsPanel.add( removeAllUsersButton );

    VerticalPanel selectedMembersPanel = new VerticalPanel();
    usersPanel.add( selectedMembersPanel );
    selectedMembersPanel.add( new Label( Messages.getString( "selected" ) + ":" ) );
View Full Code Here

TOP

Related Classes of org.pentaho.gwt.widgets.client.buttons.ThemeableImageButton

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.