org.gwtbootstrap3.client.ui.base
Class AbstractListItem

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Panel
              extended by com.google.gwt.user.client.ui.ComplexPanel
                  extended by org.gwtbootstrap3.client.ui.base.ComplexWidget
                      extended by org.gwtbootstrap3.client.ui.base.AbstractListItem
All Implemented Interfaces:
HasAttachHandlers, HasHandlers, EventListener, HasEnabled, HasVisibility, HasWidgets, HasWidgets.ForIsWidget, IndexedPanel, IndexedPanel.ForIsWidget, IsWidget, Iterable<Widget>, HasActive, HasId, HasInlineStyle, HasPull, HasResponsiveness
Direct Known Subclasses:
AbstractAnchorListItem, ListDropDown, ListItem

public abstract class AbstractListItem
extends ComplexWidget
implements HasEnabled, HasPull, HasActive, HasResponsiveness, HasId

Base class for list items.

Author:
Sven Jacobs, Joshua Godi
See Also:
ListItem, AnchorListItem, ListDropDown

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel
IndexedPanel.ForIsWidget
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
HasWidgets.ForIsWidget
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
protected AbstractListItem()
           
 
Method Summary
 String getId()
          Gets the ID of the widget
 Pull getPull()
          
 boolean isActive()
          Gets whether or not the widget has the active styles
 boolean isEnabled()
           
 void setActive(boolean active)
          Sets the widget with the active styles or not
 void setEnabled(boolean enabled)
           
 void setHiddenOn(DeviceSize deviceSize)
          Sets the devices that the element is hidden on
 void setId(String id)
          Sets the ID on the widget
 void setPull(Pull pull)
          
 void setVisibleOn(DeviceSize deviceSize)
          Sets the devices that the element is visible on
 
Methods inherited from class org.gwtbootstrap3.client.ui.base.ComplexWidget
add, insert, setColor, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop
 
Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, remove
 
Methods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractListItem

protected AbstractListItem()
Method Detail

setEnabled

public void setEnabled(boolean enabled)
Specified by:
setEnabled in interface HasEnabled

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface HasEnabled

setPull

public void setPull(Pull pull)
Description copied from class: ComplexWidget

Specified by:
setPull in interface HasPull
Overrides:
setPull in class ComplexWidget

getPull

public Pull getPull()
Description copied from class: ComplexWidget

Specified by:
getPull in interface HasPull
Overrides:
getPull in class ComplexWidget

setActive

public void setActive(boolean active)
Description copied from interface: HasActive
Sets the widget with the active styles or not

Specified by:
setActive in interface HasActive
Parameters:
active - true=gets active styles, false=removes active styles

isActive

public boolean isActive()
Description copied from interface: HasActive
Gets whether or not the widget has the active styles

Specified by:
isActive in interface HasActive
Returns:
true=has active styles, false=does not have active styles

setVisibleOn

public void setVisibleOn(DeviceSize deviceSize)
Description copied from class: ComplexWidget
Sets the devices that the element is visible on

Specified by:
setVisibleOn in interface HasResponsiveness
Overrides:
setVisibleOn in class ComplexWidget
Parameters:
deviceSize - device size
See Also:
DeviceSize

setHiddenOn

public void setHiddenOn(DeviceSize deviceSize)
Description copied from class: ComplexWidget
Sets the devices that the element is hidden on

Specified by:
setHiddenOn in interface HasResponsiveness
Overrides:
setHiddenOn in class ComplexWidget
Parameters:
deviceSize - device sizes
See Also:
DeviceSize

setId

public void setId(String id)
Description copied from class: ComplexWidget
Sets the ID on the widget

Specified by:
setId in interface HasId
Overrides:
setId in class ComplexWidget
Parameters:
id - String desired ID

getId

public String getId()
Description copied from class: ComplexWidget
Gets the ID of the widget

Specified by:
getId in interface HasId
Overrides:
getId in class ComplexWidget
Returns:
String widget ID


Copyright © 2015. All rights reserved.