org.cruxframework.crux.widgets.client.rollingpanel
Class CustomRollingPanel
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
org.cruxframework.crux.widgets.client.rollingpanel.CustomRollingPanel
- All Implemented Interfaces:
- com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasHorizontalAlignment, com.google.gwt.user.client.ui.HasVerticalAlignment, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IndexedPanel, com.google.gwt.user.client.ui.InsertPanel, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget
public class CustomRollingPanel
- extends com.google.gwt.user.client.ui.Composite
- implements com.google.gwt.user.client.ui.InsertPanel, com.google.gwt.user.client.ui.HasHorizontalAlignment, com.google.gwt.user.client.ui.HasVerticalAlignment
- Author:
- Thiago da Rosa de Bustamante -
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
| Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.InsertPanel |
com.google.gwt.user.client.ui.InsertPanel.ForIsWidget |
| Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasHorizontalAlignment |
com.google.gwt.user.client.ui.HasHorizontalAlignment.AutoHorizontalAlignmentConstant, com.google.gwt.user.client.ui.HasHorizontalAlignment.HorizontalAlignmentConstant |
| Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasVerticalAlignment |
com.google.gwt.user.client.ui.HasVerticalAlignment.VerticalAlignmentConstant |
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
DEBUG_ID_PREFIX |
| Fields inherited from interface com.google.gwt.user.client.ui.HasHorizontalAlignment |
ALIGN_CENTER, ALIGN_DEFAULT, ALIGN_JUSTIFY, ALIGN_LEFT, ALIGN_LOCALE_END, ALIGN_LOCALE_START, ALIGN_RIGHT |
| Fields inherited from interface com.google.gwt.user.client.ui.HasVerticalAlignment |
ALIGN_BOTTOM, ALIGN_MIDDLE, ALIGN_TOP |
| Methods inherited from class com.google.gwt.user.client.ui.Composite |
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, 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, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString |
DEFAULT_NEXT_STYLE_NAME
public static final String DEFAULT_NEXT_STYLE_NAME
- See Also:
- Constant Field Values
DEFAULT_PREVIOUS_STYLE_NAME
public static final String DEFAULT_PREVIOUS_STYLE_NAME
- See Also:
- Constant Field Values
DEFAULT_BODY_HORIZONTAL_STYLE_NAME
public static final String DEFAULT_BODY_HORIZONTAL_STYLE_NAME
- See Also:
- Constant Field Values
DEFAULT_STYLE_NAME
public static final String DEFAULT_STYLE_NAME
- See Also:
- Constant Field Values
itemsPanel
protected com.google.gwt.user.client.ui.CellPanel itemsPanel
layoutPanel
protected com.google.gwt.user.client.ui.DockPanel layoutPanel
CustomRollingPanel
public CustomRollingPanel()
- Parameters:
vertical -
add
public void add(com.google.gwt.user.client.ui.Widget child)
- Specified by:
add in interface com.google.gwt.user.client.ui.InsertPanel
- Parameters:
child -
clear
public void clear()
getScrollPosition
public int getScrollPosition()
- Returns:
getSpacing
public int getSpacing()
- Returns:
getWidget
public com.google.gwt.user.client.ui.Widget getWidget(int i)
- Specified by:
getWidget in interface com.google.gwt.user.client.ui.IndexedPanel
- Parameters:
i -
- Returns:
getWidgetCount
public int getWidgetCount()
- Specified by:
getWidgetCount in interface com.google.gwt.user.client.ui.IndexedPanel
- Returns:
getWidgetIndex
public int getWidgetIndex(com.google.gwt.user.client.ui.Widget child)
- Specified by:
getWidgetIndex in interface com.google.gwt.user.client.ui.IndexedPanel
- See Also:
IndexedPanel.getWidgetIndex(com.google.gwt.user.client.ui.Widget)
insert
public void insert(com.google.gwt.user.client.ui.Widget widget,
int i)
- Specified by:
insert in interface com.google.gwt.user.client.ui.InsertPanel
- Parameters:
widget - i -
isScrollToAddedWidgets
public boolean isScrollToAddedWidgets()
- Returns:
remove
public boolean remove(int index)
- Specified by:
remove in interface com.google.gwt.user.client.ui.IndexedPanel
- See Also:
IndexedPanel.remove(int)
remove
public void remove(com.google.gwt.user.client.ui.Widget toRemove)
- Parameters:
toRemove -
scrollToWidget
public void scrollToWidget(com.google.gwt.user.client.ui.Widget widget)
- Parameters:
widget -
setCellHeight
public void setCellHeight(com.google.gwt.user.client.ui.Widget child,
String cellHeight)
- Parameters:
child - cellHeight -
setCellHorizontalAlignment
public void setCellHorizontalAlignment(com.google.gwt.user.client.ui.Widget w,
com.google.gwt.user.client.ui.HasHorizontalAlignment.HorizontalAlignmentConstant align)
- Parameters:
w - align -
setCellVerticalAlignment
public void setCellVerticalAlignment(com.google.gwt.user.client.ui.Widget w,
com.google.gwt.user.client.ui.HasVerticalAlignment.VerticalAlignmentConstant verticalAlign)
- Parameters:
verticalAlign -
setCellWidth
public void setCellWidth(com.google.gwt.user.client.ui.Widget child,
String cellWidth)
- Parameters:
child - cellWidth -
setHorizontalAlignment
public void setHorizontalAlignment(com.google.gwt.user.client.ui.HasHorizontalAlignment.HorizontalAlignmentConstant align)
- Specified by:
setHorizontalAlignment in interface com.google.gwt.user.client.ui.HasHorizontalAlignment
- Parameters:
align -
setScrollPosition
public void setScrollPosition(int position)
- Parameters:
position -
setScrollToAddedWidgets
public void setScrollToAddedWidgets(boolean scrollToAddedWidgets)
- Parameters:
scrollToAddedWidgets -
setSpacing
public void setSpacing(int spacing)
- Parameters:
spacing -
setVerticalAlignment
public void setVerticalAlignment(com.google.gwt.user.client.ui.HasVerticalAlignment.VerticalAlignmentConstant verticalAlign)
- Specified by:
setVerticalAlignment in interface com.google.gwt.user.client.ui.HasVerticalAlignment
- Parameters:
verticalAlign -
createNavigationButtons
protected void createNavigationButtons()
checkNavigationButtons
protected void checkNavigationButtons()
maybeShowNavigationButtons
protected void maybeShowNavigationButtons()
disableNavigationButtons
protected void disableNavigationButtons()
enableNavigationButtons
protected void enableNavigationButtons()
handleWindowResize
protected void handleWindowResize()
getVerticalAlignment
public com.google.gwt.user.client.ui.HasVerticalAlignment.VerticalAlignmentConstant getVerticalAlignment()
- Specified by:
getVerticalAlignment in interface com.google.gwt.user.client.ui.HasVerticalAlignment
getHorizontalAlignment
public com.google.gwt.user.client.ui.HasHorizontalAlignment.HorizontalAlignmentConstant getHorizontalAlignment()
- Specified by:
getHorizontalAlignment in interface com.google.gwt.user.client.ui.HasHorizontalAlignment
setNextButtonStyleName
public void setNextButtonStyleName(String nextButtonStyleName)
- Parameters:
nextButtonStyleName -
setPreviousButtonStyleName
public void setPreviousButtonStyleName(String previousButtonStyleName)
- Parameters:
previousButtonStyleName -
setBodyStyleName
public void setBodyStyleName(String bodyStyleName)
- Parameters:
bodyStyleName - the bodyStyleName to set
getBodyStyleName
public String getBodyStyleName()
- Returns:
- the bodyStyleName
getNextButtonStyleName
public String getNextButtonStyleName()
- Returns:
- the nextButtonStyleName
getPreviousButtonStyleName
public String getPreviousButtonStyleName()
- Returns:
- the previousButtonStyleName
Copyright © 2014. All rights reserved.