@Test public void testColumnManagementGroupTitleRetractAction() throws Exception { final ActionRetractFactCol52 column = mock(ActionRetractFactCol52.class); assertEquals(GuidedDecisionTableConstants.INSTANCE.RetractActions(), DecisionTableColumnViewUtils.getColumnManagementGroupTitle(column)); }
public static String getColumnManagementGroupTitle(final BaseColumn column) { String managementSectionHeader = null; if (column instanceof ActionInsertFactCol52) { managementSectionHeader = concatenateFactTypeAndBoundName(((ActionInsertFactCol52) column).getFactType(), ((ActionInsertFactCol52) column).getBoundName()); } else if (column instanceof ActionSetFieldCol52) { managementSectionHeader = concatenateFactTypeAndBoundName(null, ((ActionSetFieldCol52) column).getBoundName()); } else if (column instanceof Pattern52) { managementSectionHeader = concatenateFactTypeAndBoundName(((Pattern52) column).getFactType(), ((Pattern52) column).getBoundName()); if (((Pattern52) column).isNegated()) { managementSectionHeader = GuidedDecisionTableConstants.INSTANCE.negatedPattern() + " " + managementSectionHeader; } } else if (column instanceof ActionRetractFactCol52) { managementSectionHeader = GuidedDecisionTableConstants.INSTANCE.RetractActions(); } else if (column instanceof ActionWorkItemCol52) { managementSectionHeader = GuidedDecisionTableConstants.INSTANCE.ExecuteWorkItemActions(); } else if (column instanceof BRLActionColumn) { managementSectionHeader = GuidedDecisionTableConstants.INSTANCE.BrlActions(); } else if (column instanceof BRLConditionColumn) { managementSectionHeader = GuidedDecisionTableConstants.INSTANCE.BrlConditions(); } if (managementSectionHeader == null || managementSectionHeader.isEmpty()) { return column.getHeader(); } else { return managementSectionHeader; } }
DecisionTableColumnViewUtils { public static String getColumnManagementGroupTitle(final BaseColumn column) { String managementSectionHeader = null; if (column instanceof ActionInsertFactCol52) { managementSectionHeader = concatenateFactTypeAndBoundName(((ActionInsertFactCol52) column).getFactType(), ((ActionInsertFactCol52) column).getBoundName()); } else if (column instanceof ActionSetFieldCol52) { managementSectionHeader = concatenateFactTypeAndBoundName(null, ((ActionSetFieldCol52) column).getBoundName()); } else if (column instanceof Pattern52) { managementSectionHeader = concatenateFactTypeAndBoundName(((Pattern52) column).getFactType(), ((Pattern52) column).getBoundName()); if (((Pattern52) column).isNegated()) { managementSectionHeader = GuidedDecisionTableConstants.INSTANCE.negatedPattern() + " " + managementSectionHeader; } } else if (column instanceof ActionRetractFactCol52) { managementSectionHeader = GuidedDecisionTableConstants.INSTANCE.RetractActions(); } else if (column instanceof ActionWorkItemCol52) { managementSectionHeader = GuidedDecisionTableConstants.INSTANCE.ExecuteWorkItemActions(); } else if (column instanceof BRLActionColumn) { managementSectionHeader = GuidedDecisionTableConstants.INSTANCE.BrlActions(); } else if (column instanceof BRLConditionColumn) { managementSectionHeader = GuidedDecisionTableConstants.INSTANCE.BrlConditions(); } if (managementSectionHeader == null || managementSectionHeader.isEmpty()) { return column.getHeader(); } else { return managementSectionHeader; } } }
DecisionTableColumnViewUtils { public static String getColumnManagementGroupTitle(final BaseColumn column) { String managementSectionHeader = null; if (column instanceof ActionInsertFactCol52) { managementSectionHeader = concatenateFactTypeAndBoundName(((ActionInsertFactCol52) column).getFactType(), ((ActionInsertFactCol52) column).getBoundName()); } else if (column instanceof ActionSetFieldCol52) { managementSectionHeader = concatenateFactTypeAndBoundName(null, ((ActionSetFieldCol52) column).getBoundName()); } else if (column instanceof Pattern52) { managementSectionHeader = concatenateFactTypeAndBoundName(((Pattern52) column).getFactType(), ((Pattern52) column).getBoundName()); if (((Pattern52) column).isNegated()) { managementSectionHeader = GuidedDecisionTableConstants.INSTANCE.negatedPattern() + " " + managementSectionHeader; } } else if (column instanceof ActionRetractFactCol52) { managementSectionHeader = GuidedDecisionTableConstants.INSTANCE.RetractActions(); } else if (column instanceof ActionWorkItemCol52) { managementSectionHeader = GuidedDecisionTableConstants.INSTANCE.ExecuteWorkItemActions(); } else if (column instanceof BRLActionColumn) { managementSectionHeader = GuidedDecisionTableConstants.INSTANCE.BrlActions(); } else if (column instanceof BRLConditionColumn) { managementSectionHeader = GuidedDecisionTableConstants.INSTANCE.BrlConditions(); } if (managementSectionHeader == null || managementSectionHeader.isEmpty()) { return column.getHeader(); } else { return managementSectionHeader; } }  }
DecisionTableColumnViewUtils { public static String getColumnManagementGroupTitle(final BaseColumn column) { String managementSectionHeader = null; if (column instanceof ActionInsertFactCol52) { managementSectionHeader = concatenateFactTypeAndBoundName(((ActionInsertFactCol52) column).getFactType(), ((ActionInsertFactCol52) column).getBoundName()); } else if (column instanceof ActionSetFieldCol52) { managementSectionHeader = concatenateFactTypeAndBoundName(null, ((ActionSetFieldCol52) column).getBoundName()); } else if (column instanceof Pattern52) { managementSectionHeader = concatenateFactTypeAndBoundName(((Pattern52) column).getFactType(), ((Pattern52) column).getBoundName()); if (((Pattern52) column).isNegated()) { managementSectionHeader = GuidedDecisionTableConstants.INSTANCE.negatedPattern() + " " + managementSectionHeader; } } else if (column instanceof ActionRetractFactCol52) { managementSectionHeader = GuidedDecisionTableConstants.INSTANCE.RetractActions(); } else if (column instanceof ActionWorkItemCol52) { managementSectionHeader = GuidedDecisionTableConstants.INSTANCE.ExecuteWorkItemActions(); } else if (column instanceof BRLActionColumn) { managementSectionHeader = GuidedDecisionTableConstants.INSTANCE.BrlActions(); } else if (column instanceof BRLConditionColumn) { managementSectionHeader = GuidedDecisionTableConstants.INSTANCE.BrlConditions(); } if (managementSectionHeader == null || managementSectionHeader.isEmpty()) { return column.getHeader(); } else { return managementSectionHeader; } }  static int getCurrentIndexFromList(final String currentValue,
                                              final ListBox list); static int getCurrentIndexFromListWithoutDefaultSelect(final String currentValue,
                                                                  final ListBox list); static boolean nil(String s); static void addWidgetToContainer(final IsWidget widget,
                                            final Div container); static String getColumnManagementGroupTitle(final BaseColumn column); }
DecisionTableColumnViewUtils { public static String getColumnManagementGroupTitle(final BaseColumn column) { String managementSectionHeader = null; if (column instanceof ActionInsertFactCol52) { managementSectionHeader = concatenateFactTypeAndBoundName(((ActionInsertFactCol52) column).getFactType(), ((ActionInsertFactCol52) column).getBoundName()); } else if (column instanceof ActionSetFieldCol52) { managementSectionHeader = concatenateFactTypeAndBoundName(null, ((ActionSetFieldCol52) column).getBoundName()); } else if (column instanceof Pattern52) { managementSectionHeader = concatenateFactTypeAndBoundName(((Pattern52) column).getFactType(), ((Pattern52) column).getBoundName()); if (((Pattern52) column).isNegated()) { managementSectionHeader = GuidedDecisionTableConstants.INSTANCE.negatedPattern() + " " + managementSectionHeader; } } else if (column instanceof ActionRetractFactCol52) { managementSectionHeader = GuidedDecisionTableConstants.INSTANCE.RetractActions(); } else if (column instanceof ActionWorkItemCol52) { managementSectionHeader = GuidedDecisionTableConstants.INSTANCE.ExecuteWorkItemActions(); } else if (column instanceof BRLActionColumn) { managementSectionHeader = GuidedDecisionTableConstants.INSTANCE.BrlActions(); } else if (column instanceof BRLConditionColumn) { managementSectionHeader = GuidedDecisionTableConstants.INSTANCE.BrlConditions(); } if (managementSectionHeader == null || managementSectionHeader.isEmpty()) { return column.getHeader(); } else { return managementSectionHeader; } }  static int getCurrentIndexFromList(final String currentValue,
                                              final ListBox list); static int getCurrentIndexFromListWithoutDefaultSelect(final String currentValue,
                                                                  final ListBox list); static boolean nil(String s); static void addWidgetToContainer(final IsWidget widget,
                                            final Div container); static String getColumnManagementGroupTitle(final BaseColumn column);  }