Interface I_CmsEditWidget
- All Superinterfaces:
com.google.gwt.event.dom.client.HasFocusHandlers,com.google.gwt.event.shared.HasHandlers,com.google.gwt.user.client.ui.HasValue<String>,com.google.gwt.event.logical.shared.HasValueChangeHandlers<String>,com.google.gwt.user.client.ui.IsWidget,com.google.gwt.user.client.TakesValue<String>
- All Known Subinterfaces:
I_CmsFormEditWidget
- All Known Implementing Classes:
A_CmsEditWidget,CmsAttributeSelectWidget,CmsCalendarWidget,CmsCategorizedSelectWidget,CmsCategoryWidget,CmsCheckboxWidget,CmsCodeMirrorWidget,CmsColorpickerWidget,CmsComboWidget,CmsDependentSelectWidget,CmsDisplayTypeSelectWidget,CmsDisplayWidget,CmsFileWidget,CmsFilterSelectWidget,CmsFormatterSelectWidget,CmsFormWidgetWrapper,CmsGalleryWidget,CmsImageGalleryWidget,CmsLocationPickerWidget,CmsMultiCheckboxWidget,CmsMultiSelectWidget,CmsPasswordWidget,CmsPrincipalWidget,CmsRadioSelectWidget,CmsSelectComboWidget,CmsSelectWidget,CmsSerialDateController,CmsSerialDateWidget,CmsStringWidget,CmsTextareaWidget,CmsTextboxWidget,CmsTinyMCEWidget,CmsVfsWidget,WidgetWrapper
public interface I_CmsEditWidget
extends com.google.gwt.user.client.ui.HasValue<String>, com.google.gwt.event.dom.client.HasFocusHandlers, com.google.gwt.user.client.ui.IsWidget
The edit widget interface.
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.gwt.event.shared.HandlerRegistrationaddValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<String> handler) booleanisActive()Returns if the widget is active.voidThis method is called when a widget is attached to the browser's document.booleanowns(com.google.gwt.dom.client.Element element) Returns true if the element should be logically counted as part of the widget for the purpose of determining whether a mouse click is "outside".voidsetActive(boolean active) Sets the widget active/inactive.voidSets the name of input fields.voiddefault booleanIf this returns true, the default value will also be set as the widget value if the widget is inactive (i.e.Methods inherited from interface com.google.gwt.event.dom.client.HasFocusHandlers
addFocusHandlerMethods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEventMethods inherited from interface com.google.gwt.user.client.ui.HasValue
getValue, setValueMethods inherited from interface com.google.gwt.user.client.ui.IsWidget
asWidget
-
Method Details
-
isActive
boolean isActive()Returns if the widget is active.- Returns:
trueif the widget is active
-
onAttachWidget
void onAttachWidget()This method is called when a widget is attached to the browser's document.It needs to call the
Widget.onAttach()method. -
owns
Returns true if the element should be logically counted as part of the widget for the purpose of determining whether a mouse click is "outside". For example, this is needed if the widget uses a popup.- Parameters:
element- the element to check- Returns:
- true if the element counts as part of the widget
-
setActive
Sets the widget active/inactive.- Parameters:
active-trueto activate the widget
-
setName
Sets the name of input fields.- Parameters:
name- of the input field
-
setValue
- Specified by:
setValuein interfacecom.google.gwt.user.client.ui.HasValue<String>- See Also:
-
shouldSetDefaultWhenDisabled
If this returns true, the default value will also be set as the widget value if the widget is inactive (i.e. for optional values which don't exist yet).- Returns:
- true if the default value should be set even if the widget is inactive