Drools Workbench - Guided Decision Table Editor - Client 6.0.1-SNAPSHOT

org.drools.workbench.screens.guided.dtable.client.widget.table.cells
Class PopupBoundPatternDropDownEditCell

java.lang.Object
  extended by com.google.gwt.cell.client.AbstractCell<C>
      extended by com.google.gwt.cell.client.AbstractEditableCell<C,V>
          extended by org.kie.workbench.common.widgets.decoratedgrid.client.widget.cells.AbstractPopupEditCell<String,String>
              extended by org.drools.workbench.screens.guided.dtable.client.widget.table.cells.PopupBoundPatternDropDownEditCell
All Implemented Interfaces:
com.google.gwt.cell.client.Cell<String>, com.google.gwt.event.shared.EventHandler, BoundFactsChangedEvent.Handler

public class PopupBoundPatternDropDownEditCell
extends org.kie.workbench.common.widgets.decoratedgrid.client.widget.cells.AbstractPopupEditCell<String,String>
implements BoundFactsChangedEvent.Handler

A Popup drop-down Editor for bound Fact Patterns. This cell listens for PatternsChangedEvents so that it's content can be maintained as and when Patterns are added, deleted or edited.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.google.gwt.cell.client.Cell
com.google.gwt.cell.client.Cell.Context
 
Field Summary
 
Fields inherited from class org.kie.workbench.common.widgets.decoratedgrid.client.widget.cells.AbstractPopupEditCell
isReadOnly, lastContext, lastParent, lastValue, offsetX, offsetY, panel, renderer, valueUpdater, vPanel
 
Constructor Summary
PopupBoundPatternDropDownEditCell(com.google.gwt.event.shared.EventBus eventBus, boolean isReadOnly)
           
 
Method Summary
protected  void commit()
           
 void onBoundFactsChanged(BoundFactsChangedEvent event)
           
 void render(com.google.gwt.cell.client.Cell.Context context, String value, com.google.gwt.safehtml.shared.SafeHtmlBuilder sb)
           
 void setFactBindings(List<String> factBindings)
          Set content of drop-down.
protected  void startEditing(com.google.gwt.cell.client.Cell.Context context, com.google.gwt.dom.client.Element parent, String value)
           
 
Methods inherited from class org.kie.workbench.common.widgets.decoratedgrid.client.widget.cells.AbstractPopupEditCell
isEditing, onBrowserEvent, onEnterKeyDown
 
Methods inherited from class com.google.gwt.cell.client.AbstractEditableCell
clearViewData, getViewData, setViewData
 
Methods inherited from class com.google.gwt.cell.client.AbstractCell
dependsOnSelection, getConsumedEvents, handlesSelection, resetFocus, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PopupBoundPatternDropDownEditCell

public PopupBoundPatternDropDownEditCell(com.google.gwt.event.shared.EventBus eventBus,
                                         boolean isReadOnly)
Method Detail

render

public void render(com.google.gwt.cell.client.Cell.Context context,
                   String value,
                   com.google.gwt.safehtml.shared.SafeHtmlBuilder sb)
Specified by:
render in interface com.google.gwt.cell.client.Cell<String>
Specified by:
render in class com.google.gwt.cell.client.AbstractCell<String>

onBoundFactsChanged

public void onBoundFactsChanged(BoundFactsChangedEvent event)
Specified by:
onBoundFactsChanged in interface BoundFactsChangedEvent.Handler

setFactBindings

public void setFactBindings(List<String> factBindings)
Set content of drop-down.

Parameters:
factBindings -

commit

protected void commit()
Specified by:
commit in class org.kie.workbench.common.widgets.decoratedgrid.client.widget.cells.AbstractPopupEditCell<String,String>

startEditing

protected void startEditing(com.google.gwt.cell.client.Cell.Context context,
                            com.google.gwt.dom.client.Element parent,
                            String value)
Specified by:
startEditing in class org.kie.workbench.common.widgets.decoratedgrid.client.widget.cells.AbstractPopupEditCell<String,String>

Drools Workbench - Guided Decision Table Editor - Client 6.0.1-SNAPSHOT

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