jBPM Console NG - Human Tasks Client 6.0.2-SNAPSHOT

org.jbpm.console.ng.ht.client.util
Class LiCalendarPicker

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.Composite
              extended by org.jbpm.console.ng.ht.client.util.LiCalendarPicker
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.logical.shared.HasValueChangeHandlers<Date>, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget

public class LiCalendarPicker
extends com.google.gwt.user.client.ui.Composite
implements com.google.gwt.event.logical.shared.HasValueChangeHandlers<Date>

Encapsulates set of components which are able to select day/week/month. Contains also buttons for going to previous or next day/week/month.


Nested Class Summary
static class LiCalendarPicker.ViewType
           
 
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
 
Field Summary
 com.github.gwtbootstrap.client.ui.ButtonGroup buttonGroup
           
 com.github.gwtbootstrap.client.ui.NavLink buttonGroupLi
           
 com.github.gwtbootstrap.client.ui.NavLink dayViewTasksNavLink
           
 com.github.gwtbootstrap.client.ui.NavLink monthViewTasksNavLink
           
 com.github.gwtbootstrap.client.ui.NavLink weekViewTasksNavLink
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
LiCalendarPicker()
           
 
Method Summary
 com.google.gwt.event.shared.HandlerRegistration addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<Date> handler)
          Registers handler that is called when the current date value changes.
 void adjustDate(boolean back)
          Adjust the date (back or to future) based on current view type (day/week/month).
 void clear()
           
 Date getCurrentDate()
           
 CalendarListContainer getListContainer()
           
 String getViewType()
           
 void init()
           
 void propagateDateChanges()
           
 void setCalendarView(TaskUtils.TaskView taskView)
           
 void setCurrentDate(Date currentDate)
           
 void setListContainer(CalendarListContainer listContainer)
           
 void setViewType(String viewType)
           
 
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
 
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, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
 

Field Detail

dayViewTasksNavLink

public com.github.gwtbootstrap.client.ui.NavLink dayViewTasksNavLink

weekViewTasksNavLink

public com.github.gwtbootstrap.client.ui.NavLink weekViewTasksNavLink

monthViewTasksNavLink

public com.github.gwtbootstrap.client.ui.NavLink monthViewTasksNavLink

buttonGroupLi

public com.github.gwtbootstrap.client.ui.NavLink buttonGroupLi

buttonGroup

public com.github.gwtbootstrap.client.ui.ButtonGroup buttonGroup
Constructor Detail

LiCalendarPicker

public LiCalendarPicker()
Method Detail

init

public void init()

clear

public void clear()

getListContainer

public CalendarListContainer getListContainer()

setListContainer

public void setListContainer(CalendarListContainer listContainer)

setCalendarView

public void setCalendarView(TaskUtils.TaskView taskView)

getViewType

public String getViewType()

setViewType

public void setViewType(String viewType)

getCurrentDate

public Date getCurrentDate()

setCurrentDate

public void setCurrentDate(Date currentDate)

adjustDate

public void adjustDate(boolean back)
Adjust the date (back or to future) based on current view type (day/week/month).

Parameters:
back - flag that indicates if the date should be adjusted to future (+) or back (-)

propagateDateChanges

public void propagateDateChanges()

addValueChangeHandler

public com.google.gwt.event.shared.HandlerRegistration addValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<Date> handler)
Registers handler that is called when the current date value changes.

Specified by:
addValueChangeHandler in interface com.google.gwt.event.logical.shared.HasValueChangeHandlers<Date>

jBPM Console NG - Human Tasks Client 6.0.2-SNAPSHOT

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.