public class ViewPortHandler extends Object
Constructor and Description |
---|
ViewPortHandler(ViewPort viewPort,
Boundary boundary,
Boundary... other) |
Modifier and Type | Method and Description |
---|---|
protected ViewPortHandler |
destroy()
Destroy the
ViewPortHandler . |
protected void |
execute(int width,
int height) |
ViewPort |
getViewPort() |
protected ViewPort |
load()
Load the windows resize handler with initial view port detection.
|
ViewPortHandler |
or(Boundary boundary)
Apply more
Boundary s to the detection conditions. |
void |
propagateFallback(boolean propagateFallback)
Execute fallback on each failure to detect view port.
|
ViewPort |
then(gwt.material.design.jquery.client.api.Functions.Func1<ViewPortChange> then)
Load the view port execution.
|
ViewPort |
then(gwt.material.design.jquery.client.api.Functions.Func1<ViewPortChange> then,
ViewPortFallback fallback)
Load the view port execution.
|
protected ViewPortHandler |
unload() |
public ViewPortHandler(ViewPort viewPort, Boundary boundary, Boundary... other)
public ViewPortHandler or(Boundary boundary)
Boundary
s to the detection conditions.public ViewPort then(gwt.material.design.jquery.client.api.Functions.Func1<ViewPortChange> then)
then
- callback when the view port is detected.public ViewPort then(gwt.material.design.jquery.client.api.Functions.Func1<ViewPortChange> then, ViewPortFallback fallback)
then
- callback when the view port is detected.fallback
- fallback when no view port detected or failure to detect the given
Boundary
(using propagateFallback(boolean)
)protected ViewPortHandler destroy()
ViewPortHandler
.protected ViewPortHandler unload()
protected void execute(int width, int height)
public ViewPort getViewPort()
public void propagateFallback(boolean propagateFallback)
Copyright © 2018. All rights reserved.