@Bindable public void closeDialog() { lastClicked = CANCELLED; this.dialog.hide(); Spoon.getInstance().refreshTree(); // listeners may remove themselves, old-style iteration for ( int i = 0; i < listeners.size(); i++ ) { listeners.get( i ).onDialogCancel(); } }
/** * @return the id of the element responsible for toggling between "Quick Setup" and "Advanced Options" modes */ @Bindable public String getModeToggleLabelElementId() { return MODE_TOGGLE_LABEL; }
@Bindable public void setSelectedFields( Object[] aFields ) { IAvailableItem[] f = new IAvailableItem[aFields.length]; for ( int i = 0; i < aFields.length; i++ ) { if ( aFields[i] instanceof AvailableField ) { f[i] = (AvailableField) aFields[i]; } else if ( aFields[i] instanceof AvailableTable ) { f[i] = (AvailableTable) aFields[i]; } } selectedFields = f; }
@Bindable public Object[] getSelectedFields() { if ( selectedFields == null ) { selectedFields = new IAvailableItem[] {}; } return selectedFields; }
/** * Returns the Mondrian Schema constant (as String) that represents this role See: * http://mondrian.pentaho.com/documentation/schema.php#Time_dimensions and * http://mondrian.pentaho.com/api/mondrian/olap/LevelType.html **/ @Bindable public String getMondrianAttributeValue() { return "Time" + this.name; }
@Override @Bindable public String getValidImage() { return "images/sm_folder_icon.png"; //$NON-NLS-1$ }
/** * @return the aggregationList */ @Bindable public List<AggregationType> getAggregationList() { return aggregationList; }
@Bindable @Override public String getType() { return type; }
@Bindable public IDatasourceInfo getSelectedDatasource() { return selectedDatasource; } }
@Override @Bindable public String getValidImage() { return "images/sm_folder_icon.png"; //$NON-NLS-1$ }
@Bindable public void setParentTable( JoinTableModel parentTable ) { this.parentTable = parentTable; } }
@Override @Bindable public Set getDatasources() { return datasources; }
@Override @Bindable public boolean isReportingOnlyValid() { return reportingOnlyValid; }
@Override @Bindable public String getValidImage() { return IMAGE; }
@Override @Bindable public String getValidImage() { return "images/sm_hierarchy_icon.png"; //$NON-NLS-1$ }
@Bindable public void setSelectedFieldsChanged( Object selected ) { if ( selected != null && selected instanceof AvailableField ) { selectedFields = new IAvailableItem[] { (IAvailableItem) selected }; } }
@Override @Bindable public String getValidImage() { return IMAGE; //$NON-NLS-1$ }
/** * This is the format string that describes only this level's column values. This appears as the last part in * AnalyzerDateFormatAnnotations **/ @Bindable public String getTimeLevelFormat() { return timeLevelFormat; }
@Override @Bindable public String getValidImage() { return IMAGE; }
@Override @Bindable public String getValidImage() { return "images/sm_folder_icon.png"; //$NON-NLS-1$ }