Guvnor web application Drools 6.0.0-SNAPSHOT

org.drools.guvnor.client.decisiontable
Class DTCellValueWidgetFactory

java.lang.Object
  extended by org.drools.guvnor.client.decisiontable.DTCellValueWidgetFactory

public class DTCellValueWidgetFactory
extends Object

A Factory for Widgets to edit DTCellValues


Method Summary
static com.google.gwt.user.client.ui.CheckBox getHideColumnIndicator(DTColumnConfig52 col)
          An editor for whether the column is hidden or not
static DTCellValueWidgetFactory getInstance(GuidedDecisionTable52 dtable, SuggestionCompletionEngine sce, boolean isReadOnly, boolean allowEmptyValues)
           
 com.google.gwt.user.client.ui.Widget getWidget(ActionInsertFactCol52 column, DTCellValue52 value)
          Get a Widget to edit a DTCellValue.
 com.google.gwt.user.client.ui.Widget getWidget(Pattern52 pattern, ActionSetFieldCol52 column, DTCellValue52 value)
          Get a Widget to edit a DTCellValue.
 com.google.gwt.user.client.ui.Widget getWidget(Pattern52 pattern, ConditionCol52 column, DTCellValue52 value)
          Get a Widget to edit a DTCellValue.
 DTCellValue52 makeNewValue(DTColumnConfig52 c)
          Make a DTCellValue for a column
 DTCellValue52 makeNewValue(Pattern52 p, ActionSetFieldCol52 c)
          Make a DTCellValue for a column.
 DTCellValue52 makeNewValue(Pattern52 p, ConditionCol52 c)
          Make a DTCellValue for a column.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DTCellValueWidgetFactory getInstance(GuidedDecisionTable52 dtable,
                                                   SuggestionCompletionEngine sce,
                                                   boolean isReadOnly,
                                                   boolean allowEmptyValues)

makeNewValue

public DTCellValue52 makeNewValue(DTColumnConfig52 c)
Make a DTCellValue for a column

Parameters:
c -
Returns:

makeNewValue

public DTCellValue52 makeNewValue(Pattern52 p,
                                  ConditionCol52 c)
Make a DTCellValue for a column. This overloaded method takes a Pattern52 object as well since the pattern may be different to that to which the column has been bound in the Decision Table model, i.e. when adding or editing a column

Parameters:
p -
c -
Returns:

getWidget

public com.google.gwt.user.client.ui.Widget getWidget(Pattern52 pattern,
                                                      ConditionCol52 column,
                                                      DTCellValue52 value)
Get a Widget to edit a DTCellValue. A value is explicitly provided as some columns (in the future) will have multiple DTCellValues (for "Default Value" and "Option List"). This overloaded method takes a Pattern52 object as well since the pattern may be different to that to which the column has been bound in the Decision Table model, i.e. when adding or editing a column

Parameters:
pattern -
column -
value -
Returns:

makeNewValue

public DTCellValue52 makeNewValue(Pattern52 p,
                                  ActionSetFieldCol52 c)
Make a DTCellValue for a column. This overloaded method takes a Pattern52 object as well since the ActionSetFieldCol52 column may be associated with an unbound Pattern

Parameters:
p -
c -
Returns:

getWidget

public com.google.gwt.user.client.ui.Widget getWidget(Pattern52 pattern,
                                                      ActionSetFieldCol52 column,
                                                      DTCellValue52 value)
Get a Widget to edit a DTCellValue. A value is explicitly provided as some columns (in the future) will have multiple DTCellValues (for "Default Value" and "Option List"). This overloaded method takes a Pattern52 object as well since the ActionSetFieldCol52 column may be associated with an unbound Pattern

Parameters:
pattern -
column -
value -
Returns:

getWidget

public com.google.gwt.user.client.ui.Widget getWidget(ActionInsertFactCol52 column,
                                                      DTCellValue52 value)
Get a Widget to edit a DTCellValue. A value is explicitly provided as some columns (in the future) will have multiple DTCellValues (for "Default Value" and "Option List").

Parameters:
column -
value -
Returns:

getHideColumnIndicator

public static com.google.gwt.user.client.ui.CheckBox getHideColumnIndicator(DTColumnConfig52 col)
An editor for whether the column is hidden or not

Parameters:
col -
Returns:

Guvnor web application Drools 6.0.0-SNAPSHOT

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.