public abstract class Control
extends com.google.gwt.user.client.ui.Composite
Constructor and Description |
---|
Control() |
Modifier and Type | Method and Description |
---|---|
int |
getLeft()
Gets the controls left offset
|
Position |
getPosition()
Get the anchor position for the control
|
int |
getTop()
Get the controls top offset
|
abstract void |
init(MapWidget mapWidget)
Called when widget is added to the map.
|
void |
setControlHandler(ControlHandler handler) |
void |
setLeft(int left)
Sets the controls left offset
|
void |
setPosition(int top,
int left)
Set the controls location offset
|
void |
setPosition(int top,
int left,
Position pos)
Set the controls location and anchor point
|
void |
setPosition(Position pos)
Anchor point from which top/left are calculated
|
void |
setTop(int top)
Sets the controls top offset
|
void |
setVisible(boolean visible) |
claimElement, initializeClaimedElement, isAttached, onBrowserEvent, render, render
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, fireEvent, getLayoutData, getParent, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, setWidth, sinkBitlessEvent, toString
public void setControlHandler(ControlHandler handler)
public abstract void init(MapWidget mapWidget)
mapWidget
- - Reference to the MapWidgetpublic void setTop(int top)
top
- public int getTop()
public void setLeft(int left)
left
- public int getLeft()
public void setPosition(int top, int left)
top
- left
- public void setPosition(int top, int left, Position pos)
top
- - diff yleft
- - diff xpos
- - Anchor point from which top/left are calculatedpublic void setPosition(Position pos)
pos
- public Position getPosition()
public void setVisible(boolean visible)
setVisible
in interface com.google.gwt.user.client.ui.HasVisibility
setVisible
in class com.google.gwt.user.client.ui.UIObject