public class EventCanvas extends VLayout
layout
subclass for
displaying a CalendarEvent
in a CalendarView
. Each instance can be styled
, and can render a single area, or separate
header
and body
areas, for the look of a Window.
The component's
close and context buttons, and any necessary resizers, are shown on rollover
.
config, configOnly, factoryCreated, factoryProperties, id, nativeObject, scClassName
Constructor and Description |
---|
EventCanvas() |
EventCanvas(com.google.gwt.core.client.JavaScriptObject jsObj) |
Modifier and Type | Method and Description |
---|---|
static void |
changeAutoChildDefaults(java.lang.String autoChildName,
Canvas defaults)
Changes the defaults for Canvas AutoChildren named
autoChildName . |
static void |
changeAutoChildDefaults(java.lang.String autoChildName,
FormItem defaults)
Changes the defaults for FormItem AutoChildren named
autoChildName . |
protected com.google.gwt.core.client.JavaScriptObject |
create() |
java.lang.String |
getBodyHTML()
Return the HTML to show in the body of this EventCanvas.
|
java.lang.String |
getBodyStyle()
CSS class for the
body area of the EventCanvas. |
Calendar |
getCalendar()
The
Calendar in which this EventCanvas is being rendered. |
CalendarView |
getCalendarView()
The
CalendarView in which this EventCanvas is being rendered. |
CalendarEvent |
getEvent()
The
event associated with this EventCanvas. |
Img |
getGripper()
When
showGripper is true, this is the component
that will be rendered adjacent to the canvas and allow the canvas to be moved with the mouse. |
java.lang.String |
getGripperIcon()
The source for the icon displayed as the "gripper" that snaps to the top of an event canvas and allows an event to be
dragged with the mouse.
|
java.lang.Integer |
getHeaderHeight()
|
java.lang.String |
getHeaderHTML()
Returns the HTML to show in the header of this EventCanvas.
|
java.lang.String |
getHeaderStyle()
CSS class for the
header area of the EventCanvas. |
java.lang.Boolean |
getHeaderWrap()
Whether the
header area should autosize
vertically to display all contents. |
java.lang.String |
getInnerHTML()
Returns the HTML to show in the EventCanvas as a whole.
|
Label |
getLabel()
When
showLabel is true, this autoChild is used to
display the header text , adjacent to this
eventCanvas. |
com.smartgwt.logicalstructure.core.LogicalStructureObject |
getLogicalStructure()
Getter implementing the
LogicalStructure interface,
which supports Eclipse's logical structure debugging facility. |
static EventCanvas |
getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj) |
java.lang.Boolean |
getShowBody()
Renders a body DIV that fills the main area of the canvas, or all of it if no
header is shown. |
java.lang.Boolean |
getShowGripper()
When set to true, shows the
gripper component, which
snaps, centered, to the top edge of the eventCanvas and can be used to move it with the mouse. |
java.lang.Boolean |
getShowHeader()
|
java.lang.Boolean |
getShowLabel()
When set to true, the
header text for the
associated event is not rendered inside the eventCanvas itself. |
java.lang.Boolean |
getShowRolloverControls()
When set to the default value of true, this attribute causes a set of components to be shown when the mouse rolls over
this EventCanvas.
|
java.lang.String |
getStyleName()
The CSS class for this EventCanvas.
|
java.lang.Boolean |
getVertical()
Indicates the orientation of the event in its containing view.
|
void |
setBodyStyle(java.lang.String bodyStyle)
CSS class for the
body area of the EventCanvas. |
void |
setCalendar(Calendar calendar)
The
Calendar in which this EventCanvas is being rendered. |
void |
setCalendarView(CalendarView calendarView)
The
CalendarView in which this EventCanvas is being rendered. |
static void |
setDefaultProperties(EventCanvas eventCanvasProperties)
Class level method to set the default properties of this class.
|
void |
setEvent(CalendarEvent event)
The
event associated with this EventCanvas. |
void |
setGripperIcon(java.lang.String gripperIcon)
The source for the icon displayed as the "gripper" that snaps to the top of an event canvas and allows an event to be
dragged with the mouse.
|
void |
setHeaderHeight(java.lang.Integer headerHeight)
|
void |
setHeaderStyle(java.lang.String headerStyle)
CSS class for the
header area of the EventCanvas. |
void |
setHeaderWrap(java.lang.Boolean headerWrap)
Whether the
header area should autosize
vertically to display all contents. |
com.smartgwt.logicalstructure.core.LogicalStructureObject |
setLogicalStructure(com.smartgwt.logicalstructure.widgets.calendar.EventCanvasLogicalStructure s)
Setter implementing the
LogicalStructure interface,
which supports Eclipse's logical structure debugging facility. |
void |
setShowBody(java.lang.Boolean showBody)
Renders a body DIV that fills the main area of the canvas, or all of it if no
header is shown. |
void |
setShowGripper(java.lang.Boolean showGripper)
When set to true, shows the
gripper component, which
snaps, centered, to the top edge of the eventCanvas and can be used to move it with the mouse. |
void |
setShowHeader(java.lang.Boolean showHeader)
|
void |
setShowLabel(java.lang.Boolean showLabel)
When set to true, the
header text for the
associated event is not rendered inside the eventCanvas itself. |
void |
setShowRolloverControls(java.lang.Boolean showRolloverControls)
When set to the default value of true, this attribute causes a set of components to be shown when the mouse rolls over
this EventCanvas.
|
void |
setStyleName(java.lang.String styleName)
The CSS class for this EventCanvas.
|
void |
setVertical(java.lang.Boolean vertical)
Indicates the orientation of the event in its containing view.
|
setDefaultProperties, setLogicalStructure
addMember, addMember, addMember, addMember, addMemberPostCreate, addMemberPostCreate, addMemberPreCreate, addMemberPreCreate, addMembers, addMembers, addMembersChangedHandler, getAnimateMembers, getAnimateMemberTime, getCanDropComponents, getDefaultResizeBars, getDropComponent, getDropLine, getDropLineThickness, getDropPosition, getEditProxyConstructor, getEnforcePolicy, getHPolicy, getLayoutBottomMargin, getLayoutLeftMargin, getLayoutMargin, getLayoutRightMargin, getLayoutTopMargin, getLeaveScrollbarGap, getLocateMembersBy, getLocateMembersType, getManagePercentBreadth, getMember, getMember, getMemberDefaultBreadth, getMemberNumber, getMemberNumber, getMemberOverlap, getMembers, getMembersLength, getMembersMargin, getMinMemberSize, getOverflow, getPaddingAsLayoutMargin, getResizeBar, getResizeBarClass, getResizeBarSize, getReverseOrder, getShowDragPlaceHolder, getShowDropLines, getStackZIndex, getVPolicy, hasMember, hideDropLine, hideMember, hideMember, layoutIsDirty, onInit_Layout, onInit, reflow, reflow, reflowNow, removeMember, removeMembers, removeMembers, reorderMember, reorderMembers, setAlign, setAlign, setAnimateMembers, setAnimateMemberTime, setCanDropComponents, setDefaultLayoutAlign, setDefaultLayoutAlign, setDefaultProperties, setDefaultResizeBars, setDropLineProperties, setDropLineThickness, setEditProxyConstructor, setEnforcePolicy, setHPolicy, setLayoutBottomMargin, setLayoutLeftMargin, setLayoutMargin, setLayoutRightMargin, setLayoutTopMargin, setLeaveScrollbarGap, setLocateMembersBy, setLocateMembersType, setLogicalStructure, setManagePercentBreadth, setMemberOverlap, setMembers, setMembersMargin, setMinMemberSize, setOverflow, setPaddingAsLayoutMargin, setPlaceHolderDefaults, setPlaceHolderProperties, setResizeBarClass, setResizeBarSize, setReverseOrder, setShowDragPlaceHolder, setShowDropLines, setStackZIndex, setVisibleMember, setVPolicy, showMember, showMember
addChild, addChild, addChild, addChild, addChild, addClickHandler, addDoubleClickHandler, addDragMoveHandler, addDragRepositionMoveHandler, addDragRepositionStartHandler, addDragRepositionStopHandler, addDragResizeMoveHandler, addDragResizeStartHandler, addDragResizeStopHandler, addDragStartHandler, addDragStopHandler, addDropHandler, addDropMoveHandler, addDropOutHandler, addDropOverHandler, addFocusChangedHandler, addHoverHandler, addHoverHiddenHandler, addKeyDownHandler, addKeyPressHandler, addMouseDownHandler, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseStillDownHandler, addMouseUpHandler, addMouseWheelHandler, addMovedHandler, addParentMovedHandler, addPeer, addPeer, addPeer, addPeer, addResizedHandler, addRightMouseDownHandler, addScrolledHandler, addShowContextMenuHandler, addSnapAlignCandidate, addStyleName, addVisibilityChangedHandler, adjustForContent, animateFade, animateFade, animateFade, animateFade, animateFade, animateFade, animateFade, animateFade, animateHide, animateHide, animateHide, animateMove, animateMove, animateMove, animateMove, animateRect, animateRect, animateRect, animateRect, animateResize, animateResize, animateResize, animateResize, animateScroll, animateScroll, animateScroll, animateScroll, animateScroll, animateScroll, animateShow, animateShow, animateShow, animateShow, animateShow, animateShow, asSGWTComponent, blur, bringToFront, clear, clickMaskUp, clickMaskUp, contains, contains, containsEvent, containsFocus, containsPoint, containsPoint, deparent, depeer, disable, enable, encloses, focus, focusInNextTabElement, focusInPreviousTabElement, getAbsoluteLeft, getAbsoluteTop, getAccessKey, getAlwaysShowScrollbars, getAnimateAcceleration, getAnimateFadeTime, getAnimateHideAcceleration, getAnimateHideTime, getAnimateMoveAcceleration, getAnimateMoveTime, getAnimateRectAcceleration, getAnimateRectTime, getAnimateResizeAcceleration, getAnimateResizeTime, getAnimateScrollAcceleration, getAnimateScrollTime, getAnimateShowAcceleration, getAnimateShowEffect, getAnimateShowTime, getAnimateTime, getAppImgDir, getAriaRole, getAutoDraw, getAutoMaskComponents, getAutoShowParent, getBackgroundColor, getBackgroundImage, getBackgroundPosition, getBackgroundRepeat, getBorder, getBottom, getById, getByJSObject, getByLocalId, getCanAcceptDrop, getCanDrag, getCanDragReposition, getCanDragResize, getCanDragScroll, getCanDrop, getCanDropBefore, getCanFocus, getCanHover, getCanSelectText, getCanvasAutoChild, getCanvasItem, getChildren, getChildrenResizeSnapAlign, getChildrenSnapAlign, getChildrenSnapCenterAlign, getChildrenSnapEdgeAlign, getChildrenSnapResizeToGrid, getChildrenSnapToGrid, getClassName, getComponentMask, getComponentMaskDefaults, getContentElement, getContents, getContextMenu, getCursor, getDataPath, getDefaultHeight, getDefaultWidth, getDestroyed, getDestroying, getDisabled, getDisabledCursor, getDisableTouchScrollingForDrag, getDoubleClickDelay, getDragAppearance, getDragIntersectStyle, getDragMaskType, getDragOpacity, getDragRepositionAppearance, getDragRepositionCursor, getDragResizeAppearance, getDragScrollDelay, getDragStartDistance, getDragTarget, getDragType, getDropTypes, getDropTypesAsString, getDynamicContents, getEdgeBackgroundColor, getEdgeCenterBackgroundColor, getEdgeImage, getEdgeMarginSize, getEdgeOffset, getEdgeOpacity, getEdgeShowCenter, getEdgeSize, getEditNode, getEditProxy, getElement, getElement, getEventEdge, getEventEdge, getExtraSpace, getFacetId, getFormItemAutoChild, getFullDataPath, getGroupBorderCSS, getGroupLabelBackgroundColor, getGroupLabelStyleName, getGroupTitle, getHeight, getHeightAsString, getHideUsingDisplayNone, getHoverAlign, getHoverAutoDestroy, getHoverComponent, getHoverDelay, getHoverHeight, getHoverHTML, getHoverMoveWithMouse, getHoverOpacity, getHoverStyle, getHoverVAlign, getHoverWidth, getHoverWrap, getHSnapOrigin, getHSnapOrigin, getHSnapPosition, getHSnapPosition, getHtmlElement, getHtmlPosition, getImage, getImgURL, getImgURL, getInnerContentHeight, getInnerContentWidth, getInnerHeight, getInnerWidth, getIsGroup, getIsPrinting, getIsSnapAlignCandidate, getKeepInParentRect, getLayoutAlign, getLeavePageSpace, getLeft, getLeftAsString, getLocateChildrenBy, getLocateChildrenType, getLocatePeersBy, getLocatePeersType, getMargin, getMasterCanvas, getMasterElement, getMatchElement, getMaxHeight, getMaxWidth, getMenuConstructor, getMinHeight, getMinNonEdgeSize, getMinWidth, getMomentumScrollMinSpeed, getMouseStillDownDelay, getMouseStillDownInitialDelay, getNextZIndex, getNoDoubleClicks, getNoDropCursor, getOffsetHeight, getOffsetWidth, getOffsetX, getOffsetY, getOpacity, getOuterElement, getPadding, getPageBottom, getPageLeft, getPageRect, getPageRight, getPageTop, getPanelContainer, getParentCanvas, getParentElement, getPeers, getPercentBox, getPercentSource, getPosition, getPrefix, getPrintChildrenAbsolutelyPositioned, getPrintHTML, getPrintHTML, getPrompt, getProportionalResizeModifiers, getProportionalResizing, getRect, getRedrawOnResize, getResizeBarTarget, getResizeFrom, getRight, getScrollbarSize, getScrollBottom, getScrollHeight, getScrollLeft, getScrollRight, getScrollTop, getScrollWidth, getShadowDepth, getShadowImage, getShadowOffset, getShadowSoftness, getShouldPrint, getShowCustomScrollbars, getShowDragShadow, getShowEdges, getShowHover, getShowHoverComponents, getShowResizeBar, getShowShadow, getShowSnapGrid, getShrinkElementOnHide, getSkinImgDir, getSnapAlignCandidates, getSnapAlignCenterLineStyle, getSnapAlignEdgeLineStyle, getSnapAxis, getSnapEdge, getSnapHDirection, getSnapHGap, getSnapOffsetLeft, getSnapOffsetTop, getSnapOnDrop, getSnapPosition, getSnapPosition, getSnapResizeToAlign, getSnapResizeToGrid, getSnapTo, getSnapToAlign, getSnapToCenterAlign, getSnapToEdgeAlign, getSnapToGrid, getSnapVDirection, getSnapVGap, getTabIndex, getTestInstance, getTitle, getTooltip, getTop, getTopAsString, getTopElement, getUseBackMask, getUseDragMask, getUseNativeDrag, getUseOpacityFilter, getUseTouchScrolling, getValuesManager, getViewportHeight, getViewportWidth, getVisibility, getVisibleHeight, getVisibleWidth, getVSnapOrigin, getVSnapOrigin, getVSnapPosition, getVSnapPosition, getWidth, getWidthAsString, getZIndex, getZIndex, handleHover, hide, hideClickMask, hideClickMask, hideComponentMask, hideComponentMask, hideContextMenu, imgHTML, imgHTML, imgHTML, intersects, isDirty, isDisabled, isDrawn, isFocused, isVisible, keyUp, layoutChildren, linkHTML, linkHTML, linkHTML, linkHTML, linkHTML, linkHTML, markForDestroy, markForRedraw, markForRedraw, moveAbove, moveBelow, moveBy, moveTo, onAttach, onDetach, pageScrollDown, pageScrollUp, parentResized, placeNear, placeNear, placeNear, printComponents, provideRuleContext, redraw, redraw, removeChild, removeChild, removePeer, removePeer, removeSnapAlignCandidate, resizeBy, resizeTo, resizeTo, revealChild, revealChild, scrollBy, scrollByPercent, scrollTo, scrollTo, scrollTo, scrollToBottom, scrollToLeft, scrollToPercent, scrollToRight, scrollToTop, sendToBack, setAccessKey, setAllowExternalFilters, setAlwaysShowScrollbars, setAnimateAcceleration, setAnimateFadeTime, setAnimateHideAcceleration, setAnimateHideTime, setAnimateMoveAcceleration, setAnimateMoveTime, setAnimateRectAcceleration, setAnimateRectTime, setAnimateResizeAcceleration, setAnimateResizeTime, setAnimateScrollAcceleration, setAnimateScrollTime, setAnimateShowAcceleration, setAnimateShowEffect, setAnimateShowTime, setAnimateTime, setAppImgDir, setAriaRole, setAriaState, setAutoChildConstructor, setAutoChildProperties, setAutoChildProperties, setAutoChildProperties, setAutoChildProperties, setAutoChildVisibility, setAutoDraw, setAutoHeight, setAutoMaskComponents, setAutoShowParent, setAutoWidth, setBackgroundColor, setBackgroundImage, setBackgroundPosition, setBackgroundRepeat, setBorder, setBottom, setCanAcceptDrop, setCanDrag, setCanDragReposition, setCanDragResize, setCanDragScroll, setCanDrop, setCanDropBefore, setCanFocus, setCanHover, setCanSelectText, setChildren, setChildrenResizeSnapAlign, setChildrenSnapAlign, setChildrenSnapCenterAlign, setChildrenSnapEdgeAlign, setChildrenSnapResizeToGrid, setChildrenSnapToGrid, setComponentMaskDefaults, setContents, setContextMenu, setCursor, setDataPath, setDefaultHeight, setDefaultPageSpace, setDefaultProperties, setDefaultWidth, setDisabled, setDisabledCursor, setDisableTouchScrollingForDrag, setDoubleClickDelay, setDragAppearance, setDragIntersectStyle, setDragMaskType, setDragOpacity, setDragRepositionAppearance, setDragRepositionCursor, setDragResizeAppearance, setDragScrollDelay, setDragStartDistance, setDragTarget, setDragType, setDropTypes, setDropTypes, setDynamicContents, setEdgeBackgroundColor, setEdgeCenterBackgroundColor, setEdgeImage, setEdgeMarginSize, setEdgeOffset, setEdgeOpacity, setEdgeShowCenter, setEdgeSize, setEditMode, setEditMode, setEditMode, setElement, setExtraSpace, setFacetId, setGroupBorderCSS, setGroupLabelBackgroundColor, setGroupLabelStyleName, setGroupTitle, setHeight, setHeight, setHeight, setHeight100, setHideUsingDisplayNone, setHoverAlign, setHoverAutoDestroy, setHoverDelay, setHoverHeight, setHoverMoveWithMouse, setHoverOpacity, setHoverStyle, setHoverVAlign, setHoverWidth, setHoverWrap, setHtmlElement, setHtmlPosition, setImage, setImage, setInitHandler, setIsGroup, setIsSnapAlignCandidate, setKeepInParentRect, setKeepInParentRect, setKeepInParentRect, setLayoutAlign, setLayoutAlign, setLeavePageSpace, setLeft, setLeft, setLocateChildrenBy, setLocateChildrenType, setLocatePeersBy, setLocatePeersType, setLogicalStructure, setMargin, setMatchElement, setMaxHeight, setMaxWidth, setMenuConstructor, setMinHeight, setMinNonEdgeSize, setMinWidth, setMomentumScrollMinSpeed, setMouseStillDownDelay, setMouseStillDownInitialDelay, setNeverUseFilters, setNoDoubleClicks, setNoDropCursor, setOpacity, setPadding, setPageLeft, setPageTop, setParentCanvas, setParentElement, setPeers, setPercentBox, setPercentSource, setPosition, setPrefix, setPrintChildrenAbsolutelyPositioned, setPrompt, setProportionalResizeModifiers, setProportionalResizing, setRect, setRect, setRedrawOnResize, setResizeBarTarget, setResizeFrom, setResizeFrom, setRight, setScrollbarConstructor, setScrollbarSize, setShadowDepth, setShadowImage, setShadowOffset, setShadowSoftness, setShouldPrint, setShowCustomScrollbars, setShowDragShadow, setShowEdges, setShowHover, setShowHoverComponents, setShowResizeBar, setShowShadow, setShowSnapGrid, setShrinkElementOnHide, setSkinImgDir, setSmoothFade, setSnapAlignCandidates, setSnapAlignCenterLineStyle, setSnapAlignEdgeLineStyle, setSnapAxis, setSnapEdge, setSnapHDirection, setSnapHGap, setSnapOffsetLeft, setSnapOffsetTop, setSnapOnDrop, setSnapResizeToAlign, setSnapResizeToGrid, setSnapTo, setSnapToAlign, setSnapToCenterAlign, setSnapToEdgeAlign, setSnapToGrid, setSnapVDirection, setSnapVGap, setTabIndex, setTitle, setTooltip, setTop, setTop, setUseBackMask, setUseDragMask, setUseNativeDrag, setUseOpacityFilter, setUseTouchScrolling, setValuesManager, setVisibility, setVisible, setWidth, setWidth, setWidth, setWidth100, setZIndex, shouldDragScroll, show, showClickMask, showComponentMask, showComponentMask, showNextTo, showNextTo, showNextTo, showNextTo, showPrintPreview, showPrintPreview, showPrintPreview, showPrintPreview, showRecursively, updateEditNode, updateHover, updateHover, updateShadow, visibleAtPoint, willAcceptDrop
addDrawHandler, applyFactoryProperties, destroy, doAddHandler, doInit, doOnRender, draw, equals, error, errorIfNotCreated, getAttribute, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDateArray, getAttributeAsDouble, getAttributeAsElement, getAttributeAsFloat, getAttributeAsFloatArray, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsMap, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getConfig, getDOM, getHandlerCount, getID, getJsObj, getOrCreateJsObj, getRef, getScClassName, hasAutoAssignedID, hashCode, initNativeObject, internalSetID, internalSetID, isConfigOnly, isCreated, isFactoryCreated, onBind, onDestroy, onDraw, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setConfig, setConfigOnly, setDragTracker, setFactoryCreated, setID, setJavaScriptObject, setLogicalStructure, setNullProperty, setPosition, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setScClassName, toString
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getLayoutData, getParent, isAttached, isOrWasAttached, onBrowserEvent, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getStyleElement, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent
public EventCanvas()
public EventCanvas(com.google.gwt.core.client.JavaScriptObject jsObj)
public static EventCanvas getOrCreateRef(com.google.gwt.core.client.JavaScriptObject jsObj)
public static void changeAutoChildDefaults(java.lang.String autoChildName, Canvas defaults)
autoChildName
.autoChildName
- name of an AutoChild to customize the defaults for.defaults
- Canvas defaults to apply. These defaults override any existing properties
without destroying or wiping out non-overridden properties. For usage tips on this
param, see SGWTProperties
.AutoChildUsage
public static void changeAutoChildDefaults(java.lang.String autoChildName, FormItem defaults)
autoChildName
.autoChildName
- name of an AutoChild to customize the defaults for.defaults
- FormItem defaults to apply. These defaults override any existing properties
without destroying or wiping out non-overridden properties. For usage tips on this
param, see SGWTProperties
.AutoChildUsage
protected com.google.gwt.core.client.JavaScriptObject create()
public void setBodyStyle(java.lang.String bodyStyle)
body area
of the EventCanvas. If
unset, defaults to the base styleName
with the
suffix "Body".bodyStyle
- See CSSStyleName
. Default value is nullAppearance overview and related methods
public java.lang.String getBodyStyle()
body area
of the EventCanvas. If
unset, defaults to the base styleName
with the
suffix "Body".CSSStyleName
Appearance overview and related methods
public void setCalendar(Calendar calendar) throws java.lang.IllegalStateException
Calendar
in which this EventCanvas is being rendered.calendar
- Default value is nulljava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic Calendar getCalendar()
Calendar
in which this EventCanvas is being rendered.public void setCalendarView(CalendarView calendarView) throws java.lang.IllegalStateException
CalendarView
in which this EventCanvas is being rendered.calendarView
- Default value is nulljava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic CalendarView getCalendarView()
CalendarView
in which this EventCanvas is being rendered.public void setEvent(CalendarEvent event) throws java.lang.IllegalStateException
event
associated with this EventCanvas.
event
to this EventCanvas, including updates to drag, style and rollover
properties.event
- the new event to apply to this EventCanvas. Default value is nulljava.lang.IllegalStateException
- this property cannot be changed after the component has been createdpublic CalendarEvent getEvent()
event
associated with this EventCanvas.public Img getGripper() throws java.lang.IllegalStateException
showGripper
is true, this is the component
that will be rendered adjacent to the canvas and allow the canvas to be moved with the mouse.
For an overview of how to use and configure AutoChildren, see Using AutoChildren
.
java.lang.IllegalStateException
- if this widget has not yet been rendered.public void setGripperIcon(java.lang.String gripperIcon)
gripperIcon
- See SCImgURL
. Default value is nullpublic java.lang.String getGripperIcon()
SCImgURL
public void setHeaderHeight(java.lang.Integer headerHeight)
header area
, when headerWrap
is false and showBody
is true. If showBody
is false, the
header area fills the canvas.headerHeight
- Default value is nullAppearance overview and related methods
public java.lang.Integer getHeaderHeight()
header area
, when headerWrap
is false and showBody
is true. If showBody
is false, the
header area fills the canvas.Appearance overview and related methods
public void setHeaderStyle(java.lang.String headerStyle)
header area
of the EventCanvas.
If unset, defaults to the base styleName
with the
suffix "Header".headerStyle
- See CSSStyleName
. Default value is nullAppearance overview and related methods
public java.lang.String getHeaderStyle()
header area
of the EventCanvas.
If unset, defaults to the base styleName
with the
suffix "Header".CSSStyleName
Appearance overview and related methods
public void setHeaderWrap(java.lang.Boolean headerWrap)
header area
should autosize
vertically to display all contents. If true, the header will wrap to multiple lines. If false, the header will be
sized according to the specified height
, or to
the full height of the canvas is showBody
is false.headerWrap
- Default value is nullAppearance overview and related methods
public java.lang.Boolean getHeaderWrap()
header area
should autosize
vertically to display all contents. If true, the header will wrap to multiple lines. If false, the header will be
sized according to the specified height
, or to
the full height of the canvas is showBody
is false.Appearance overview and related methods
public Label getLabel() throws java.lang.IllegalStateException
showLabel
is true, this autoChild is used to
display the header text
, adjacent to this
eventCanvas.
For an overview of how to use and configure AutoChildren, see Using AutoChildren
.
java.lang.IllegalStateException
- if this widget has not yet been rendered.public void setShowBody(java.lang.Boolean showBody)
header
is shown. This area typically displays an
event description
. This area can be styled
via bodyStyle
and the HTML it shows is retrieved
from a call to getBodyHTML()
. The default is taken
from Calendar.showEventDescriptions
.showBody
- Default value is nullpublic java.lang.Boolean getShowBody()
header
is shown. This area typically displays an
event description
. This area can be styled
via bodyStyle
and the HTML it shows is retrieved
from a call to getBodyHTML()
. The default is taken
from Calendar.showEventDescriptions
.public void setShowGripper(java.lang.Boolean showGripper)
gripper
component, which
snaps, centered, to the top edge of the eventCanvas and can be used to move it with the mouse.showGripper
- Default value is nullpublic java.lang.Boolean getShowGripper()
gripper
component, which
snaps, centered, to the top edge of the eventCanvas and can be used to move it with the mouse.public void setShowHeader(java.lang.Boolean showHeader)
body
of the event, and typically showing a name
or title - like a Window. This header area can be
styled via headerStyle
and the HTML it shows is
retrieved from a call to getHeaderHTML()
. The
default is taken from Calendar.showEventHeaders
.showHeader
- Default value is nullpublic java.lang.Boolean getShowHeader()
body
of the event, and typically showing a name
or title - like a Window. This header area can be
styled via headerStyle
and the HTML it shows is
retrieved from a call to getHeaderHTML()
. The
default is taken from Calendar.showEventHeaders
.public void setShowLabel(java.lang.Boolean showLabel)
header text
for the
associated event is not rendered inside the eventCanvas itself. Instead, it is rendered in it's own label
and shown as a peer of this eventCanvas, immediately
outside of it.
showLabel
- Default value is nullpublic java.lang.Boolean getShowLabel()
header text
for the
associated event is not rendered inside the eventCanvas itself. Instead, it is rendered in it's own label
and shown as a peer of this eventCanvas, immediately
outside of it.
public void setShowRolloverControls(java.lang.Boolean showRolloverControls)
close
and context
buttons, the latter's context menu
and the images used for
drag-resizing. Using rollover controls is more efficient that showing static buttons in each eventCanvas, so this
is the default behavior. See Calendar.useEventCanvasRolloverControls
for the alternative.
showRolloverControls
- Default value is truepublic java.lang.Boolean getShowRolloverControls()
close
and context
buttons, the latter's context menu
and the images used for
drag-resizing. Using rollover controls is more efficient that showing static buttons in each eventCanvas, so this
is the default behavior. See Calendar.useEventCanvasRolloverControls
for the alternative.
public void setStyleName(java.lang.String styleName)
eventCanvas.event
, if specified, or on the calendar
otherwise. Also see headerStyle
and bodyStyle
.
setStyleName
in class Canvas
styleName
- See CSSStyleName
. Default value is nullAppearance overview and related methods
public java.lang.String getStyleName()
eventCanvas.event
, if specified, or on the calendar
otherwise. Also see headerStyle
and bodyStyle
.
getStyleName
in class Canvas
CSSStyleName
Appearance overview and related methods
public void setVertical(java.lang.Boolean vertical)
setVertical
in class Layout
vertical
- Default value is truepublic java.lang.Boolean getVertical()
getVertical
in class Layout
public java.lang.String getBodyHTML()
Calendar.getEventBodyHTML()
, which returns the value of
the description field
for the current event
.Appearance overview and related methods
public java.lang.String getHeaderHTML()
name
of the current event
.Appearance overview and related methods
public java.lang.String getInnerHTML()
showHeader
and showBody
.getInnerHTML
in class BaseWidget
public static void setDefaultProperties(EventCanvas eventCanvasProperties)
Note: This method is intended for setting default attributes only and will affect 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. Calling this method after instances have been created can result in undefined behavior, since it bypasses any setters and a class instance may have already examined a particular property and not be expecting any changes through this route.
eventCanvasProperties
- properties that should be used as new defaults when instances of this class are createdSGWTProperties
public com.smartgwt.logicalstructure.core.LogicalStructureObject setLogicalStructure(com.smartgwt.logicalstructure.widgets.calendar.EventCanvasLogicalStructure s)
LogicalStructure
interface,
which supports Eclipse's logical structure debugging facility.public com.smartgwt.logicalstructure.core.LogicalStructureObject getLogicalStructure()
LogicalStructure
interface,
which supports Eclipse's logical structure debugging facility.getLogicalStructure
in interface LogicalStructure
getLogicalStructure
in class VLayout