mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 13:10:44 +00:00
Add factory method: newForTable
This commit is contained in:
@ -77,6 +77,21 @@ public class QPossibleValueSource implements TopLevelMetaDataInterface
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*******************************************************************************
|
||||||
|
** Create a new possible value source, for a table, with default settings.
|
||||||
|
** e.g., name & table name from the tableName parameter; type=TABLE; and LABEL_ONLY format
|
||||||
|
*******************************************************************************/
|
||||||
|
public static QPossibleValueSource newForTable(String tableName)
|
||||||
|
{
|
||||||
|
return new QPossibleValueSource()
|
||||||
|
.withName(tableName)
|
||||||
|
.withType(QPossibleValueSourceType.TABLE)
|
||||||
|
.withTableName(tableName)
|
||||||
|
.withValueFormatAndFields(PVSValueFormatAndFields.LABEL_ONLY);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
**
|
**
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
Reference in New Issue
Block a user