|
|||||||||
| 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.StretchImg
com.smartgwt.client.widgets.StretchImgButton
com.smartgwt.client.widgets.tab.ImgTab
public class ImgTab
Specialized StretchImgButton used by TabSet/TabBar for tabs
| 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, nativeObject, scClassName |
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
ImgTab()
|
|
ImgTab(JavaScriptObject jsObj)
|
|
| Method Summary | |
|---|---|
protected JavaScriptObject |
create()
|
Alignment |
getAlign()
Alignment of title text |
String |
getBaseStyle()
Base CSS style. |
int |
getCapSize()
How big are the end pieces by default |
String |
getLabelSkinImgDir()
Base path for images shown within this ImgTab's label. |
com.smartgwt.logicalstructure.core.LogicalStructureObject |
getLogicalStructure()
|
static ImgTab |
getOrCreateRef(JavaScriptObject jsObj)
|
Boolean |
getShowFocused()
Should we visibly change state when the tab receives keyboard focus? |
Boolean |
getShowRollOver()
Should we visibly change state when the mouse goes over this tab |
String |
getSkinImgDir()
Base path for the images. |
String |
getSrc()
Base URL for tab images |
String |
getTitleStyle()
Like titleStyle, can set to provide a separate style
for the title text. |
void |
setAlign(Alignment align)
Alignment of title text |
void |
setBaseStyle(String baseStyle)
Base CSS style. |
void |
setCapSize(int capSize)
How big are the end pieces by default |
static void |
setDefaultProperties(ImgTab imgTabProperties)
Class level method to set the default properties of this class. |
void |
setJavaScriptObject(JavaScriptObject jsObj)
|
void |
setLabelSkinImgDir(String labelSkinImgDir)
Base path for images shown within this ImgTab's label. |
com.smartgwt.logicalstructure.core.LogicalStructureObject |
setLogicalStructure(com.smartgwt.logicalstructure.widgets.tab.ImgTabLogicalStructure s)
|
void |
setShowFocused(Boolean showFocused)
Should we visibly change state when the tab receives keyboard focus? |
void |
setShowRollOver(Boolean showRollOver)
Should we visibly change state when the mouse goes over this tab |
void |
setSkinImgDir(String skinImgDir)
Base path for the images. |
void |
setSrc(String src)
Base URL for tab images |
void |
setTitleStyle(String titleStyle)
Like titleStyle, can set to provide a separate style
for the title text. |
| Methods inherited from class com.smartgwt.client.widgets.StretchImg |
|---|
getGripImgSuffix, getHSrc, getIgnoreRTL, getImageType, getItemBaseStyle, getShowDownGrip, getShowGrip, getShowRollOverGrip, getVSrc, setDefaultProperties, setGripImgSuffix, setHSrc, setIgnoreRTL, setImageType, setItemBaseStyle, setLogicalStructure, setShowDownGrip, setShowGrip, setShowRollOverGrip, setState, setState, setVSrc |
| Methods inherited from class com.smartgwt.client.widgets.StatefulCanvas |
|---|
getOverCanvasConstructor, getRedrawOnStateChange, getShowFocusedAsOver, getShowOverCanvas, getStateSuffix, setDefaultProperties, setLogicalStructure, setOverCanvasConstructor, setRedrawOnStateChange, setShowFocusedAsOver, setShowOverCanvas |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, 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, resolvePotentialElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, 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 ImgTab()
public ImgTab(JavaScriptObject jsObj)
| Method Detail |
|---|
public static ImgTab getOrCreateRef(JavaScriptObject jsObj)
public void setJavaScriptObject(JavaScriptObject jsObj)
setJavaScriptObject in class StretchImgButtonprotected JavaScriptObject create()
create in class StretchImgButtonpublic void setAlign(Alignment align)
setAlign in class StretchImgButtonalign - align Default value is Canvas.CENTERPositioning overview and related methodspublic Alignment getAlign()
getAlign in class StretchImgButtonPositioning overview and related methods
public void setBaseStyle(String baseStyle)
throws IllegalStateException
StretchImgButtonWhen the component changes state (eg becomes disabled), a suffix will be appended to this style name, reflecting the following states: "Over", "Down", or "Disabled".
If the widget is selected, the suffixes will be "Selected", "SelectedOver", etc.
If the widget has focus and showFocused is true, and showFocusedAsOver is
false, the suffixes will be "Focused", "FocusedOver", etc, or if the widget is both selected and focused,
"SelectedFocused", "SelectedFocusedOver", etc.
For example, if baseStyle is set to "button", this
component is selected and the mouse cursor is over this
component, the style "buttonSelectedOver" will be used.
If this method is called after the component has been drawn/initialized:
Sets the base CSS style. As the component changes state and/or is selected, suffixes will be added to the base style.
setBaseStyle in class StretchImgButtonbaseStyle - . See CSSStyleName. Default value is "tab"
IllegalStateException - this property cannot be changed after the component has been createdpublic String getBaseStyle()
StretchImgButtonWhen the component changes state (eg becomes disabled), a suffix will be appended to this style name, reflecting the following states: "Over", "Down", or "Disabled".
If the widget is selected, the suffixes will be "Selected", "SelectedOver", etc.
If the widget has focus and showFocused is true, and showFocusedAsOver is
false, the suffixes will be "Focused", "FocusedOver", etc, or if the widget is both selected and focused,
"SelectedFocused", "SelectedFocusedOver", etc.
For example, if baseStyle is set to "button", this
component is selected and the mouse cursor is over this
component, the style "buttonSelectedOver" will be used.
getBaseStyle in class StretchImgButtonCSSStyleNamepublic void setCapSize(int capSize)
setCapSize in class StretchImgButtoncapSize - capSize Default value is 2Appearance overview and related methodspublic int getCapSize()
getCapSize in class StretchImgButtonAppearance overview and related methodspublic void setLabelSkinImgDir(String labelSkinImgDir)
setLabelSkinImgDir in class StretchImgButtonlabelSkinImgDir - . See String. Default value is "images/"public String getLabelSkinImgDir()
getLabelSkinImgDir in class StretchImgButtonStringpublic void setShowFocused(Boolean showFocused)
setShowFocused in class StretchImgButtonshowFocused - showFocused Default value is trueState overview and related methodspublic Boolean getShowFocused()
getShowFocused in class StretchImgButtonState overview and related methodspublic void setShowRollOver(Boolean showRollOver)
setShowRollOver in class StretchImgButtonshowRollOver - showRollOver Default value is falseState overview and related methodspublic Boolean getShowRollOver()
getShowRollOver in class StretchImgButtonState overview and related methodspublic void setSkinImgDir(String skinImgDir)
tabBarPosition is appended as an additional path segment,
yielding "images/Tab/top/" et al.
setSkinImgDir in class CanvasskinImgDir - . See String. Default value is "images/Tab/"Images overview and related methodspublic String getSkinImgDir()
tabBarPosition is appended as an additional path segment,
yielding "images/Tab/top/" et al.
getSkinImgDir in class CanvasStringImages overview and related methodspublic void setSrc(String src)
setSrc in class StretchImgButtonsrc - . See String. Default value is "tab.gif"StretchImg.setHSrc(java.lang.String),
StretchImg.setVSrc(java.lang.String),
Appearance overview and related methodspublic String getSrc()
getSrc in class StretchImgButtonStringStretchImg.getHSrc(),
StretchImg.getVSrc(),
Appearance overview and related methods
public void setTitleStyle(String titleStyle)
throws IllegalStateException
titleStyle, can set to provide a separate style
for the title text. If set and the ImgTab is vertical, a "v" will be automatically prepended to the style name (hence "tabTitle" -> "vtabTitle").
setTitleStyle in class StretchImgButtontitleStyle - . See CSSStyleName. Default value is null
IllegalStateException - this property cannot be changed after the component has been createdpublic String getTitleStyle()
titleStyle, can set to provide a separate style
for the title text. If set and the ImgTab is vertical, a "v" will be automatically prepended to the style name (hence "tabTitle" -> "vtabTitle").
getTitleStyle in class StretchImgButtonCSSStyleNamepublic static void setDefaultProperties(ImgTab imgTabProperties)
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.
imgTabProperties - properties that should be used as new defaults when instances of this class are createdpublic com.smartgwt.logicalstructure.core.LogicalStructureObject setLogicalStructure(com.smartgwt.logicalstructure.widgets.tab.ImgTabLogicalStructure s)
public com.smartgwt.logicalstructure.core.LogicalStructureObject getLogicalStructure()
getLogicalStructure in interface LogicalStructuregetLogicalStructure in class StretchImgButton
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||