|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.smartgwt.client.widgets.BaseWidget
com.smartgwt.client.widgets.Canvas
com.smartgwt.client.widgets.StatefulCanvas
com.smartgwt.client.widgets.Button
com.smartgwt.client.widgets.Label
com.smartgwt.client.widgets.layout.SectionHeader
public class SectionHeader
Simple SectionHeader class based on a Label with an icon, skinnable via CSS.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
Field Summary |
---|
Fields inherited from class com.smartgwt.client.widgets.BaseWidget |
---|
config, configOnly, id, isElementSet, scClassName |
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
SectionHeader()
|
|
SectionHeader(JavaScriptObject jsObj)
|
Method Summary | |
---|---|
protected JavaScriptObject |
create()
|
java.lang.String |
getBaseStyle()
CSS class for the section header. |
java.lang.String |
getIcon()
Base filename of the icon that represents open and closed states. |
static SectionHeader |
getOrCreateRef(JavaScriptObject jsObj)
|
SectionStackSection |
getSection()
Retrieve the SectionStackSection associated with this header |
SectionStack |
getSectionStack()
For a SectionHeader embedded in a SectionStack, this method will return a pointer to the SectionStack in which this section header is embedded. |
void |
setBaseStyle(java.lang.String baseStyle)
CSS class for the section header. |
void |
setControls(Canvas... controls)
Set the controls. |
static void |
setDefaultProperties(SectionHeader sectionHeaderProperties)
Class level method to set the default properties of this class. |
void |
setIcon(java.lang.String icon)
Base filename of the icon that represents open and closed states. |
Methods inherited from class com.smartgwt.client.widgets.Label |
---|
getAlign, getAutoFit, getContents, getDynamicContents, getIconAlign, getIconHeight, getIconOrientation, getIconSize, getIconSpacing, getIconWidth, getShowDisabledIcon, getShowDownIcon, getShowFocusedIcon, getShowRollOverIcon, getShowSelectedIcon, getStyleName, getValign, getWrap, setAlign, setAutoFit, setContents, setDefaultProperties, setDynamicContents, setIconAlign, setIconHeight, setIconOrientation, setIconSize, setIconSpacing, setIconWidth, setShowDisabledIcon, setShowDownIcon, setShowFocusedIcon, setShowRollOverIcon, setShowSelectedIcon, setStyleName, setValign, setWrap |
Methods inherited from class com.smartgwt.client.widgets.Button |
---|
action, addIconClickHandler, addToRadioGroup, deselect, getActionType, getHiliteAccessKey, getRadioGroup, getSelected, getShowDisabled, getShowDown, getShowFocused, getShowRollOver, getState, getTitle, isSelected, removeFromRadioGroup, removeFromRadioGroup, select, setActionType, setDefaultProperties, setDisabled, setHiliteAccessKey, setRadioGroup, setSelected, setShowDisabled, setShowDown, setShowFocused, setShowRollOver, setState, setTitle, setVAlign |
Methods inherited from class com.smartgwt.client.widgets.StatefulCanvas |
---|
getOverCanvasConstructor, getRedrawOnStateChange, getShowFocusedAsOver, getShowOverCanvas, getStateSuffix, setDefaultProperties, setOverCanvasConstructor, setRedrawOnStateChange, setShowFocusedAsOver, setShowOverCanvas, setTitleStyle |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
addAttachHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
addStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getStyleElement, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, 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 |
Constructor Detail |
---|
public SectionHeader()
public SectionHeader(JavaScriptObject jsObj)
Method Detail |
---|
public static SectionHeader getOrCreateRef(JavaScriptObject jsObj)
protected JavaScriptObject create()
create
in class Label
public void setBaseStyle(java.lang.String baseStyle) throws java.lang.IllegalStateException
Note : This is an advanced setting
setBaseStyle
in class Button
baseStyle
- baseStyle Default value is "sectionHeader"
java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic java.lang.String getBaseStyle()
getBaseStyle
in class Button
public void setIcon(java.lang.String icon) throws java.lang.IllegalStateException
Not shown if
canCollapse
is false.
Note : This is an advanced setting
setIcon
in class Label
icon
- icon Default value is "[SKIN]SectionHeader/opener.gif"
java.lang.IllegalStateException
- this property cannot be changed after the component has been createdButtonIcon overview and related methods
public java.lang.String getIcon()
Not shown if
canCollapse
is false.
getIcon
in class Label
ButtonIcon overview and related methods
public SectionStack getSectionStack()
SectionStack
in which this section header is embedded.
public static void setDefaultProperties(SectionHeader sectionHeaderProperties)
Note: This method is intended for setting default attributes only and will effect all instances of the underlying class (including those automatically generated in JavaScript). This method should not be used to apply standard EventHandlers or override methods for a class - use a custom subclass instead.
sectionHeaderProperties
- properties that should be used as new defaults when instances of this class are createdpublic void setControls(Canvas... controls) throws java.lang.IllegalStateException
controls
- the controls
java.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic SectionStackSection getSection()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |