org.kuali.student.common.ui.client.widgets
Class KSItemLabel

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.common.ui.client.widgets.KSItemLabel
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasCloseHandlers<KSItemLabel>, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, HasDataValue

public class KSItemLabel
extends com.google.gwt.user.client.ui.Composite
implements com.google.gwt.event.logical.shared.HasCloseHandlers<KSItemLabel>, HasDataValue


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 backgroundId
           
private static int classInstanceId
           
private  String contentId
           
private  Data data
           
private  DataHelper dataHelper
           
private  AbbrButton delete
           
private  String deletedKey
           
private  String id
           
 int instanceId
           
private  com.google.gwt.user.client.ui.Panel mainPanel
           
private  com.google.gwt.user.client.ui.HTMLPanel panel
           
private  String PANEL_CONTENT_BACKGROUND
           
private  String PANEL_CONTENT_OPEN
           
private  String PANEL_CONTENT_REMOVE_LINK
           
private  String removeLinkId
           
private  List<Callback<Data.Value>> valueChangeCallbacks
           
private  com.google.gwt.user.client.ui.Anchor viewDetails
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
KSItemLabel(boolean canEdit, boolean hasDetails, DataHelper dataParser)
           
KSItemLabel(boolean canEdit, DataHelper dataParser)
           
 
Method Summary
 com.google.gwt.event.shared.HandlerRegistration addCloseHandler(com.google.gwt.event.logical.shared.CloseHandler<KSItemLabel> handler)
           
 com.google.gwt.event.shared.HandlerRegistration addShowDetailsHandler(com.google.gwt.event.dom.client.ClickHandler clickHandler)
           
 void addValueChangeCallback(Callback<Data.Value> callback)
           
private  void callHandlers()
           
private  void doRemove()
           
 boolean equals(Object obj)
           
 String getDeletedKey()
           
 String getDisplayText()
           
 String getKey()
           
 Data.Value getValue()
           
 int hashCode()
           
private  void init(boolean canEdit, boolean hasDetails, DataHelper dataParser)
           
private  void initDeleteHandlers()
           
private  boolean nullSafeEquals(String str1, String str2)
           
private  String nvl(String inString)
           
private  void redraw()
           
 void removeHighlight()
           
 void setHighlighted(boolean highlighted)
           
 void setValue(Data.Value value)
           
 
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
addDomHandler, addHandler, 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, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
 

Field Detail

id

private final String id

contentId

private final String contentId

removeLinkId

private final String removeLinkId

backgroundId

private final String backgroundId

PANEL_CONTENT_OPEN

private final String PANEL_CONTENT_OPEN

PANEL_CONTENT_REMOVE_LINK

private final String PANEL_CONTENT_REMOVE_LINK

PANEL_CONTENT_BACKGROUND

private final String PANEL_CONTENT_BACKGROUND

mainPanel

private com.google.gwt.user.client.ui.Panel mainPanel

panel

private com.google.gwt.user.client.ui.HTMLPanel panel

delete

private AbbrButton delete

viewDetails

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

dataHelper

private DataHelper dataHelper

data

private Data data

valueChangeCallbacks

private List<Callback<Data.Value>> valueChangeCallbacks

deletedKey

private String deletedKey

classInstanceId

private static int classInstanceId

instanceId

public int instanceId
Constructor Detail

KSItemLabel

public KSItemLabel(boolean canEdit,
                   DataHelper dataParser)

KSItemLabel

public KSItemLabel(boolean canEdit,
                   boolean hasDetails,
                   DataHelper dataParser)
Method Detail

init

private void init(boolean canEdit,
                  boolean hasDetails,
                  DataHelper dataParser)

addCloseHandler

public com.google.gwt.event.shared.HandlerRegistration addCloseHandler(com.google.gwt.event.logical.shared.CloseHandler<KSItemLabel> handler)
Specified by:
addCloseHandler in interface com.google.gwt.event.logical.shared.HasCloseHandlers<KSItemLabel>

addValueChangeCallback

public void addValueChangeCallback(Callback<Data.Value> callback)
Specified by:
addValueChangeCallback in interface HasDataValue

callHandlers

private void callHandlers()

getValue

public Data.Value getValue()
Specified by:
getValue in interface HasDataValue

setValue

public void setValue(Data.Value value)
Specified by:
setValue in interface HasDataValue

getKey

public String getKey()

getDisplayText

public String getDisplayText()

nvl

private String nvl(String inString)

redraw

private void redraw()

initDeleteHandlers

private void initDeleteHandlers()

addShowDetailsHandler

public com.google.gwt.event.shared.HandlerRegistration addShowDetailsHandler(com.google.gwt.event.dom.client.ClickHandler clickHandler)

doRemove

private void doRemove()

getDeletedKey

public String getDeletedKey()

setHighlighted

public void setHighlighted(boolean highlighted)

removeHighlight

public void removeHighlight()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

nullSafeEquals

private boolean nullSafeEquals(String str1,
                               String str2)

hashCode

public int hashCode()
Overrides:
hashCode in class Object


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