public abstract class AbstractBorder extends com.google.gwt.user.client.ui.SimplePanel implements Border
| Modifier and Type | Field and Description |
|---|---|
protected Map<BorderLine,Boolean> |
linesVisibility
this map contains lines visibility settings
|
| Constructor and Description |
|---|
AbstractBorder(com.google.gwt.user.client.Element elem)
Creates an instance of this class and sets the element of the panel.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
encodeVisibility()
Encodes border line visibility attributes so that get a bitmap mask where each bit is a visibility flag value.
|
boolean |
isShadowVisibile()
Checks whether the shadow is visible.
|
boolean |
isVisible(BorderLine line)
Checks whether a border line is visible and returns the status of check.
|
protected abstract void |
render()
Reenders the border.
|
void |
setShadowVisibile(boolean shadowVisibile)
Sets the shadow visibility attribute.
|
void |
setVisible(boolean visible,
BorderLine line)
Sets border a line to be visible or invisible.
|
add, getContainerElement, getWidget, iterator, remove, setWidget, setWidgetadd, adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEventsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetContentElement, getWidget, setWidgetprotected Map<BorderLine,Boolean> linesVisibility
public AbstractBorder(com.google.gwt.user.client.Element elem)
elem - is an element.public void setVisible(boolean visible,
BorderLine line)
setVisible in interface Bordervisible - is a visibility flag.line - is a border line to be set.public boolean isVisible(BorderLine line)
public boolean isShadowVisibile()
isShadowVisibile in interface Borderpublic void setShadowVisibile(boolean shadowVisibile)
setShadowVisibile in interface BordershadowVisibile - is a flag value.protected int encodeVisibility()
protected abstract void render()
Copyright © 2008–2013. All rights reserved.