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

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.SubrulePreviewWidget
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 SubrulePreviewWidget
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  String CLU_SET_WIDGET_TAG
           
private  Map<String,com.google.gwt.user.client.ui.Widget> clusetWidgets
           
private  KSButton deleteButton
           
private  KSButton editButton
           
private  boolean isReadOnly
           
private  SpanPanel separator
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
SubrulePreviewWidget(StatementTreeViewInfo stmtTreeInfo, boolean isReadOnly, Map<String,com.google.gwt.user.client.ui.Widget> clusetWidgets)
           
 
Method Summary
 void addDeleteButtonClickHandler(com.google.gwt.event.dom.client.ClickHandler handler)
           
 void addEditButtonClickHandler(com.google.gwt.event.dom.client.ClickHandler handler)
           
private  StringBuffer addRequirementToList(ReqComponentInfo reqComp, StatementOperatorTypeKey operator, String requirement, boolean firstRequirement)
           
private  void buildEditActionsWidget(SectionTitle header)
           
private  StringBuffer buildOneRequirement(StatementTreeViewInfo stmtTreeInfo, StatementOperatorTypeKey upperLevelOperator, boolean firstLevel, boolean firstRequirement)
           
private  void buildRequirement(StatementTreeViewInfo stmtTreeInfo)
           
private  void buildRequirementHeader(StatementTreeViewInfo stmtTreeInfo)
           
 void showSubrule(StatementTreeViewInfo stmtTreeInfo)
           
 
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

editButton

private KSButton editButton

separator

private SpanPanel separator

deleteButton

private KSButton deleteButton

isReadOnly

private boolean isReadOnly

clusetWidgets

private Map<String,com.google.gwt.user.client.ui.Widget> clusetWidgets

CLU_SET_WIDGET_TAG

private final String CLU_SET_WIDGET_TAG
See Also:
Constant Field Values
Constructor Detail

SubrulePreviewWidget

public SubrulePreviewWidget(StatementTreeViewInfo stmtTreeInfo,
                            boolean isReadOnly,
                            Map<String,com.google.gwt.user.client.ui.Widget> clusetWidgets)
Method Detail

showSubrule

public void showSubrule(StatementTreeViewInfo stmtTreeInfo)

buildRequirementHeader

private void buildRequirementHeader(StatementTreeViewInfo stmtTreeInfo)

buildEditActionsWidget

private void buildEditActionsWidget(SectionTitle header)

buildRequirement

private void buildRequirement(StatementTreeViewInfo stmtTreeInfo)

buildOneRequirement

private StringBuffer buildOneRequirement(StatementTreeViewInfo stmtTreeInfo,
                                         StatementOperatorTypeKey upperLevelOperator,
                                         boolean firstLevel,
                                         boolean firstRequirement)

addRequirementToList

private StringBuffer addRequirementToList(ReqComponentInfo reqComp,
                                          StatementOperatorTypeKey operator,
                                          String requirement,
                                          boolean firstRequirement)

addEditButtonClickHandler

public void addEditButtonClickHandler(com.google.gwt.event.dom.client.ClickHandler handler)

addDeleteButtonClickHandler

public void addDeleteButtonClickHandler(com.google.gwt.event.dom.client.ClickHandler handler)


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