public class ScenarioSimulationUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static AtomicInteger |
subGroupCounter |
| Constructor and Description |
|---|
ScenarioSimulationUtils() |
| Modifier and Type | Method and Description |
|---|---|
protected static double |
getColumnWidth(String columnId) |
static ScenarioSimulationBuilders.HeaderBuilder |
getHeaderBuilder(String instanceTitle,
String propertyTitle,
String columnId,
String columnGroup,
FactMappingType factMappingType,
ScenarioHeaderTextBoxSingletonDOMElementFactory factoryHeader)
Retrieve a single or triple level Header metadata, i.e. a
List<GridColumn.HeaderMetaData> with one or three elements,
depending on the column Group:
OTHER: single level
EXPECT/GIVEN: triple level
|
static String |
getPropertyMetaDataGroup(String columnGroup) |
static ScenarioGridColumn |
getScenarioGridColumn(ScenarioSimulationBuilders.HeaderBuilder headerBuilder,
ScenarioCellTextAreaSingletonDOMElementFactory factoryCell)
Returns a
ScenarioGridColumn with the following default values:
width: 150
isMovable: false;
isPropertyAssigned: true;
placeHolder: ScenarioSimulationEditorConstants.INSTANCE.insertValue();
columnRenderer: new ScenarioGridColumnRenderer()
|
static ScenarioGridColumn |
getScenarioGridColumn(ScenarioSimulationBuilders.HeaderBuilder headerBuilder,
ScenarioCellTextAreaSingletonDOMElementFactory factoryCell,
String placeHolder)
Returns a
ScenarioGridColumn with the following default values:
width: 150
isMovable: false;
columnRenderer: new ScenarioGridColumnRenderer()
|
static ScenarioGridColumn |
getScenarioGridColumn(String instanceTitle,
String propertyTitle,
String columnId,
String columnGroup,
FactMappingType factMappingType,
ScenarioHeaderTextBoxSingletonDOMElementFactory factoryHeader,
ScenarioCellTextAreaSingletonDOMElementFactory factoryCell)
Returns a
ScenarioGridColumn with the following default values:
width: 150
isMovable: false;
isPropertyAssigned: false;
placeHolder: ScenarioSimulationEditorConstants.INSTANCE.insertValue();
columnRenderer: new ScenarioGridColumnRenderer()
|
static ScenarioGridColumn |
getScenarioGridColumn(String instanceTitle,
String propertyTitle,
String columnId,
String columnGroup,
FactMappingType factMappingType,
ScenarioHeaderTextBoxSingletonDOMElementFactory factoryHeader,
ScenarioCellTextAreaSingletonDOMElementFactory factoryCell,
String placeHolder)
Returns a
ScenarioGridColumn with the following default values:
width: 150
isMovable: false;
isPropertyAssigned: false;
columnRenderer: new ScenarioGridColumnRenderer()
|
static ScenarioSimulationBuilders.ScenarioGridColumnBuilder |
getScenarioGridColumnBuilder(ScenarioCellTextAreaSingletonDOMElementFactory factoryCell,
ScenarioSimulationBuilders.HeaderBuilder headerBuilder,
String placeHolder)
Returns a
ScenarioSimulationBuilders.ScenarioGridColumnBuilder with the following default values:
width: 150
isMovable: false;
isPropertyAssigned: false;
columnRenderer: new ScenarioGridColumnRenderer()
|
static boolean |
isSimpleJavaType(String className) |
protected static AtomicInteger subGroupCounter
public static boolean isSimpleJavaType(String className)
public static ScenarioGridColumn getScenarioGridColumn(String instanceTitle, String propertyTitle, String columnId, String columnGroup, FactMappingType factMappingType, ScenarioHeaderTextBoxSingletonDOMElementFactory factoryHeader, ScenarioCellTextAreaSingletonDOMElementFactory factoryCell)
ScenarioGridColumn with the following default values:
width: 150
isMovable: false;
isPropertyAssigned: false;
placeHolder: ScenarioSimulationEditorConstants.INSTANCE.insertValue();
columnRenderer: new ScenarioGridColumnRenderer()
instanceTitle - propertyTitle - columnId - columnGroup - factMappingType - factoryHeader - factoryCell - public static ScenarioGridColumn getScenarioGridColumn(String instanceTitle, String propertyTitle, String columnId, String columnGroup, FactMappingType factMappingType, ScenarioHeaderTextBoxSingletonDOMElementFactory factoryHeader, ScenarioCellTextAreaSingletonDOMElementFactory factoryCell, String placeHolder)
ScenarioGridColumn with the following default values:
width: 150
isMovable: false;
isPropertyAssigned: false;
columnRenderer: new ScenarioGridColumnRenderer()
instanceTitle - propertyTitle - columnId - columnGroup - factMappingType - factoryHeader - factoryCell - placeHolder - public static ScenarioGridColumn getScenarioGridColumn(ScenarioSimulationBuilders.HeaderBuilder headerBuilder, ScenarioCellTextAreaSingletonDOMElementFactory factoryCell)
ScenarioGridColumn with the following default values:
width: 150
isMovable: false;
isPropertyAssigned: true;
placeHolder: ScenarioSimulationEditorConstants.INSTANCE.insertValue();
columnRenderer: new ScenarioGridColumnRenderer()
headerBuilder - factoryCell - public static ScenarioGridColumn getScenarioGridColumn(ScenarioSimulationBuilders.HeaderBuilder headerBuilder, ScenarioCellTextAreaSingletonDOMElementFactory factoryCell, String placeHolder)
ScenarioGridColumn with the following default values:
width: 150
isMovable: false;
columnRenderer: new ScenarioGridColumnRenderer()
headerBuilder - factoryCell - placeHolder - public static ScenarioSimulationBuilders.ScenarioGridColumnBuilder getScenarioGridColumnBuilder(ScenarioCellTextAreaSingletonDOMElementFactory factoryCell, ScenarioSimulationBuilders.HeaderBuilder headerBuilder, String placeHolder)
ScenarioSimulationBuilders.ScenarioGridColumnBuilder with the following default values:
width: 150
isMovable: false;
isPropertyAssigned: false;
columnRenderer: new ScenarioGridColumnRenderer()
factoryCell - headerBuilder - placeHolder - public static ScenarioSimulationBuilders.HeaderBuilder getHeaderBuilder(String instanceTitle, String propertyTitle, String columnId, String columnGroup, FactMappingType factMappingType, ScenarioHeaderTextBoxSingletonDOMElementFactory factoryHeader)
List<GridColumn.HeaderMetaData> with one or three elements,
depending on the column Group:
OTHER: single level
EXPECT/GIVEN: triple level
instanceTitle - propertyTitle - columnId - columnGroup - factMappingType - factoryHeader - protected static double getColumnWidth(String columnId)
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.