org.kuali.student.common.ui.client.widgets.search
Class CollapsablePanel
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
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 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 |
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)
|
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 |
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
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)
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.