org.gwtbootstrap3.client.ui
Class Affix

java.lang.Object
  extended by org.gwtbootstrap3.client.ui.Affix

public class Affix
extends Object

An Affix is an element/container that gets "pinned" as soon as a certain amount of pixels have been scrolled.

Any element/container can become an Affix. Usually used for sidebar navigation.

Note: Bootstrap adds/removes classes from Affix based on scroll position which requires custom styling. See Bootstrap's documentation.

Author:
Sven Jacobs

Constructor Summary
Affix()
           
 
Method Summary
static void affix(Element element)
          Applys affix functionality to specified element.
static void affix(Element element, int offset)
          Applys affix functionality to specified element.
static void affix(UIObject object)
          Applys affix functionality to specified object.
static void affix(UIObject object, int offset)
          Applys affix functionality to specified object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Affix

public Affix()
Method Detail

affix

public static void affix(Element element)
Applys affix functionality to specified element.

Parameters:
element - Element to "affixnize"

affix

public static void affix(Element element,
                         int offset)
Applys affix functionality to specified element.

Parameters:
element - Element to "affixnize"
offset - Offset of affix

affix

public static void affix(UIObject object)
Applys affix functionality to specified object.

Parameters:
object - Object to "affixnize"

affix

public static void affix(UIObject object,
                         int offset)
Applys affix functionality to specified object.

Parameters:
object - Object to "affixnize"
offset - Offset of affix


Copyright © 2015. All rights reserved.