org.cruxframework.crux.widgets.client.toptoolbar
Class TopToolBarArrowsSmallController

java.lang.Object
  extended by org.cruxframework.crux.core.client.controller.crossdevice.DeviceAdaptiveController
      extended by org.cruxframework.crux.widgets.client.toptoolbar.TopToolBarArrowsSmallController
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasCloseHandlers<TopToolBar>, com.google.gwt.event.logical.shared.HasOpenHandlers<TopToolBar>, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.IndexedPanel, com.google.gwt.user.client.ui.IsWidget, Iterable<com.google.gwt.user.client.ui.Widget>, DeviceAdaptive, HasBeforeCloseHandlers, HasBeforeOpenAndBeforeCloseHandlers, HasBeforeOpenHandlers, TopToolBar
Direct Known Subclasses:
TopToolBarTouchSmallController

public class TopToolBarArrowsSmallController
extends DeviceAdaptiveController
implements TopToolBar

Author:
Thiago da Rosa de Bustamante

Nested Class Summary
static interface TopToolBarArrowsSmallController.PanelAnimation
           
 
Nested classes/interfaces inherited from interface org.cruxframework.crux.core.client.screen.DeviceAdaptive
DeviceAdaptive.Device, DeviceAdaptive.Input, DeviceAdaptive.Size, DeviceAdaptive.Template, DeviceAdaptive.Templates
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel
com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
 
Field Summary
protected  boolean alreadySettingPanelPosition
           
protected  com.google.gwt.user.client.ui.FlowPanel canvas
           
protected  int canvasHeight
           
protected  com.google.gwt.user.client.ui.FlowPanel floatPanel
           
protected  com.google.gwt.user.client.ui.FocusPanel grip
           
protected  int gripHeight
           
protected  boolean opened
           
protected  TopToolBarArrowsSmallController.PanelAnimation panelAnimation
           
protected  com.google.gwt.dom.client.Element placeHolder
           
protected  int pos
           
 
Constructor Summary
TopToolBarArrowsSmallController()
           
 
Method Summary
 void add(com.google.gwt.user.client.ui.Widget w)
           
 com.google.gwt.event.shared.HandlerRegistration addBeforeCloseHandler(BeforeCloseHandler handler)
           
 com.google.gwt.event.shared.HandlerRegistration addBeforeOpenHandler(BeforeOpenHandler handler)
           
 com.google.gwt.event.shared.HandlerRegistration addCloseHandler(com.google.gwt.event.logical.shared.CloseHandler<TopToolBar> handler)
           
 com.google.gwt.event.shared.HandlerRegistration addOpenHandler(com.google.gwt.event.logical.shared.OpenHandler<TopToolBar> handler)
           
 void clear()
           
 void close()
           
protected  void createPlaceHolderPanel()
           
protected  void doClose()
           
protected  void doOpen()
           
 int getGripHeight()
           
 com.google.gwt.user.client.ui.Widget getGripWidget()
           
 com.google.gwt.user.client.ui.Widget getWidget(int index)
           
 int getWidgetCount()
           
 int getWidgetIndex(com.google.gwt.user.client.ui.Widget child)
           
protected  void init()
           
 Iterator<com.google.gwt.user.client.ui.Widget> iterator()
           
 void open()
           
protected  void prepareGripPanel()
           
protected  com.google.gwt.user.client.ui.Widget prepareGripWidget(com.google.gwt.user.client.ui.Widget widget)
           
 boolean remove(int index)
           
 boolean remove(com.google.gwt.user.client.ui.Widget w)
           
protected  void setFloatPanelPosition()
           
 void setGripHeight(int height)
           
 void setGripWidget(com.google.gwt.user.client.ui.Widget widget)
           
 void setPanelAnimation(TopToolBarArrowsSmallController.PanelAnimation panelAnimation)
           
protected  void setPanelDefaultPosition()
           
protected  void setPosition(int pos)
           
 void toggle()
           
 
Methods inherited from class org.cruxframework.crux.core.client.controller.crossdevice.DeviceAdaptiveController
addAttachHandler, addHandler, addWidget, asWidget, fireEvent, getChildWidget, getElement, getStyleName, getTitle, isVisible, setHeight, setStyleName, setTitle, setVisible, setWidth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.cruxframework.crux.core.client.screen.DeviceAdaptive
addAttachHandler, addHandler, getElement, getStyleName, getTitle, isVisible, setHeight, setStyleName, setTitle, setVisible, setWidth
 
Methods inherited from interface com.google.gwt.user.client.ui.IsWidget
asWidget
 
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
 

Field Detail

canvas

protected com.google.gwt.user.client.ui.FlowPanel canvas

floatPanel

protected com.google.gwt.user.client.ui.FlowPanel floatPanel

opened

protected boolean opened

placeHolder

protected com.google.gwt.dom.client.Element placeHolder

grip

protected com.google.gwt.user.client.ui.FocusPanel grip

gripHeight

protected int gripHeight

alreadySettingPanelPosition

protected boolean alreadySettingPanelPosition

pos

protected int pos

canvasHeight

protected int canvasHeight

panelAnimation

protected TopToolBarArrowsSmallController.PanelAnimation panelAnimation
Constructor Detail

TopToolBarArrowsSmallController

public TopToolBarArrowsSmallController()
Method Detail

setPanelAnimation

public void setPanelAnimation(TopToolBarArrowsSmallController.PanelAnimation panelAnimation)

getWidget

public com.google.gwt.user.client.ui.Widget getWidget(int index)
Specified by:
getWidget in interface com.google.gwt.user.client.ui.IndexedPanel

getWidgetCount

public int getWidgetCount()
Specified by:
getWidgetCount in interface com.google.gwt.user.client.ui.IndexedPanel

getWidgetIndex

public int getWidgetIndex(com.google.gwt.user.client.ui.Widget child)
Specified by:
getWidgetIndex in interface com.google.gwt.user.client.ui.IndexedPanel

remove

public boolean remove(int index)
Specified by:
remove in interface com.google.gwt.user.client.ui.IndexedPanel

add

public void add(com.google.gwt.user.client.ui.Widget w)
Specified by:
add in interface com.google.gwt.user.client.ui.HasWidgets

clear

public void clear()
Specified by:
clear in interface com.google.gwt.user.client.ui.HasWidgets

iterator

public Iterator<com.google.gwt.user.client.ui.Widget> iterator()
Specified by:
iterator in interface com.google.gwt.user.client.ui.HasWidgets
Specified by:
iterator in interface Iterable<com.google.gwt.user.client.ui.Widget>

remove

public boolean remove(com.google.gwt.user.client.ui.Widget w)
Specified by:
remove in interface com.google.gwt.user.client.ui.HasWidgets

addBeforeCloseHandler

public com.google.gwt.event.shared.HandlerRegistration addBeforeCloseHandler(BeforeCloseHandler handler)
Specified by:
addBeforeCloseHandler in interface HasBeforeCloseHandlers

addBeforeOpenHandler

public com.google.gwt.event.shared.HandlerRegistration addBeforeOpenHandler(BeforeOpenHandler handler)
Specified by:
addBeforeOpenHandler in interface HasBeforeOpenHandlers

addOpenHandler

public com.google.gwt.event.shared.HandlerRegistration addOpenHandler(com.google.gwt.event.logical.shared.OpenHandler<TopToolBar> handler)
Specified by:
addOpenHandler in interface com.google.gwt.event.logical.shared.HasOpenHandlers<TopToolBar>

addCloseHandler

public com.google.gwt.event.shared.HandlerRegistration addCloseHandler(com.google.gwt.event.logical.shared.CloseHandler<TopToolBar> handler)
Specified by:
addCloseHandler in interface com.google.gwt.event.logical.shared.HasCloseHandlers<TopToolBar>

setGripWidget

public void setGripWidget(com.google.gwt.user.client.ui.Widget widget)
Specified by:
setGripWidget in interface TopToolBar

getGripWidget

public com.google.gwt.user.client.ui.Widget getGripWidget()
Specified by:
getGripWidget in interface TopToolBar

close

public void close()
Specified by:
close in interface TopToolBar

open

public void open()
Specified by:
open in interface TopToolBar

toggle

public void toggle()
Specified by:
toggle in interface TopToolBar

setGripHeight

public void setGripHeight(int height)
Specified by:
setGripHeight in interface TopToolBar

getGripHeight

public int getGripHeight()
Specified by:
getGripHeight in interface TopToolBar

init

protected void init()
Overrides:
init in class DeviceAdaptiveController

prepareGripPanel

protected void prepareGripPanel()

setFloatPanelPosition

protected void setFloatPanelPosition()

createPlaceHolderPanel

protected void createPlaceHolderPanel()

prepareGripWidget

protected com.google.gwt.user.client.ui.Widget prepareGripWidget(com.google.gwt.user.client.ui.Widget widget)

doOpen

protected void doOpen()

doClose

protected void doClose()

setPanelDefaultPosition

protected void setPanelDefaultPosition()

setPosition

protected void setPosition(int pos)


Copyright © 2014. All rights reserved.