Class DataTimeBox
- 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.gcube.portlets.widgets.ckandatapublisherwidget.client.ui.metadata.timeandreanges.DataTimeBox
-
- 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.HasVisibility,com.google.gwt.user.client.ui.IsRenderable,com.google.gwt.user.client.ui.IsWidget
public class DataTimeBox extends com.google.gwt.user.client.ui.CompositeWidget for handling date-like fields.- Author:
- Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it)
-
-
Field Summary
Fields Modifier and Type Field Description static StringMISSING_RANGE_VALUE_ENDstatic StringMISSING_RANGE_VALUE_STARTstatic StringRANGE_SEPARATOR_START_END
-
Constructor Summary
Constructors Constructor Description DataTimeBox(boolean isRange)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfreeze()Freeze the inputsStringgetCurrentValue()Return the current value, with MISSING_RANGE_VALUE in case of missing entrybooleangetIsRange()voidsetEndDate(String date, String time)voidsetStartDate(String date, String time)-
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
-
-
-
-
Field Detail
-
RANGE_SEPARATOR_START_END
public static final String RANGE_SEPARATOR_START_END
- See Also:
- Constant Field Values
-
MISSING_RANGE_VALUE_START
public static final String MISSING_RANGE_VALUE_START
- See Also:
- Constant Field Values
-
MISSING_RANGE_VALUE_END
public static final String MISSING_RANGE_VALUE_END
- See Also:
- Constant Field Values
-
-
Method Detail
-
getIsRange
public boolean getIsRange()
-
getCurrentValue
public String getCurrentValue()
Return the current value, with MISSING_RANGE_VALUE in case of missing entry- Returns:
-
freeze
public void freeze()
Freeze the inputs
-
-