public class UiWidgetAdapterGwtFileField extends UiWidgetAdapterGwtField<UiWidgetAdapterGwtFileField.MyFileUpload,FileItem,FileItem> implements UiWidgetAdapterFileField, com.google.gwt.user.client.TakesValue<FileItem>
UiWidgetAdapterFileField
using GWT based on FileUpload
.Modifier and Type | Class and Description |
---|---|
protected static class |
UiWidgetAdapterGwtFileField.MyFileUpload |
static class |
UiWidgetAdapterGwtFileField.MyRichTextArea
This inner class makes
RichTextArea implement HasValue . |
Modifier and Type | Field and Description |
---|---|
private com.google.gwt.user.client.ui.Anchor |
viewWidget |
TAB_INDEX_NONE
HTML_ATTRIBUTE_ID, ID_SEPARATOR, PROPERTY_ID
PROPERTY_STYLES, STYLE_PATTERN_MULTIPLE, STYLE_PATTERN_SINGLE
WAI_ARIA
ACCESS_KEY_NONE, HTML_ATTRIBUTE_ACCESS_KEY
PROPERTY_LABEL
ATTRIBUTE_COLSPAN
Constructor and Description |
---|
UiWidgetAdapterGwtFileField()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected UiWidgetAdapterGwtFileField.MyFileUpload |
createActiveWidget() |
protected com.google.gwt.user.client.ui.Widget |
createViewWidget()
Creates the
Widget that is used to display the field value in
view-mode . |
FileItem |
getValue()
This method gets the value of this object.
|
protected com.google.gwt.user.client.ui.Focusable |
getWidgetAsFocusable() |
protected com.google.gwt.event.dom.client.HasAllFocusHandlers |
getWidgetAsHasAllFocusHandlers() |
protected com.google.gwt.event.dom.client.HasChangeHandlers |
getWidgetAsHasChangeHandlers() |
protected com.google.gwt.event.dom.client.HasKeyPressHandlers |
getWidgetAsKeyPressHandlers() |
protected com.google.gwt.user.client.TakesValue<FileItem> |
getWidgetAsTakesValue() |
protected com.google.gwt.user.client.TakesValue<String> |
getWidgetAsTakesValueString() |
private void |
onDownload() |
void |
setEnabled(boolean enabled)
This method sets the
enabled status of this object. |
void |
setValue(FileItem value)
This method sets the
value . |
protected void |
updateWidgetViewMode()
This method updates the
view-mode-widget such that it displays the
current value . |
applyEventAdapterForChange, attachActiveWidget, convertValueToString, createToplevelWidget, getActiveWidget, getInputElement, getMaximumValue, getMinimumValue, getValueAsString, getWidgetViewMode, setAdapterValueInViewMode, setMode, setValidationFailure, setValueAsString, setValueInViewMode
applyEventAdapterForClick, applyEventAdapterForFocus, getKeyboardFilter, getWidgetAsHasBlurHandlers, getWidgetAsHasFocusHandlers, setAccessKey, setClickEventSender, setFocused, setKeyboardFilter
dispose, removeFromParent
addHandlerRegistration, addStyle, createAbsoluteImageUrl, createEventAdapter, getHeightInPixel, getImage, getImageParentElement, getLength, getSizeElement, getToplevelWidget, getToplevelWidget, getWidthInPixel, isStyleDeltaSupported, removeStyle, setAttribute, setId, setImage, setLength, setPrimaryStyle, setStyles, setTooltip, setVisible
applyEventAdapter, applyEventAdapterForSelection, getEventAdapter, setEventSender
createLabel, getAccessKey, getAltText, getAttribute, getBundle, getColumnSpan, getContext, getHeightInRows, getId, getLabel, getMaximumTextLength, getPrimaryStyle, getSelectionMode, getStyles, getTitle, getTooltip, getToplevelWidget, getUiWidget, getUiWidgetTyped, getUrl, getValidationFailure, hasStyle, isDisposed, isEnabled, isFocused, isResizable, setParent, setUiWidget
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createAbsoluteImageUrl, createLabel, getToplevelWidget, isStyleDeltaSupported, removeFromParent, setEventSender, setMode, setParent, setVisible
setId
getId
setTooltip
getTooltip
isEnabled
addStyle, removeStyle
hasStyle
setStyles
getStyles
setPrimaryStyle
getPrimaryStyle
dispose
isDisposed
setLength
getLength
getHeightInPixel, getWidthInPixel
getAttribute
setAttribute
isFocused
setFocused
setAccessKey
getAccessKey
setValueAsString
getValueAsString
setValidationFailure
getValidationFailure
private com.google.gwt.user.client.ui.Anchor viewWidget
createViewWidget()
public UiWidgetAdapterGwtFileField()
protected com.google.gwt.user.client.ui.Focusable getWidgetAsFocusable()
getWidgetAsFocusable
in class UiWidgetAdapterGwtWidgetActive<com.google.gwt.user.client.ui.Widget>
widget
as Focusable
or null
if NOT
supported.public void setEnabled(boolean enabled)
enabled
status of this object. If it is disabled, the user can
not interact with the object.setEnabled
in interface AttributeWriteEnabled
enabled
- - if true
the object will be enabled, else the object will be disabled.protected com.google.gwt.event.dom.client.HasChangeHandlers getWidgetAsHasChangeHandlers()
getWidgetAsHasChangeHandlers
in class UiWidgetAdapterGwtField<UiWidgetAdapterGwtFileField.MyFileUpload,FileItem,FileItem>
widget
as HasChangeHandlers
or null
if NOT
supported.protected com.google.gwt.user.client.TakesValue<FileItem> getWidgetAsTakesValue()
getWidgetAsTakesValue
in class UiWidgetAdapterGwtField<UiWidgetAdapterGwtFileField.MyFileUpload,FileItem,FileItem>
widget
as TakesValue
.protected com.google.gwt.user.client.TakesValue<String> getWidgetAsTakesValueString()
getWidgetAsTakesValueString
in class UiWidgetAdapterGwtField<UiWidgetAdapterGwtFileField.MyFileUpload,FileItem,FileItem>
widget
as TakesValue
for the value type String
.public FileItem getValue()
getValue
in interface com.google.gwt.user.client.TakesValue<FileItem>
getValue
in interface AttributeReadValue<FileItem>
getValue
in class UiWidgetAdapterGwtField<UiWidgetAdapterGwtFileField.MyFileUpload,FileItem,FileItem>
null
unless otherwise stated.public void setValue(FileItem value)
value
.setValue
in interface com.google.gwt.user.client.TakesValue<FileItem>
setValue
in interface AttributeWriteValue<FileItem>
setValue
in class UiWidgetAdapterGwtField<UiWidgetAdapterGwtFileField.MyFileUpload,FileItem,FileItem>
value
- is the new value
. May be null
unless otherwise stated.protected com.google.gwt.event.dom.client.HasKeyPressHandlers getWidgetAsKeyPressHandlers()
getWidgetAsKeyPressHandlers
in class UiWidgetAdapterGwtWidgetActive<com.google.gwt.user.client.ui.Widget>
widget
as HasKeyPressHandlers
or null
if
NOT supported.protected com.google.gwt.event.dom.client.HasAllFocusHandlers getWidgetAsHasAllFocusHandlers()
getWidgetAsHasAllFocusHandlers
in class UiWidgetAdapterGwtWidgetActive<com.google.gwt.user.client.ui.Widget>
widget
as HasAllFocusHandlers
or null
if
NOT supported.protected UiWidgetAdapterGwtFileField.MyFileUpload createActiveWidget()
createActiveWidget
in class UiWidgetAdapterGwtField<UiWidgetAdapterGwtFileField.MyFileUpload,FileItem,FileItem>
Widget
that is used to display and modify the field value in
edit-mode
.protected void updateWidgetViewMode()
view-mode-widget
such that it displays the
current value
.updateWidgetViewMode
in class UiWidgetAdapterGwtField<UiWidgetAdapterGwtFileField.MyFileUpload,FileItem,FileItem>
private void onDownload()
protected com.google.gwt.user.client.ui.Widget createViewWidget()
Widget
that is used to display the field value in
view-mode
. If you override this method and change the
widget type you will also need to override UiWidgetAdapterGwtField.updateWidgetViewMode()
.createViewWidget
in class UiWidgetAdapterGwtField<UiWidgetAdapterGwtFileField.MyFileUpload,FileItem,FileItem>
Widget
.Copyright © 2001–2016 mmm-Team. All rights reserved.