public void pushCache() { // Database type: if ( connectionBox != null ) { Object connection = connectionBox.getSelectedItem(); if ( connection != null ) { cache.setDatabaseType( (String) connection ); } } getConnectionSpecificInfo( cache ); }
@Bindable public void addSelectedTable() { if ( this.availableTables.getSelectedItem() != null ) { List<JoinTableModel> selected = new ArrayList<JoinTableModel>(); for ( Object obj : this.availableTables.getSelectedItems() ) { selected.add( (JoinTableModel) obj ); } this.joinGuiModel.addSelectedTables( selected ); } checkValidState(); }
public void updatePermission() { UIRepositoryObjectAcl acl = (UIRepositoryObjectAcl) userRoleList.getSelectedItem(); if ( acl == null ) { throw new IllegalStateException( BaseMessages.getString( PKG, "PermissionsController.NoSelectedRecipient" ) ); } acl.setPermissionSet( permissionsCheckboxHandler.processCheckboxes() ); clearSelectedObjAcl(); viewAclsModel.updateAcl( acl ); }
@Bindable public void removeSelectedTable() { if ( this.selectedTables.getSelectedItem() != null ) { List<JoinTableModel> selected = new ArrayList<JoinTableModel>(); for ( Object obj : this.selectedTables.getSelectedItems() ) { selected.add( (JoinTableModel) obj ); } this.joinGuiModel.removeSelectedTables( selected ); } checkValidState(); checkExistingJoinsStillValid(); }
Iterator<String> keys = extraOptions.keySet().iterator(); Object connection = connectionBox.getSelectedItem(); String currentType = null;
accessBox = (XulListbox) document.getElementById( "access-type-list" ); Object connectionKey = DataHandler.connectionNametoID.get( connectionBox.getSelectedItem() ); String databaseName = null; try { DatabaseInterface database = DataHandler.connectionMap.get( connectionBox.getSelectedItem() ); Object accessKey = accessBox.getSelectedItem(); int access = DatabaseMeta.getAccessType( (String) accessKey );
Object key = connectionBox.getSelectedItem(); Object accessKey = accessBox.getSelectedItem(); accessBox.removeItems(); if ( accessBox.getSelectedItem() == null ) { accessBox.setSelectedItem( DatabaseMeta.getAccessTypeDescLong( acc[0] ) );
Object key = connectionBox.getSelectedItem();
Object connection = connectionBox.getSelectedItem(); if ( connection != null ) { meta.setDatabaseType( (String) connection ); Object access = accessBox.getSelectedItem(); if ( access != null ) { meta.setAccessType( DatabaseMeta.getAccessType( (String) access ) );
@Override public Boolean sourceToTarget( final Integer value ) { boolean active = false; if ( value > -1 ) { LogicalModelSummary summary = (LogicalModelSummary) datasourceListbox.getSelectedItem(); if ( datasourceInfos.size() > 0 ) { for ( int i = 0; i < datasourceInfos.size(); i++ ) { IDatasourceInfo datasourceInfo = datasourceInfos.get( i ); if ( datasourceInfo.getId().equals( summary.getDomainId() ) ) { active = datasourceInfo.isEditable(); break; } } } } return active && administrator; }
@Override public Boolean sourceToTarget( final Integer value ) { boolean active = false; if ( value > -1 ) { LogicalModelSummary summary = (LogicalModelSummary) datasourceListbox.getSelectedItem(); if ( datasourceInfos.size() > 0 ) { for ( int i = 0; i < datasourceInfos.size(); i++ ) { IDatasourceInfo datasourceInfo = datasourceInfos.get( i ); if ( datasourceInfo.getId().equals( summary.getDomainId() ) ) { active = datasourceInfo.isEditable(); break; } } } } return active && administrator; }