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


Constructor Summary
DTCellValueWidgetFactory(org.drools.ide.common.client.modeldriven.dt52.GuidedDecisionTable52 dtable, org.drools.ide.common.client.modeldriven.SuggestionCompletionEngine sce)
           
 
Method Summary
static com.google.gwt.user.client.ui.TextBox getDefaultEditor(org.drools.ide.common.client.modeldriven.dt52.DTColumnConfig52 col)
          An editor for 'Default Value'
static com.google.gwt.user.client.ui.CheckBox getHideColumnIndicator(org.drools.ide.common.client.modeldriven.dt52.DTColumnConfig52 col)
          An editor for whether the column is hidden or not
 com.google.gwt.user.client.ui.Widget getWidget(org.drools.ide.common.client.modeldriven.dt52.DTColumnConfig52 c, org.drools.ide.common.client.modeldriven.dt52.DTCellValue52 value)
          Get a Widget to edit a DTCellValue.
 com.google.gwt.user.client.ui.Widget getWidget(org.drools.ide.common.client.modeldriven.dt52.Pattern52 pattern, org.drools.ide.common.client.modeldriven.dt52.ActionSetFieldCol52 column, org.drools.ide.common.client.modeldriven.dt52.DTCellValue52 value)
          Get a Widget to edit a DTCellValue.
 com.google.gwt.user.client.ui.Widget getWidget(org.drools.ide.common.client.modeldriven.dt52.Pattern52 pattern, org.drools.ide.common.client.modeldriven.dt52.ConditionCol52 column, org.drools.ide.common.client.modeldriven.dt52.DTCellValue52 value)
          Get a Widget to edit a DTCellValue.
 org.drools.ide.common.client.modeldriven.dt52.DTCellValue52 makeNewValue(org.drools.ide.common.client.modeldriven.dt52.DTColumnConfig52 c)
          Make a DTCellValue for a column
 org.drools.ide.common.client.modeldriven.dt52.DTCellValue52 makeNewValue(org.drools.ide.common.client.modeldriven.dt52.Pattern52 p, org.drools.ide.common.client.modeldriven.dt52.ActionSetFieldCol52 c)
          Make a DTCellValue for a column.
 org.drools.ide.common.client.modeldriven.dt52.DTCellValue52 makeNewValue(org.drools.ide.common.client.modeldriven.dt52.Pattern52 p, org.drools.ide.common.client.modeldriven.dt52.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
 

Constructor Detail

DTCellValueWidgetFactory

public DTCellValueWidgetFactory(org.drools.ide.common.client.modeldriven.dt52.GuidedDecisionTable52 dtable,
                                org.drools.ide.common.client.modeldriven.SuggestionCompletionEngine sce)
Method Detail

makeNewValue

public org.drools.ide.common.client.modeldriven.dt52.DTCellValue52 makeNewValue(org.drools.ide.common.client.modeldriven.dt52.DTColumnConfig52 c)
Make a DTCellValue for a column

Parameters:
c -
Returns:

getWidget

public com.google.gwt.user.client.ui.Widget getWidget(org.drools.ide.common.client.modeldriven.dt52.DTColumnConfig52 c,
                                                      org.drools.ide.common.client.modeldriven.dt52.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:
c -
value -
Returns:

makeNewValue

public org.drools.ide.common.client.modeldriven.dt52.DTCellValue52 makeNewValue(org.drools.ide.common.client.modeldriven.dt52.Pattern52 p,
                                                                                org.drools.ide.common.client.modeldriven.dt52.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(org.drools.ide.common.client.modeldriven.dt52.Pattern52 pattern,
                                                      org.drools.ide.common.client.modeldriven.dt52.ConditionCol52 column,
                                                      org.drools.ide.common.client.modeldriven.dt52.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 org.drools.ide.common.client.modeldriven.dt52.DTCellValue52 makeNewValue(org.drools.ide.common.client.modeldriven.dt52.Pattern52 p,
                                                                                org.drools.ide.common.client.modeldriven.dt52.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(org.drools.ide.common.client.modeldriven.dt52.Pattern52 pattern,
                                                      org.drools.ide.common.client.modeldriven.dt52.ActionSetFieldCol52 column,
                                                      org.drools.ide.common.client.modeldriven.dt52.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:

getDefaultEditor

public static com.google.gwt.user.client.ui.TextBox getDefaultEditor(org.drools.ide.common.client.modeldriven.dt52.DTColumnConfig52 col)
An editor for 'Default Value'

Parameters:
col -
Returns:

getHideColumnIndicator

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

Parameters:
col -
Returns:


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