public class CmsHighlightingBorder
extends com.google.gwt.user.client.ui.Composite
限定符和类型 | 类和说明 |
---|---|
static class |
CmsHighlightingBorder.BorderColor
Enumeration of available border colours.
|
限定符和类型 | 字段和说明 |
---|---|
protected com.google.gwt.dom.client.DivElement |
m_borderBottom
The bottom border.
|
protected com.google.gwt.dom.client.DivElement |
m_borderLeft
The left border.
|
protected com.google.gwt.dom.client.DivElement |
m_borderRight
The right border.
|
protected com.google.gwt.dom.client.DivElement |
m_borderTop
The top border.
|
构造器和说明 |
---|
CmsHighlightingBorder(CmsPositionBean position,
CmsHighlightingBorder.BorderColor color)
Constructor.
|
CmsHighlightingBorder(com.google.gwt.dom.client.Element positioningParent,
CmsHighlightingBorder.BorderColor color)
Constructor.
|
CmsHighlightingBorder(int height,
int width,
int positionLeft,
int positionTop,
CmsHighlightingBorder.BorderColor color)
Constructor.
|
限定符和类型 | 方法和说明 |
---|---|
void |
hide()
Hides the border.
|
void |
resetPosition()
Recalculates the position and dimension when a positioning parent is given.
|
void |
setPosition(CmsPositionBean position)
Sets the border position.
|
void |
setPosition(int height,
int width,
int positionLeft,
int positionTop)
Sets the border position.
|
void |
show()
Shows the border.
|
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents
@UiField protected com.google.gwt.dom.client.DivElement m_borderBottom
@UiField protected com.google.gwt.dom.client.DivElement m_borderLeft
@UiField protected com.google.gwt.dom.client.DivElement m_borderRight
@UiField protected com.google.gwt.dom.client.DivElement m_borderTop
public CmsHighlightingBorder(CmsPositionBean position, CmsHighlightingBorder.BorderColor color)
position
- the position datacolor
- the border colorpublic CmsHighlightingBorder(com.google.gwt.dom.client.Element positioningParent, CmsHighlightingBorder.BorderColor color)
positioningParent
- the element the border is positioned around, position is set relative to itcolor
- the border colorpublic CmsHighlightingBorder(int height, int width, int positionLeft, int positionTop, CmsHighlightingBorder.BorderColor color)
height
- the heightwidth
- the widthpositionLeft
- the absolute left positionpositionTop
- the absolute top positioncolor
- the border colorpublic void hide()
public void resetPosition()
public void setPosition(CmsPositionBean position)
position
- the position datapublic void setPosition(int height, int width, int positionLeft, int positionTop)
height
- the heightwidth
- the widthpositionLeft
- the absolute left positionpositionTop
- the absolute top positionpublic void show()