org.drools.guvnor.client.decisiontable.cells
Class PopupBoundPatternDropDownEditCell
java.lang.Object
com.google.gwt.cell.client.AbstractCell<C>
com.google.gwt.cell.client.AbstractEditableCell<C,V>
org.drools.guvnor.client.decisiontable.cells.AbstractPopupEditCell<String,String>
org.drools.guvnor.client.decisiontable.cells.PopupBoundPatternDropDownEditCell
- All Implemented Interfaces:
- com.google.gwt.cell.client.Cell<String>, com.google.gwt.event.shared.EventHandler, BoundFactsChangedEvent.Handler
public class PopupBoundPatternDropDownEditCell
- extends 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 classes/interfaces inherited from interface com.google.gwt.cell.client.Cell |
com.google.gwt.cell.client.Cell.Context |
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 |
PopupBoundPatternDropDownEditCell
public PopupBoundPatternDropDownEditCell(com.google.gwt.event.shared.EventBus eventBus,
boolean isReadOnly)
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()
- Description copied from class:
AbstractPopupEditCell
- Commit the change to the underlying model. Implementations should use the
protected
valueUpdater
initialised in onBrowseEvent to pass
new values to the model. Implementations should also invoke
setValue
to write the new value back to the Cell's HTML
- Specified by:
commit
in class AbstractPopupEditCell<String,String>
startEditing
protected void startEditing(com.google.gwt.cell.client.Cell.Context context,
com.google.gwt.dom.client.Element parent,
String value)
- Description copied from class:
AbstractPopupEditCell
- Initiate editing within the "Popup". Implementations should populate the
child controls within the "Popup" before showing the Popup
panel
- Specified by:
startEditing
in class AbstractPopupEditCell<String,String>
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.