|
|||||||||
| 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. |
static void |
setDefaultProperties(EdgedCanvas edgedCanvasProperties)
Class level method to set the default properties of this class. |
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 |
|---|
addAttachHandler, addBitlessDomHandler, 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, 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 EdgedCanvas()
public EdgedCanvas(JavaScriptObject jsObj)
| Method Detail |
|---|
public static EdgedCanvas getOrCreateRef(JavaScriptObject jsObj)
protected JavaScriptObject create()
create in class Canvaspublic 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 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 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 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 setEdgeImage(String edgeImage)
throws IllegalStateException
The full list of extensions is: "_TL", "_TR", "_BL", "_BR", "_T", "_L", "_B", "_R", "_center".
setEdgeImage in class CanvasedgeImage - 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 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 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 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 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 setEdgeStyleName(String edgeStyleName)
addEdgeStyleSuffix.
edgeStyleName - edgeStyleName Default value is nullpublic String getEdgeStyleName()
addEdgeStyleSuffix.
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 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 setSkinImgDir(String skinImgDir)
throws IllegalStateException
setSkinImgDir in class CanvasskinImgDir - skinImgDir Default value is "images/edges/"
IllegalStateException - this property cannot be changed after the component has been createdImages overview and related methodspublic String getSkinImgDir()
getSkinImgDir in class CanvasImages overview and related methodspublic static void setDefaultProperties(EdgedCanvas edgedCanvasProperties)
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.
edgedCanvasProperties - properties that should be used as new defaults when instances of this class are createdpublic static void preloadImages()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||