|
|||||||||
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.EdgedCanvas
public class EdgedCanvas
EdgedCanvas acts as a decorative, image-based frame around another single Canvas.
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 | |
---|---|
EdgedCanvas()
|
|
EdgedCanvas(JavaScriptObject jsObj)
|
Method Summary | |
---|---|
protected JavaScriptObject |
create()
|
Boolean |
getAddEdgeStyleSuffix()
If specified, the edgeStyleName will be treated as a
base style name and appended with following suffixes to support separate styling per cell: |
String |
getCenterBackgroundColor()
Background color for the center section only. |
Integer |
getEdgeBottom()
Height in pixels for bottom corners and edges. |
String |
getEdgeColor()
CSS color (WITHOUT "#") for the edges. |
String |
getEdgeImage()
Base name of images for edges. |
Integer |
getEdgeLeft()
Height in pixels for left corners and edges. |
Integer |
getEdgeOffsetBottom()
Amount the contained Canvas should be offset from the bottom. |
Integer |
getEdgeOffsetLeft()
Amount the contained Canvas should be offset from the left. |
Integer |
getEdgeOffsetRight()
Amount the contained Canvas should be offset from the right. |
Integer |
getEdgeOffsetTop()
Amount the contained Canvas should be offset from the top. |
Integer |
getEdgeRight()
Height in pixels for right corners and edges. |
String |
getEdgeStyleName()
Optional property specifying the CSS ClassName to apply to the various parts of this edged canvas (top, bottom, corners, sides and center). |
Integer |
getEdgeTop()
Height in pixels for top corners and edges. |
static EdgedCanvas |
getOrCreateRef(JavaScriptObject jsObj)
|
Boolean |
getShowCenter()
Whether to show media in the center section, that is, behind the decorated Canvas. |
String |
getSkinImgDir()
Standard skin directory for edge images (sides and corners). |
static void |
preloadImages()
Preload primary EdgedCanvas images. |
void |
setAddEdgeStyleSuffix(Boolean addEdgeStyleSuffix)
If specified, the edgeStyleName will be treated as a
base style name and appended with following suffixes to support separate styling per cell: |
void |
setCenterBackgroundColor(String centerBackgroundColor)
Background color for the center section only. |
void |
setEdgeBottom(Integer edgeBottom)
Height in pixels for bottom corners and edges. |
void |
setEdgeColor(String edgeColor)
CSS color (WITHOUT "#") for the edges. |
void |
setEdgeImage(String edgeImage)
Base name of images for edges. |
void |
setEdgeLeft(Integer edgeLeft)
Height in pixels for left corners and edges. |
void |
setEdgeOffsetBottom(Integer edgeOffsetBottom)
Amount the contained Canvas should be offset from the bottom. |
void |
setEdgeOffsetLeft(Integer edgeOffsetLeft)
Amount the contained Canvas should be offset from the left. |
void |
setEdgeOffsetRight(Integer edgeOffsetRight)
Amount the contained Canvas should be offset from the right. |
void |
setEdgeOffsetTop(Integer edgeOffsetTop)
Amount the contained Canvas should be offset from the top. |
void |
setEdgeRight(Integer edgeRight)
Height in pixels for right corners and edges. |
void |
setEdgeStyleName(String edgeStyleName)
Optional property specifying the CSS ClassName to apply to the various parts of this edged canvas (top, bottom, corners, sides and center). |
void |
setEdgeTop(Integer edgeTop)
Height in pixels for top corners and edges. |
void |
setShowCenter(Boolean showCenter)
Whether to show media in the center section, that is, behind the decorated Canvas. |
void |
setSkinImgDir(String skinImgDir)
Standard skin directory for edge images (sides and corners). |
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 EdgedCanvas()
public EdgedCanvas(JavaScriptObject jsObj)
Method Detail |
---|
public static EdgedCanvas getOrCreateRef(JavaScriptObject jsObj)
protected JavaScriptObject create()
create
in class Canvas
public void setSkinImgDir(String skinImgDir) throws IllegalStateException
setSkinImgDir
in class Canvas
skinImgDir
- skinImgDir Default value is "images/edges/"
IllegalStateException
- this property cannot be changed after the component has been createdpublic String getSkinImgDir()
getSkinImgDir
in class Canvas
public void setEdgeImage(String edgeImage) throws IllegalStateException
The full list of extensions is: "_TL", "_TR", "_BL", "_BR", "_T", "_L", "_B", "_R", "_center".
setEdgeImage
in class Canvas
edgeImage
- edgeImage Default value is "[SKIN]/rounded/frame/FFFFFF/6.png"
IllegalStateException
- this property cannot be changed after the component has been createdpublic String getEdgeImage()
The full list of extensions is: "_TL", "_TR", "_BL", "_BR", "_T", "_L", "_B", "_R", "_center".
getEdgeImage
in class Canvas
public void setEdgeColor(String edgeColor) throws IllegalStateException
edgeColor
- edgeColor Default value is null
IllegalStateException
- this property cannot be changed after the component has been createdpublic String getEdgeColor()
public void setShowCenter(Boolean showCenter) throws IllegalStateException
showCenter
- showCenter Default value is false
IllegalStateException
- this property cannot be changed after the component has been createdpublic Boolean getShowCenter()
public void setEdgeLeft(Integer edgeLeft) throws IllegalStateException
edgeLeft
- edgeLeft Default value is null
IllegalStateException
- this property cannot be changed after the component has been createdpublic Integer getEdgeLeft()
public void setEdgeRight(Integer edgeRight) throws IllegalStateException
edgeRight
- edgeRight Default value is null
IllegalStateException
- this property cannot be changed after the component has been createdpublic Integer getEdgeRight()
public void setEdgeTop(Integer edgeTop) throws IllegalStateException
edgeTop
- edgeTop Default value is null
IllegalStateException
- this property cannot be changed after the component has been createdpublic Integer getEdgeTop()
public void setEdgeBottom(Integer edgeBottom) throws IllegalStateException
edgeBottom
- edgeBottom Default value is null
IllegalStateException
- this property cannot be changed after the component has been createdpublic Integer getEdgeBottom()
public void setEdgeOffsetTop(Integer edgeOffsetTop) throws IllegalStateException
Note : This is an advanced setting
edgeOffsetTop
- edgeOffsetTop Default value is null
IllegalStateException
- this property cannot be changed after the component has been createdpublic Integer getEdgeOffsetTop()
public void setEdgeOffsetBottom(Integer edgeOffsetBottom) throws IllegalStateException
Note : This is an advanced setting
edgeOffsetBottom
- edgeOffsetBottom Default value is null
IllegalStateException
- this property cannot be changed after the component has been createdpublic Integer getEdgeOffsetBottom()
public void setEdgeOffsetLeft(Integer edgeOffsetLeft) throws IllegalStateException
Note : This is an advanced setting
edgeOffsetLeft
- edgeOffsetLeft Default value is null
IllegalStateException
- this property cannot be changed after the component has been createdpublic Integer getEdgeOffsetLeft()
public void setEdgeOffsetRight(Integer edgeOffsetRight) throws IllegalStateException
Note : This is an advanced setting
edgeOffsetRight
- edgeOffsetRight Default value is null
IllegalStateException
- this property cannot be changed after the component has been createdpublic Integer getEdgeOffsetRight()
public void setCenterBackgroundColor(String centerBackgroundColor) throws IllegalStateException
centerBackgroundColor
- centerBackgroundColor Default value is null
IllegalStateException
- this property cannot be changed after the component has been createdpublic String getCenterBackgroundColor()
public void setEdgeStyleName(String edgeStyleName)
addEdgeStyleSuffix
.
edgeStyleName
- edgeStyleName Default value is nullpublic String getEdgeStyleName()
addEdgeStyleSuffix
.
public void setAddEdgeStyleSuffix(Boolean addEdgeStyleSuffix)
edgeStyleName
will be treated as a
base style name and appended with following suffixes to support separate styling per cell: _TL
(top
left cell)
_T
(top center cell)
_TR
(top right cell)
_L
(middle left
cell)
_C
(center cell)
_R
(middle right cell)
_BL
(bottom left
cell)
_B
(bottom center cell)
_BR
(bottom right cell)
addEdgeStyleSuffix
- addEdgeStyleSuffix Default value is falsepublic Boolean getAddEdgeStyleSuffix()
edgeStyleName
will be treated as a
base style name and appended with following suffixes to support separate styling per cell: _TL
(top
left cell)
_T
(top center cell)
_TR
(top right cell)
_L
(middle left
cell)
_C
(center cell)
_R
(middle right cell)
_BL
(bottom left
cell)
_B
(bottom center cell)
_BR
(bottom right cell)
public static void preloadImages()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |