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.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.IsWidget, ReportExportWidget
- Direct Known Subclasses:
- DependencyResultPanel.DependencyTypeSection
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)
|
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)
|
void |
initialise(String label,
com.google.gwt.user.client.ui.Widget content,
boolean isOpen)
|
void |
initialise(String label,
com.google.gwt.user.client.ui.Widget content,
boolean isOpen,
boolean withImages)
|
void |
initialise(String label,
com.google.gwt.user.client.ui.Widget content,
boolean isOpen,
boolean withImages,
CollapsablePanel.ImagePosition imagePosition)
|
void |
initialise(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 |
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 |
label
protected KSButton label
layout
protected VerticalFlowPanel layout
linkPanel
protected HorizontalBlockFlowPanel linkPanel
content
protected com.google.gwt.user.client.ui.SimplePanel content
animation
protected org.kuali.student.common.ui.client.widgets.search.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
protected 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)
initialise
public void initialise(String label,
com.google.gwt.user.client.ui.Widget content,
boolean isOpen)
initialise
public void initialise(String label,
com.google.gwt.user.client.ui.Widget content,
boolean isOpen,
boolean withImages)
initialise
public void initialise(String label,
com.google.gwt.user.client.ui.Widget content,
boolean isOpen,
boolean withImages,
CollapsablePanel.ImagePosition imagePosition)
initialise
public void initialise(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-2012 The Kuali Foundation. All Rights Reserved.