ControlLogicMixin
Direct Subclass:
This class contains logic which should be part of any Control in the Software. Any custom controls should inherit from Control which inherits from this class AND from ol.cont
Member Summary
Public Members | ||
public |
|
|
public |
|
Private Members | ||
private |
|
|
private |
|
|
private |
|
|
private |
|
|
private |
|
|
private |
|
|
private |
|
|
private |
|
|
private |
|
Method Summary
Public Methods | ||
public |
get$Element(): jQuery Returns the element of the control |
|
public |
get$Target(): jQuery Returns the target of the control |
|
public |
Returns the CSS-className of the control |
|
public |
Returns the name of the control if given to the constructor |
|
public |
Returns the floating directions of the control |
|
public |
|
|
public |
getLocaliser(): L10N |
|
public |
Returns the tipLabel of the control if given to the constructor |
|
public |
Returns the title of the control if given to the constructor |
|
public |
|
|
public |
initialize(options: g4uControlOptions) |
|
public |
Returns true if the element consists only of a single button |
|
public |
|
|
public |
set$Target($target: jQuery) Sets a new target for the control |
|
public |
setTipLabel(tipLabel: Localizable) |
|
public |
setTitle(title: Localizable) |
|
public |
setVisible(visible: boolean) |
Public Methods
public get$Element(): jQuery source
Returns the element of the control
Return:
jQuery | element it is created in |
public get$Target(): jQuery source
Returns the target of the control
Return:
jQuery | element it is created in |
public initialize(options: g4uControlOptions) source
Params:
Name | Type | Attribute | Description |
options | g4uControlOptions |
public isSingleButton(): Boolean source
Returns true if the element consists only of a single button
public set$Target($target: jQuery) source
Sets a new target for the control
Params:
Name | Type | Attribute | Description |
$target | jQuery | element it is moved to |
public setTipLabel(tipLabel: Localizable) source
Params:
Name | Type | Attribute | Description |
tipLabel | Localizable |
public setTitle(title: Localizable) source
Params:
Name | Type | Attribute | Description |
title | Localizable |