public interface IAssociationDialogAPI extends IDialogAPI
| Modifier and Type | Field and Description |
|---|---|
static int |
COLUMN_COUNT_JOIN_EXPRESSION |
static int |
COLUMN_INDEX_JOIN_EXPRESSION_SOURCE_COLUMN_NAME |
static int |
COLUMN_INDEX_JOIN_EXPRESSION_SOURCE_TABLE_NAME |
static int |
COLUMN_INDEX_JOIN_EXPRESSION_TARGET_COLUMN_NAME |
static int |
COLUMN_INDEX_JOIN_EXPRESSION_TARGET_TABLE_NAME |
static int |
MATRIX_ID_JOIN_EXPRESSION |
| Modifier and Type | Method and Description |
|---|---|
IEntity |
findEntity(java.lang.String astrEntityName)
Find the entity matching the fully-qualified entity name.
|
IAssociationEnd |
getAssociationEnd()
Returns reference to the association end, the context for all other dialog
API calls.
|
AssociationParameters |
getAssociationParameters()
Returns an AssociationParameters instance populated with data from an existing
association, or alternatively populated with appropriate values for a new
association if isNewAssociation() returns
true. |
int |
getCellEditorType(int aiMatrixID,
int aiColumnIndex,
int aiRowIndex)
Return an integer number representing the type of cell editor to use to edit the specified cell.
|
java.lang.String |
getCellValue(int aiMatrixID,
int aiColumnIndex,
int aiRowIndex)
Get the cell value from the specified matrix, row and column index.
|
int |
getColumnCountActual(int aiMatrixID)
Return the number of columns currently used in specified matrix.
|
int |
getColumnCountDisplayed(int aiMatrixID)
Return the number of columns currently displayed in specified matrix.
|
int |
getColumnHorizontalAlignment(int aiMatrixID,
int aiColumnIndex)
Returns the recommended column horizontal alignment for a matrix column.
|
IEntity |
getEntity()
Return a reference to the parent entity of the association, or in the
case of a new association, the entity to which the new association will
be added.
|
java.lang.String |
getJoinExpression()
Return the join expression in the matrix model formatted as a string.
|
java.util.List<java.lang.String> |
getListCellItems(int aiMatrixID,
int aiColumnIndex,
int aiRowIndex)
Get a list of values available for the specified cell.
|
java.util.List |
getListNavigabilities(java.lang.String astrSourceEntityName,
java.lang.String astrSourceToTargetRoleName,
java.lang.String astrTargetEntityName,
java.lang.String astrTargetToSourceRoleName)
Return a list all navigability choices.
|
java.lang.String |
getNavigability(boolean abSourceNavigable,
boolean abTargetNavigable,
java.lang.String astrSourceEntityName,
java.lang.String astrSourceToTargetRoleName,
java.lang.String astrTargetEntityName,
java.lang.String astrTargetToSourceRoleName)
Given source and target navigability settings (boolean) return a string depicting the
navigability.
|
java.lang.String |
getNewRoleName(IEntity aIEntitySource,
IEntity aIEntityTarget)
Return a guaranteed-unique role name.
|
int |
getRowCountActual(int aiMatrixID)
Return the number of rows currently used in specified matrix.
|
int |
getRowCountDisplayed(int aiMatrixID)
Return the number of rows currently displayed in the specified matrix.
|
java.util.List |
getSourceEntityNameList()
Get a list of all possible source entity names.
|
java.util.List |
getTargetEntityNameList()
Get a list of all possible target entity names.
|
IVocabularyModelAPI |
getVocabularyModelAPI()
Get a reference to the Vocabulary model API.
|
boolean |
isNewAssociation()
Convenience method to determine whether the dialog is creating a new
association, as opposed to updating an existing one.
|
void |
loadJoinExpressionTable()
Load the Join Expression table from the Vocabulary asset.
|
void |
setAssociationEnd(IAssociationEnd aIAssociationEnd)
Set a reference to the association end, the context for all other dialog
API calls.
|
boolean |
setCellValue(int aiMatrixID,
int aiColumnIndex,
int aiRowIndex,
java.lang.String astrValue)
Set the value of the specified matrix, row and column index.
|
void |
setEntity(IEntity aIEntity)
Set a reference to the entity, the parent of the association, or in the
case of a new association, the entity to which the new association will
be added.
|
void |
setVocabularyModelAPI(IVocabularyModelAPI aIVocabularyModelAPI)
Set a reference to the Vocabulary model API.
|
displayMessageBox, getIExceptionDialogDelegate, getLocale, getMessage, getMessage, getMessageBase, getMessageBoxDelegate, getPreferences, getScrollableMessageDelegate, getUserInterfaceInfoDelegate, setIExceptionDialogDelegate, setLocale, setMessageBoxDelegate, setPreferencesDelegate, setScrollableMessageDelegate, setUserInterfaceInfoDelegatestatic final int MATRIX_ID_JOIN_EXPRESSION
static final int COLUMN_INDEX_JOIN_EXPRESSION_SOURCE_TABLE_NAME
static final int COLUMN_INDEX_JOIN_EXPRESSION_SOURCE_COLUMN_NAME
static final int COLUMN_INDEX_JOIN_EXPRESSION_TARGET_TABLE_NAME
static final int COLUMN_INDEX_JOIN_EXPRESSION_TARGET_COLUMN_NAME
static final int COLUMN_COUNT_JOIN_EXPRESSION
IEntity findEntity(java.lang.String astrEntityName)
astrEntityName - Entity name.IAssociationEnd getAssociationEnd()
AssociationParameters getAssociationParameters()
true.int getCellEditorType(int aiMatrixID,
int aiColumnIndex,
int aiRowIndex)
aiMatrixID - Matrix ID.aiColumnIndex - Index of column whose value should be returned.aiRowIndex - Index of row whose value should be returned.java.lang.String getCellValue(int aiMatrixID,
int aiColumnIndex,
int aiRowIndex)
aiMatrixID - Matrix ID.aiColumnIndex - Index of column whose value should be returned.aiRowIndex - Index of row whose value should be returned.int getColumnCountActual(int aiMatrixID)
aiMatrixID - Matrix ID.int getColumnCountDisplayed(int aiMatrixID)
aiMatrixID - Matrix ID.int getColumnHorizontalAlignment(int aiMatrixID,
int aiColumnIndex)
aiMatrixID - Matrix ID.aiColumnIndex - Column index.IEntity getEntity()
java.lang.String getJoinExpression()
java.util.List<java.lang.String> getListCellItems(int aiMatrixID,
int aiColumnIndex,
int aiRowIndex)
aiMatrixID - Matrix ID.aiColumnIndex - Index of column whose value should be returned.aiRowIndex - Index of row whose value should be returned.java.util.List getListNavigabilities(java.lang.String astrSourceEntityName,
java.lang.String astrSourceToTargetRoleName,
java.lang.String astrTargetEntityName,
java.lang.String astrTargetToSourceRoleName)
astrSourceEntityName - Source entity name.astrSourceToTargetRoleName - Source-to-target role name.astrTargetEntityName - Target entity name.astrTargetToSourceRoleName - Target-to-source role name.java.lang.String getNavigability(boolean abSourceNavigable,
boolean abTargetNavigable,
java.lang.String astrSourceEntityName,
java.lang.String astrSourceToTargetRoleName,
java.lang.String astrTargetEntityName,
java.lang.String astrTargetToSourceRoleName)
abSourceNavigable - Source-to-target navigability flag.abTargetNavigable - Target-to-source navigability flag.astrSourceEntityName - Source entity name.astrSourceToTargetRoleName - Source-to-target role name.astrTargetEntityName - Target entity name.astrTargetToSourceRoleName - Target-to-source role name.null if neither end is navigable.java.lang.String getNewRoleName(IEntity aIEntitySource, IEntity aIEntityTarget)
aIEntitySource - Entity to which new role will be added.aIEntityTarget - Target entity for new association.int getRowCountActual(int aiMatrixID)
aiMatrixID - Matrix ID.int getRowCountDisplayed(int aiMatrixID)
aiMatrixID - Matrix ID.java.util.List getSourceEntityNameList()
java.util.List getTargetEntityNameList()
IVocabularyModelAPI getVocabularyModelAPI()
boolean isNewAssociation()
true If dialog is creating a new association.void loadJoinExpressionTable()
void setAssociationEnd(IAssociationEnd aIAssociationEnd)
aIAssociationEnd - Reference being maintained.boolean setCellValue(int aiMatrixID,
int aiColumnIndex,
int aiRowIndex,
java.lang.String astrValue)
aiMatrixID - Matrix ID.aiColumnIndex - Index of column whose value should be set.aiRowIndex - Index of row whose value should be set.astrValue - Value to set.true if the set command was successful.void setEntity(IEntity aIEntity)
IEntity - aIEntity Entity for new association.void setVocabularyModelAPI(IVocabularyModelAPI aIVocabularyModelAPI)
aIVocabularyModelAPI - Instance of Vocabulary model API.Copyright © 2005-2013 Progress Software Corporation and/or its subsidiaries and affiliates. All rights reserved.