com.sas.dataselectors.qualifiers
Class QualifiersEditorFactory

com.sas.dataselectors.qualifiers.QualifiersEditorFactory

public class QualifiersEditorFactory

Creates instances of QualifiersEditorInterface for the different combinations of UIs (JSP or Swing) and models (BusinessModel or BusinessQuery).


Field Summary
static int BUSINESS_MODEL
           
static int BUSINESS_QUERY
           
static int SERVLET
           
static int SWING
           
 
Constructor Summary
QualifiersEditorFactory()
           
 
Method Summary
static com.sas.swing.dataselectors.editors.QualifiersEditorInterface newEditor(int editorType, int modelType, java.lang.Object model, java.lang.String title)
          Create a new editor.
static com.sas.swing.dataselectors.editors.QualifiersEditorInterface newSwingEditor(com.sas.iquery.metadata.business.BusinessModel businessModel, java.lang.String title)
          Create a new Swing editor for a BusinessModel.
static com.sas.swing.dataselectors.editors.QualifiersEditorInterface newSwingEditor(com.sas.iquery.metadata.business.BusinessQuery businessQuery, java.lang.String title)
          Create a new Swing editor for a BusinessQuery.
static void setProperties(com.sas.swing.dataselectors.editors.QualifiersEditorInterface editor, java.lang.String key, java.util.Locale locale)
          Set localized properties on a QualifiersEditor
 

Field Detail

SWING

public static final int SWING
See Also:
Constant Field Values

SERVLET

public static final int SERVLET
See Also:
Constant Field Values

BUSINESS_MODEL

public static final int BUSINESS_MODEL
See Also:
Constant Field Values

BUSINESS_QUERY

public static final int BUSINESS_QUERY
See Also:
Constant Field Values
Constructor Detail

QualifiersEditorFactory

public QualifiersEditorFactory()
Method Detail

newEditor

public static com.sas.swing.dataselectors.editors.QualifiersEditorInterface newEditor(int editorType,
                                                                                      int modelType,
                                                                                      java.lang.Object model,
                                                                                      java.lang.String title)
Create a new editor.

Parameters:
editorType - The GUI type of editor. Either SWING or SERVLET
modelType - The type of model. Either BUSINESS_MODEL or BUSINESS_QUERY
model - The model, matching the modelType, either a BusinessModel or a BusinessQuery
title - The title to display on the editor dialog.
Returns:
QualifiersEditorInterface

newSwingEditor

public static com.sas.swing.dataselectors.editors.QualifiersEditorInterface newSwingEditor(com.sas.iquery.metadata.business.BusinessQuery businessQuery,
                                                                                           java.lang.String title)
Create a new Swing editor for a BusinessQuery.

Parameters:
businessQuery - The model for the editor.
title - The title to display on the editor dialog.
Returns:
QualifiersEditorInterface

newSwingEditor

public static com.sas.swing.dataselectors.editors.QualifiersEditorInterface newSwingEditor(com.sas.iquery.metadata.business.BusinessModel businessModel,
                                                                                           java.lang.String title)
Create a new Swing editor for a BusinessModel.

Parameters:
businessModel - The model for the editor.
title - The title to display on the editor dialog.
Returns:
QualifiersEditorInterface

setProperties

public static void setProperties(com.sas.swing.dataselectors.editors.QualifiersEditorInterface editor,
                                 java.lang.String key,
                                 java.util.Locale locale)
Set localized properties on a QualifiersEditor

Parameters:
editor - The editor to set the properties on
key - The key to find the properties. QualifiersEditorBQ or QualifiersEditorBM
locale - The locale for the resources.



Copyright © 2009 SAS Institute Inc. All Rights Reserved.