public class MaterialScrollfire extends Object
// CAN BE CALLED AS A HELPER STATIC CONTEXT
MaterialScrollfire.apply(Element e, Runnable runnableCallback);
// INSTANTIATE THE PUSHPIN COMPONENT
MaterialScrollfire scrollfire = new MaterialScrollfire();
scrollfire.setElement(element);
scrollfire.setCallback(callback);
scrollfire.setOffset(offset);
scrollfire.apply();
Constructor and Description |
---|
MaterialScrollfire() |
MaterialScrollfire(com.google.gwt.dom.client.Element element) |
Modifier and Type | Method and Description |
---|---|
void |
apply()
Executes callback method depending on how far into the page you've scrolled
|
static void |
apply(com.google.gwt.dom.client.Element element,
gwt.material.design.jquery.client.api.Functions.Func callback)
Executes callback method depending on how far into the page you've scrolled
|
static void |
apply(com.google.gwt.dom.client.Element element,
int offset,
gwt.material.design.jquery.client.api.Functions.Func callback)
Executes callback method depending on how far into the page you've scrolled
|
static void |
apply(String selector,
gwt.material.design.jquery.client.api.Functions.Func callback)
Executes callback method depending on how far into the page you've scrolled
|
gwt.material.design.jquery.client.api.Functions.Func |
getCallback()
Get the method to be called when the scrollfire is applied
|
com.google.gwt.dom.client.Element |
getElement()
Get the target element that is being tracked.
|
int |
getOffset()
Get the offset value
|
void |
setCallback(gwt.material.design.jquery.client.api.Functions.Func callback)
Set the method to be called when the scrollfire is applied
|
void |
setElement(com.google.gwt.dom.client.Element element)
Set the target element that is being tracked.
|
void |
setOffset(int offset)
Set the offset value
|
public MaterialScrollfire()
public MaterialScrollfire(com.google.gwt.dom.client.Element element)
public void apply()
public static void apply(com.google.gwt.dom.client.Element element, gwt.material.design.jquery.client.api.Functions.Func callback)
element
- Target element that is being trackedcallback
- The method to be called when the scrollfire is appliedpublic static void apply(com.google.gwt.dom.client.Element element, int offset, gwt.material.design.jquery.client.api.Functions.Func callback)
element
- Target element that is being trackedoffset
- If this is 0, the callback will be fired when the selector element is at the very bottom of the user's window.callback
- The method to be called when the scrollfire is appliedpublic static void apply(String selector, gwt.material.design.jquery.client.api.Functions.Func callback)
public com.google.gwt.dom.client.Element getElement()
public void setElement(com.google.gwt.dom.client.Element element)
public int getOffset()
public void setOffset(int offset)
public gwt.material.design.jquery.client.api.Functions.Func getCallback()
public void setCallback(gwt.material.design.jquery.client.api.Functions.Func callback)
Copyright © 2018. All rights reserved.