|
|||||||||
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, 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 |
static ImgTab |
getOrCreateRef(JavaScriptObject jsObj)
|
Boolean |
getShowFocused()
Should we visibly change state when the tab recieves 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 |
void |
setShowFocused(Boolean showFocused)
Should we visibly change state when the tab recieves 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 |
---|
getHSrc, getImageType, getItemBaseStyle, getShowGrip, getVSrc, setHSrc, setImageType, setItemBaseStyle, setShowGrip, setState, setState, setVSrc |
Methods inherited from class com.smartgwt.client.widgets.StatefulCanvas |
---|
getOverCanvasConstructor, getRedrawOnStateChange, getShowFocusedAsOver, getShowOverCanvas, getStateSuffix, setOverCanvasConstructor, setRedrawOnStateChange, setShowFocusedAsOver, setShowOverCanvas |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
addDomHandler, addHandler, 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, 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 ImgTab()
public ImgTab(JavaScriptObject jsObj)
Method Detail |
---|
public static ImgTab getOrCreateRef(JavaScriptObject jsObj)
protected JavaScriptObject create()
create
in class StretchImgButton
public void setCapSize(int capSize)
setCapSize
in class StretchImgButton
capSize
- capSize Default value is 2public int getCapSize()
getCapSize
in class StretchImgButton
public void setSkinImgDir(String skinImgDir)
tabBarPosition
is appended as an additional path segment,
yielding "images/Tab/top/" et al.
setSkinImgDir
in class Canvas
skinImgDir
- skinImgDir Default value is "images/Tab/"public String getSkinImgDir()
tabBarPosition
is appended as an additional path segment,
yielding "images/Tab/top/" et al.
getSkinImgDir
in class Canvas
public void setBaseStyle(String baseStyle) throws IllegalStateException
StretchImgButton
When 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 StretchImgButton.isSelected()
and the mouse cursor is over this
component, the style "buttonSelectedOver" will be used.
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 StretchImgButton
baseStyle
- baseStyle Default value is "tab"
IllegalStateException
- this property cannot be changed after the component has been createdpublic String getBaseStyle()
StretchImgButton
When 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 StretchImgButton.isSelected()
and the mouse cursor is over this
component, the style "buttonSelectedOver" will be used.
getBaseStyle
in class StretchImgButton
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 StretchImgButton
titleStyle
- titleStyle 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 StretchImgButton
public void setSrc(String src)
setSrc
in class StretchImgButton
src
- src Default value is "tab.gif"public String getSrc()
getSrc
in class StretchImgButton
public void setShowRollOver(Boolean showRollOver)
setShowRollOver
in class StretchImgButton
showRollOver
- showRollOver Default value is falsepublic Boolean getShowRollOver()
getShowRollOver
in class StretchImgButton
public void setShowFocused(Boolean showFocused)
setShowFocused
in class StretchImgButton
showFocused
- showFocused Default value is truepublic Boolean getShowFocused()
getShowFocused
in class StretchImgButton
public void setAlign(Alignment align)
setAlign
in class StretchImgButton
align
- align Default value is Canvas.CENTERpublic Alignment getAlign()
getAlign
in class StretchImgButton
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |