org.kuali.student.lum.program.client.widgets
Class ProgramSideBar

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.Composite
              extended by org.kuali.student.lum.program.client.widgets.ProgramSideBar
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.IsWidget

public class ProgramSideBar
extends com.google.gwt.user.client.ui.Composite

Author:
Igor

Nested Class Summary
static class ProgramSideBar.State
           
static class ProgramSideBar.Type
           
 
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  com.google.gwt.user.client.ui.VerticalPanel content
           
private  SideBarDialogManager dialogManager
           
private  com.google.gwt.event.shared.HandlerManager eventBus
           
private  com.google.gwt.user.client.ui.Label historyLabel
           
private  com.google.gwt.user.client.ui.Label lastReviewDate
           
private  com.google.gwt.user.client.ui.Label lastUpdatedDate
           
private  com.google.gwt.user.client.ui.SimplePanel scheduledReviewDate
           
private  ProgramSideBar.State state
           
private  ProgramSideBar.Type type
           
private  com.google.gwt.user.client.ui.Label versionLabel
           
private  ViewContext viewContext
           
private  com.google.gwt.user.client.ui.Anchor viewVersion
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
ProgramSideBar(com.google.gwt.event.shared.HandlerManager eventBus, ProgramSideBar.Type type)
           
 
Method Summary
private  void bind()
           
private  void buildLayout()
           
private  com.google.gwt.user.client.ui.Widget createDatePanel(String title, com.google.gwt.user.client.ui.Widget widget, boolean showEdit)
           
private  com.google.gwt.user.client.ui.Widget createHistoryPanel()
           
private  com.google.gwt.user.client.ui.Widget createVersionHistoryPanel()
           
private  com.google.gwt.user.client.ui.Widget createVersionPanel()
           
private  String getLabel(String messageKey)
           
private  String getLabel(String messageKey, String parameter)
           
 void initialize(MajorController controller)
           
private  void setDate(Date updatedDate, com.google.gwt.user.client.ui.Label lastUpdatedDate)
           
 void setState(ProgramSideBar.State state)
           
private  void setStyles()
           
private  void setVersion(Long version, com.google.gwt.user.client.ui.Label versionaLabel)
           
private  void setWidget(String path, com.google.gwt.user.client.ui.SimplePanel container, DataModel model)
           
private  void updateFields(DataModel model)
           
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, 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, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

content

private final com.google.gwt.user.client.ui.VerticalPanel content

state

private ProgramSideBar.State state

type

private ProgramSideBar.Type type

versionLabel

private com.google.gwt.user.client.ui.Label versionLabel

viewVersion

private com.google.gwt.user.client.ui.Anchor viewVersion

historyLabel

private com.google.gwt.user.client.ui.Label historyLabel

lastUpdatedDate

private com.google.gwt.user.client.ui.Label lastUpdatedDate

scheduledReviewDate

private com.google.gwt.user.client.ui.SimplePanel scheduledReviewDate

lastReviewDate

private com.google.gwt.user.client.ui.Label lastReviewDate

eventBus

private final com.google.gwt.event.shared.HandlerManager eventBus

viewContext

private ViewContext viewContext

dialogManager

private final SideBarDialogManager dialogManager
Constructor Detail

ProgramSideBar

public ProgramSideBar(com.google.gwt.event.shared.HandlerManager eventBus,
                      ProgramSideBar.Type type)
Method Detail

initialize

public void initialize(MajorController controller)

bind

private void bind()

updateFields

private void updateFields(DataModel model)

setDate

private void setDate(Date updatedDate,
                     com.google.gwt.user.client.ui.Label lastUpdatedDate)

setVersion

private void setVersion(Long version,
                        com.google.gwt.user.client.ui.Label versionaLabel)

setWidget

private void setWidget(String path,
                       com.google.gwt.user.client.ui.SimplePanel container,
                       DataModel model)

buildLayout

private void buildLayout()

createDatePanel

private com.google.gwt.user.client.ui.Widget createDatePanel(String title,
                                                             com.google.gwt.user.client.ui.Widget widget,
                                                             boolean showEdit)

createHistoryPanel

private com.google.gwt.user.client.ui.Widget createHistoryPanel()

createVersionPanel

private com.google.gwt.user.client.ui.Widget createVersionPanel()

createVersionHistoryPanel

private com.google.gwt.user.client.ui.Widget createVersionHistoryPanel()

setState

public void setState(ProgramSideBar.State state)

setStyles

private void setStyles()

getLabel

private String getLabel(String messageKey)

getLabel

private String getLabel(String messageKey,
                        String parameter)


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.