org.kuali.student.common.ui.client.widgets.search
Class CollapsablePanel

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.search.CollapsablePanel
All Implemented Interfaces:
com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, ReportExportWidget
Direct Known Subclasses:
DependencyResultPanel.DependencyTypeSection, KSFilterOptions.KSFilterItem

public class CollapsablePanel
extends com.google.gwt.user.client.ui.Composite
implements ReportExportWidget


Nested Class Summary
private static class CollapsablePanel.ContentAnimation
           
static class CollapsablePanel.ImagePosition
           
 
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
protected  CollapsablePanel.ContentAnimation animation
           
protected  com.google.gwt.user.client.ui.Image closedImage
           
protected  com.google.gwt.user.client.ui.SimplePanel content
           
protected  CollapsablePanel.ImagePosition imagePosition
           
protected  boolean isOpen
           
protected  KSButton label
           
protected  VerticalFlowPanel layout
           
protected  HorizontalBlockFlowPanel linkPanel
           
private  com.google.gwt.event.dom.client.ClickHandler openCloseClickHandler
           
protected  com.google.gwt.user.client.ui.Image openedImage
           
protected  boolean withImages
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
protected CollapsablePanel()
           
  CollapsablePanel(String label, com.google.gwt.user.client.ui.Widget content, boolean isOpen)
           
  CollapsablePanel(String label, com.google.gwt.user.client.ui.Widget content, boolean isOpen, boolean withImages)
           
  CollapsablePanel(String label, com.google.gwt.user.client.ui.Widget content, boolean isOpen, boolean withImages, CollapsablePanel.ImagePosition imagePosition)
           
  CollapsablePanel(com.google.gwt.user.client.ui.Widget label, com.google.gwt.user.client.ui.Widget content, boolean isOpen, boolean withImages, CollapsablePanel.ImagePosition imagePosition)
           
 
Method Summary
 void close()
           
protected  KSButton getButtonLabel(String labelString)
           
 List<ExportElement> getExportElementSubset(ExportElement parent)
           
 String getExportFieldValue()
           
 KSButton getLabel()
          If the widget was initialized with a string label, it will return a KSButton.
 com.google.gwt.user.client.ui.Widget getLabelWidget()
           
protected  void init(com.google.gwt.user.client.ui.Widget label, com.google.gwt.user.client.ui.Widget content, boolean isOpen, boolean withImages, CollapsablePanel.ImagePosition imagePosition)
           
 boolean isExportElement()
           
 boolean isOpen()
           
 void open()
           
protected  void setImageState()
          Update the image state to display opened/closed image based in isOpen() status
 
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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

label

protected KSButton label

layout

protected VerticalFlowPanel layout

linkPanel

protected HorizontalBlockFlowPanel linkPanel

content

protected com.google.gwt.user.client.ui.SimplePanel content

animation

protected CollapsablePanel.ContentAnimation animation

isOpen

protected boolean isOpen

withImages

protected boolean withImages

imagePosition

protected CollapsablePanel.ImagePosition imagePosition

closedImage

protected com.google.gwt.user.client.ui.Image closedImage

openedImage

protected com.google.gwt.user.client.ui.Image openedImage

openCloseClickHandler

private com.google.gwt.event.dom.client.ClickHandler openCloseClickHandler
Constructor Detail

CollapsablePanel

protected CollapsablePanel()

CollapsablePanel

public CollapsablePanel(String label,
                        com.google.gwt.user.client.ui.Widget content,
                        boolean isOpen)

CollapsablePanel

public CollapsablePanel(String label,
                        com.google.gwt.user.client.ui.Widget content,
                        boolean isOpen,
                        boolean withImages)

CollapsablePanel

public CollapsablePanel(String label,
                        com.google.gwt.user.client.ui.Widget content,
                        boolean isOpen,
                        boolean withImages,
                        CollapsablePanel.ImagePosition imagePosition)

CollapsablePanel

public CollapsablePanel(com.google.gwt.user.client.ui.Widget label,
                        com.google.gwt.user.client.ui.Widget content,
                        boolean isOpen,
                        boolean withImages,
                        CollapsablePanel.ImagePosition imagePosition)
Method Detail

init

protected void init(com.google.gwt.user.client.ui.Widget label,
                    com.google.gwt.user.client.ui.Widget content,
                    boolean isOpen,
                    boolean withImages,
                    CollapsablePanel.ImagePosition imagePosition)

getButtonLabel

protected KSButton getButtonLabel(String labelString)

getLabel

public KSButton getLabel()
If the widget was initialized with a string label, it will return a KSButton. If the widget was initialized with a label widget, it will return the label widget.

Returns:

getLabelWidget

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

isOpen

public boolean isOpen()

open

public void open()

close

public void close()

setImageState

protected void setImageState()
Update the image state to display opened/closed image based in isOpen() status


isExportElement

public boolean isExportElement()
Specified by:
isExportElement in interface ReportExportWidget

getExportElementSubset

public List<ExportElement> getExportElementSubset(ExportElement parent)
Specified by:
getExportElementSubset in interface ReportExportWidget

getExportFieldValue

public String getExportFieldValue()
Specified by:
getExportFieldValue in interface ReportExportWidget


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