@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$ }
@Override @Bindable public String getValidImage() { return "images/sm_folder_icon.png"; //$NON-NLS-1$ }
@Bindable public void setParentTable( JoinTableModel parentTable ) { this.parentTable = parentTable; } }
@Bindable public void setOozieUrl( String oozieUrl ) { String prev = this.oozieUrl; this.oozieUrl = oozieUrl; pcs.firePropertyChange( OOZIE_URL, prev, this.oozieUrl ); }
@Bindable public void setOozieWorkflowConfig( String oozieWorkflowConfig ) { String prev = this.oozieWorkflowConfig; this.oozieWorkflowConfig = oozieWorkflowConfig; pcs.firePropertyChange( OOZIE_WORKFLOW_CONFIG, prev, this.oozieWorkflowConfig ); }
@Bindable public void setModeToggleLabel( String modeToggleLabel ) { String prev = this.modeToggleLabel; this.modeToggleLabel = modeToggleLabel; firePropertyChange( "modeToggleLabel", prev, modeToggleLabel ); }
@Bindable public void setFormatstring( List<String> formatstring ) { List<String> prevXulMenuList = this.formatstring; this.formatstring = formatstring; this.firePropertyChange( "formatstring", prevXulMenuList, formatstring ); }
@Bindable public void setColumnName( String name ) { String prevName = colName; if ( prevName == null && "".equals( name ) ) { return; } if ( prevName != null && name != null && prevName.equals( name ) ) { return; } colName = name; this.firePropertyChange( "columnName", prevName, colName ); //$NON-NLS-1$ }
@Bindable public void setCaptionColumnName( String name ) { String prevName = captionColName; if ( prevName == null && "".equals( name ) ) { return; } if ( prevName != null && name != null && prevName.equals( name ) ) { return; } captionColName = name; this.firePropertyChange( "captionColumnName", prevName, captionColName ); //$NON-NLS-1$ }
@Bindable public void setSourceName( String sourceName ) { this.sourceName = sourceName; this.firePropertyChange( "sourceName", null, sourceName ); //$NON-NLS-1$ }
@Bindable public void setCurrentModelerPerspective( ModelerPerspective currentModelerPerspective ) { this.currentModelerPerspective = currentModelerPerspective; firePropertyChange( "currentModelerPerspective", null, currentModelerPerspective ); }
@Bindable public void setPossibleAggregations( Vector aggTypes ) { Vector previous = this.aggTypes; this.aggTypes = aggTypes; this.firePropertyChange( "possibleAggregations", previous, aggTypes ); }
@Bindable public void setClassname( String classname ) { if ( this.classname == null || !this.classname.equals( classname ) ) { String oldClassname = this.classname; this.classname = classname; if ( !suppressEvents ) { this.firePropertyChange( "classname", oldClassname, classname ); //$NON-NLS-1$ } } }
@Bindable @Override public void setChildren( List<IAvailableItem> children ) { this.children = children; fireCollectionChanged(); }
@Bindable public void setDefaultAggregation( AggregationType aggType ) { AggregationType previousAggregation = this.defaultAggregation; this.defaultAggregation = aggType; this.firePropertyChange( "defaultAggregation", previousAggregation, defaultAggregation ); }