|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.github.gwtbootstrap.client.ui.Scrollspy
public class Scrollspy
Navbar uses this class for the scrollspy.
| Constructor Summary | |
|---|---|
Scrollspy()
Create Empty Scrollspy |
|
Scrollspy(Navbar navbar)
|
|
| Method Summary | |
|---|---|
void |
configure()
Configure the scrollspy in the configured navbar. |
Navbar |
getNavbar()
Get navbar |
Element |
getSpyElement()
|
boolean |
isConfigured()
|
void |
refresh()
|
void |
setNavbar(Navbar navbar)
set navbar |
void |
setOffset(Integer offset)
set data-offset. |
void |
setSpyElement(Element element)
set spy target element. |
void |
setTarget(String target)
set data-target. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Scrollspy(Navbar navbar)
navbar - The navbar that will be spied.public Scrollspy()
| Method Detail |
|---|
public Navbar getNavbar()
public void setNavbar(Navbar navbar)
navbar - public void setTarget(String target)
If set this,spyElement is set data-target attribute this target when configure() is called.
target - data-target value.like this,#some-id .some-classespublic void setSpyElement(Element element)
If set this,Scrollspy set some setting to this argment
when configure() is called.
If don't set this,Scrollspy set some setting to body tag.
element - spy target element.public void setOffset(Integer offset)
If set this,spyElement is set data-offset attribute this target when configure() is called.
target - data-offset value.public void configure()
public boolean isConfigured()
public Element getSpyElement()
public void refresh()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||