org.kuali.student.common.ui.client.configurable.mvc.multiplicity
Class MultiplicityGroupItem

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 org.kuali.student.common.ui.client.widgets.field.layout.element.SpanPanel
                      extended by org.kuali.student.common.ui.client.configurable.mvc.sections.BaseSection
                          extended by org.kuali.student.common.ui.client.configurable.mvc.multiplicity.MultiplicityGroupItem
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, Iterable<com.google.gwt.user.client.ui.Widget>, HasLayoutController, Section

public class MultiplicityGroupItem
extends BaseSection


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  boolean created
           
private  boolean deleted
           
private  Integer itemKey
           
(package private)  String itemLabel
           
private  com.google.gwt.user.client.ui.Widget itemWidget
           
private  boolean loaded
           
private  Callback<MultiplicityGroupItem> removeCallback
           
private  MultiplicityConfiguration.StyleType style
           
private  boolean updateable
           
 
Fields inherited from class org.kuali.student.common.ui.client.configurable.mvc.sections.BaseSection
fields, isDirty, isValidationEnabled, layout, layoutController, sections
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
MultiplicityGroupItem(String itemLabel, MultiplicityConfiguration.StyleType style, boolean updateable)
          Represents a single item within a MultiplicityGroup //TODO Should this be an inner class in MultiplicityGroup?
 
Method Summary
private  void buildLayout()
           
 Integer getItemKey()
           
 com.google.gwt.user.client.ui.Widget getItemWidget()
           
 Callback<MultiplicityGroupItem> getRemoveCallback()
           
 boolean isCreated()
           
 boolean isDeleted()
           
 void redraw()
           
 void setCreated(boolean created)
           
 void setDeleted(boolean isDeleted)
           
 void setItemKey(Integer itemKey)
           
 void setItemWidget(com.google.gwt.user.client.ui.Widget itemWidget)
           
 void setRemoveCallback(Callback<MultiplicityGroupItem> callback)
           
 
Methods inherited from class org.kuali.student.common.ui.client.configurable.mvc.sections.BaseSection
add, addField, addSection, addSection, addStyleName, addWidget, clearValidation, enableValidation, ensureDirtyFlagPath, getField, getFields, getLayout, getLayoutController, getSection, getSections, getUnnestedFields, isDirty, isValidationEnabled, processValidationResults, processValidationResults, removeField, removeField, removeSection, removeSection, removeWidget, removeWidget, resetDirtyFlags, resetFieldInteractionFlags, setFieldHasHadFocusFlags, setHelp, setInstructions, setIsDirty, setLayoutController, setStyleName, updateModel, updateWidgetData
 
Methods inherited from class org.kuali.student.common.ui.client.widgets.field.layout.element.SpanPanel
insert, setHTML, setText
 
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, clear, 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, 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, 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
 

Field Detail

updateable

private boolean updateable

itemKey

private Integer itemKey

itemWidget

private com.google.gwt.user.client.ui.Widget itemWidget

removeCallback

private Callback<MultiplicityGroupItem> removeCallback

created

private boolean created

deleted

private boolean deleted

loaded

private boolean loaded

style

private MultiplicityConfiguration.StyleType style

itemLabel

String itemLabel
Constructor Detail

MultiplicityGroupItem

public MultiplicityGroupItem(String itemLabel,
                             MultiplicityConfiguration.StyleType style,
                             boolean updateable)
Represents a single item within a MultiplicityGroup //TODO Should this be an inner class in MultiplicityGroup?

Parameters:
itemLabel -
style -
updateable -
Method Detail

buildLayout

private void buildLayout()

redraw

public void redraw()

getItemKey

public Integer getItemKey()

setItemKey

public void setItemKey(Integer itemKey)

getItemWidget

public com.google.gwt.user.client.ui.Widget getItemWidget()

setItemWidget

public void setItemWidget(com.google.gwt.user.client.ui.Widget itemWidget)

setRemoveCallback

public void setRemoveCallback(Callback<MultiplicityGroupItem> callback)

getRemoveCallback

public Callback<MultiplicityGroupItem> getRemoveCallback()

isCreated

public boolean isCreated()

setCreated

public void setCreated(boolean created)

isDeleted

public boolean isDeleted()

setDeleted

public void setDeleted(boolean isDeleted)


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