org.kuali.student.common.ui.client.widgets.rules
Class RuleTableManipulationWidget

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Panel
              extended by com.google.gwt.user.client.ui.ComplexPanel
                  extended by com.google.gwt.user.client.ui.FlowPanel
                      extended by org.kuali.student.common.ui.client.widgets.rules.RuleTableManipulationWidget
All Implemented Interfaces:
com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.IndexedPanel, com.google.gwt.user.client.ui.InsertPanel, Iterable<com.google.gwt.user.client.ui.Widget>

public class RuleTableManipulationWidget
extends com.google.gwt.user.client.ui.FlowPanel


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field Summary
private  KSButton btnAddToGroup
           
private  KSButton btnDelete
           
private  KSButton btnMakeAND
           
private  KSButton btnMakeOR
           
private  KSButton btnMoveRuleDown
           
private  KSButton btnMoveRuleUp
           
private  KSButton btnRedo
           
private  KSButton btnUndo
           
private  boolean isEnabled
           
private  boolean isOperatorChecked
           
private  Callback reqCompEditCallback
           
private  RuleInfo rule
           
private  Callback ruleChangedCallback
           
private  RuleTable ruleTable
           
private  com.google.gwt.event.dom.client.ClickHandler ruleTableEditClauseHandler
           
private  com.google.gwt.user.client.ui.FlowPanel ruleTablePanel
           
private  com.google.gwt.event.dom.client.ClickHandler ruleTableSelectionHandler
           
private  SpanPanel separator1
           
private  SpanPanel separator2
           
private  com.google.gwt.event.shared.HandlerRegistration textClickHandler
           
private  com.google.gwt.user.client.ui.FlowPanel topButtonsPanel
           
private  KSProgressIndicator twiddler
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
RuleTableManipulationWidget()
           
 
Method Summary
 void addReqCompEditButtonClickCallback(Callback<ReqComponentInfo> callback)
           
 void addRuleChangedButtonClickCallback(Callback<Boolean> callback)
           
private  void createButtonsPanel()
           
 RuleInfo getRule()
           
private  boolean isAbleToDelete()
           
private  boolean isAbletoMoveReqComp()
           
private  boolean isMatchingOperandSelected(int type)
           
 void redraw()
           
 void redraw(StatementTreeViewInfo stmtTreeInfo, boolean newRule, Boolean ruleChanged)
           
 void setEnableButtons(boolean enabled)
           
 void setEnabledView(boolean enabled)
           
 void setRule(RuleInfo rule)
           
private  void setupHandlers()
           
private  void showRuleBeforeSimplify(StatementVO unsimplified)
           
private  void updateTable()
           
 
Methods inherited from class com.google.gwt.user.client.ui.FlowPanel
add, clear, insert
 
Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel
add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, insert, insert, iterator, remove, remove
 
Methods inherited from class com.google.gwt.user.client.ui.Panel
adopt, adopt, disown, doAttachChildren, doDetachChildren, onLoad, onUnload, orphan
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addDomHandler, addHandler, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.gwt.user.client.ui.IndexedPanel
getWidget, getWidgetCount, getWidgetIndex, remove
 

Field Detail

btnMakeOR

private KSButton btnMakeOR

btnMakeAND

private KSButton btnMakeAND

btnAddToGroup

private KSButton btnAddToGroup

btnMoveRuleDown

private KSButton btnMoveRuleDown

btnMoveRuleUp

private KSButton btnMoveRuleUp

btnUndo

private KSButton btnUndo

btnRedo

private KSButton btnRedo

btnDelete

private KSButton btnDelete

separator1

private SpanPanel separator1

separator2

private SpanPanel separator2

topButtonsPanel

private com.google.gwt.user.client.ui.FlowPanel topButtonsPanel

ruleTablePanel

private com.google.gwt.user.client.ui.FlowPanel ruleTablePanel

twiddler

private KSProgressIndicator twiddler

ruleTable

private RuleTable ruleTable

ruleTableSelectionHandler

private com.google.gwt.event.dom.client.ClickHandler ruleTableSelectionHandler

ruleTableEditClauseHandler

private com.google.gwt.event.dom.client.ClickHandler ruleTableEditClauseHandler

textClickHandler

private com.google.gwt.event.shared.HandlerRegistration textClickHandler

rule

private RuleInfo rule

reqCompEditCallback

private Callback reqCompEditCallback

ruleChangedCallback

private Callback ruleChangedCallback

isEnabled

private boolean isEnabled

isOperatorChecked

private boolean isOperatorChecked
Constructor Detail

RuleTableManipulationWidget

public RuleTableManipulationWidget()
Method Detail

setupHandlers

private void setupHandlers()

redraw

public void redraw()

redraw

public void redraw(StatementTreeViewInfo stmtTreeInfo,
                   boolean newRule,
                   Boolean ruleChanged)

updateTable

private void updateTable()

showRuleBeforeSimplify

private void showRuleBeforeSimplify(StatementVO unsimplified)

setEnabledView

public void setEnabledView(boolean enabled)

setEnableButtons

public void setEnableButtons(boolean enabled)

isAbletoMoveReqComp

private boolean isAbletoMoveReqComp()

isMatchingOperandSelected

private boolean isMatchingOperandSelected(int type)

isAbleToDelete

private boolean isAbleToDelete()

createButtonsPanel

private void createButtonsPanel()

getRule

public RuleInfo getRule()

setRule

public void setRule(RuleInfo rule)

addReqCompEditButtonClickCallback

public void addReqCompEditButtonClickCallback(Callback<ReqComponentInfo> callback)

addRuleChangedButtonClickCallback

public void addRuleChangedButtonClickCallback(Callback<Boolean> callback)


Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.