com.sibvisions.rad.ui.web.ext.gxt.form
Class ComboBase<M>

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.extjs.gxt.ui.client.widget.Component
              extended by com.extjs.gxt.ui.client.widget.BoxComponent
                  extended by com.extjs.gxt.ui.client.widget.form.Field<D>
                      extended by com.extjs.gxt.ui.client.widget.form.TextField<D>
                          extended by com.extjs.gxt.ui.client.widget.form.TriggerField<M>
                              extended by com.sibvisions.rad.ui.web.ext.gxt.form.ComboBase<M>
Type Parameters:
M - the field model
All Implemented Interfaces:
Observable, HasHandlers, EventListener
Direct Known Subclasses:
GridComboBox

public class ComboBase<M>
extends TriggerField<M>

The ComboBase is a combo box with any BoxComponent in the popup. It does not define how the value from the popup will be set to the text field.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.extjs.gxt.ui.client.widget.form.TextField
TextField.TextFieldMessages
 
Nested classes/interfaces inherited from class com.extjs.gxt.ui.client.widget.form.Field
Field.FieldImages, Field.FieldMessages
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
 
Field Summary
 
Fields inherited from class com.extjs.gxt.ui.client.widget.form.TriggerField
focusEventPreview, mimicing, trigger, triggerStyle
 
Fields inherited from class com.extjs.gxt.ui.client.widget.form.TextField
emptyStyle, impl, input, validator
 
Fields inherited from class com.extjs.gxt.ui.client.widget.form.Field
autoValidate, emptyText, errorIcon, fieldStyle, focusStyle, focusValue, forceInvalidText, hasFocus, images, invalidStyle, messages, name, originalValue, preventMark, propertyEditor, readOnly, readOnlyFieldStyle, validationDelay, value
 
Fields inherited from class com.extjs.gxt.ui.client.widget.BoxComponent
adjustSize, cacheSizes, ensureVisibilityOnSizing, height, lastSize, layer, shim, width
 
Fields inherited from class com.extjs.gxt.ui.client.widget.Component
afterRender, attachables, baseStyle, disabled, disabledStyle, disableTextSelection, dummy, focusable, hidden, mask, maskMessage, maskMessageStyleName, monitorWindowResize, rendered, resizeHandler, setElementRender, stateId, swallowEvents, toolTip, windowResizeDelay, windowResizeTask
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
ComboBase()
          Creates a new instance of ComboBase with default settings.
 
Method Summary
protected  void checkHideCombo(PreviewEvent pEvent)
          Checks if the popup should be hidden.
protected  void configurePopup()
          Configures the popup before showing.
 int getMaxPopupHeight()
          Returns the dropdown list's max height.
 int getMinPopupWidth()
          Returns the dropdown list's min width.
 Widget getPopupComponent()
          Gets the popup component.
 void hidePopup()
          Hides the popup.
protected  void onDetach()
          
protected  void onRender(Element parent, int index)
          
protected  void onTriggerClick(ComponentEvent pEvent)
          
protected  void onWindowResize(int width, int height)
          
 void setMaxPopupHeight(int pMaxHeight)
          Sets the maximum height in pixels of the popup in pixels (defaults to 300).
 void setMinPopupWidth(int pMinWidth)
          Sets the minimum width of the popup in pixels (defaults to 70).
 void setPopupComponent(BoxComponent pComponent)
          Sets the popup component.
 void showPopup()
          Shows the popup.
protected  boolean validateBlur(DomEvent e, Element target)
          
 
Methods inherited from class com.extjs.gxt.ui.client.widget.form.TriggerField
adjustInputSize, afterRender, beforeBlur, getTriggerStyle, isEditable, isHideTrigger, isMonitorTab, mimicBlur, onBlur, onClick, onComponentEvent, onDisable, onEnable, onFocus, onKeyDown, onResize, setEditable, setHideTrigger, setMonitorTab, setReadOnly, setTriggerStyle, triggerBlur
 
Methods inherited from class com.extjs.gxt.ui.client.widget.form.TextField
applyEmptyText, getAllowBlank, getCursorPos, getFocusEl, getInputEl, getMaxLength, getMessages, getMinLength, getRegex, getSelectedText, getSelectionLength, getSelectOnFocus, getStyleEl, getValidator, isPassword, onKeyPress, onKeyUp, removeEmptyText, select, selectAll, setAllowBlank, setCursorPos, setEmptyText, setMaxLength, setMinLength, setPassword, setRegex, setSelectionRange, setSelectOnFocus, setValidator, setValue, validateValue
 
Methods inherited from class com.extjs.gxt.ui.client.widget.form.Field
addInputStyleName, addKeyListener, alignErrorIcon, clear, clearInvalid, createComponentEvent, doDetachChildren, fireChangeEvent, fireKey, focus, forceInvalid, getAutoValidate, getEmptyText, getErrorMessage, getFieldLabel, getImages, getLabelSeparator, getLabelStyle, getMessageTarget, getName, getOriginalValue, getPropertyEditor, getRawValue, getValidateOnBlur, getValidationDelay, getValue, initValue, isDirty, isFireChangeEventOnSetValue, isHideLabel, isInEditor, isReadOnly, isValid, isValid, markInvalid, onHide, onShow, removeInputStyleName, removeKeyListener, reset, setAutoValidate, setFieldLabel, setFireChangeEventOnSetValue, setHideLabel, setImages, setInEditor, setInputStyleAttribute, setLabelSeparator, setLabelStyle, setMessages, setMessageTarget, setName, setOriginalValue, setPropertyEditor, setRawValue, setTabIndex, setValidateOnBlur, setValidationDelay, updateOriginalValue, validate, validate
 
Methods inherited from class com.extjs.gxt.ui.client.widget.BoxComponent
adjustPosition, adjustSize, getBounds, getHeight, getHeight, getPosition, getPositionEl, getResizeEl, getShadow, getShadowOffset, getShadowPosition, getSize, getWidth, getWidth, hideShadow, hideShim, hideUnders, isAutoHeight, isAutoWidth, isDeferHeight, isShim, onPosition, onUnload, setAutoHeight, setAutoWidth, setBounds, setBounds, setDeferHeight, setHeight, setHeight, setPagePosition, setPagePosition, setPixelSize, setPosition, setShadow, setShadowOffset, setShadowPosition, setShim, setSize, setSize, setWidth, setWidth, sync, syncSize
 
Methods inherited from class com.extjs.gxt.ui.client.widget.Component
addAttachable, addListener, addPlugin, addStyleName, addStyleOnOver, addWidgetListener, applyState, assertAfterRender, assertPreRender, beforeRender, blur, clearState, createObservable, createStyles, disable, disableContextMenu, disableEvents, disableTextSelection, doAttachChildren, el, enable, enableEvents, fireEvent, fireEvent, fireEvent, fly, frame, getAriaDescribedBy, getAriaLabelledBy, getBaseStyle, getBorders, getContextMenu, getData, getElement, getHideMode, getId, getItemId, getListeners, getModel, getObservable, getPlugins, getState, getStateId, getTabIndex, getTitle, getToolTip, getWindowResizeDelay, hasListeners, hasListeners, hide, hideToolTip, initState, isAriaIgnore, isDisabledEvents, isDisableTextSelection, isEnabled, isMasked, isMonitorWindowResize, isRendered, isStateful, isVisible, isVisible, mask, mask, mask, notifyHide, notifyShow, onAttach, onBrowserEvent, onDetachHelper, onEnsureDebugId, onHideContextMenu, onLoad, onRightClick, onShowContextMenu, previewEvent, recalculate, removeAllListeners, removeAttachagle, removeFromParent, removeListener, removeStyleName, removeStyleOnOver, removeSwallow, removeToolTip, removeWidgetListener, render, render, repaint, saveState, setAriaDescribedBy, setAriaIgnore, setAriaLabelledBy, setBorders, setContextMenu, setData, setEl, setElement, setElement, setEnabled, setFiresEvents, setHideMode, setId, setIntStyleAttribute, setItemId, setModel, setMonitorWindowResize, setParent, setStateful, setStateId, setStyleAttribute, setStyleName, setTitle, setToolTip, setToolTip, setVisible, setWindowResizeDelay, setZIndex, show, sinkEvents, swallowEvent, swallowEvent, toString, unframe, unmask
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addDomHandler, addHandler, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, setLayoutData
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, removeStyleDependentName, setElement, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ComboBase

public ComboBase()
Creates a new instance of ComboBase with default settings.

Method Detail

onTriggerClick

protected void onTriggerClick(ComponentEvent pEvent)

Overrides:
onTriggerClick in class TriggerField<M>

onDetach

protected void onDetach()

Overrides:
onDetach in class Component

onWindowResize

protected void onWindowResize(int width,
                              int height)

Overrides:
onWindowResize in class Component

onRender

protected void onRender(Element parent,
                        int index)

Overrides:
onRender in class TriggerField<M>

validateBlur

protected boolean validateBlur(DomEvent e,
                               Element target)

Overrides:
validateBlur in class TriggerField<M>

checkHideCombo

protected void checkHideCombo(PreviewEvent pEvent)
Checks if the popup should be hidden.

Parameters:
pEvent - the event

hidePopup

public void hidePopup()
Hides the popup.


showPopup

public void showPopup()
Shows the popup.


configurePopup

protected void configurePopup()
Configures the popup before showing.


setPopupComponent

public void setPopupComponent(BoxComponent pComponent)
Sets the popup component.

Parameters:
pComponent - the component to be show in the popup

getPopupComponent

public Widget getPopupComponent()
Gets the popup component.

Returns:
the component

setMaxPopupHeight

public void setMaxPopupHeight(int pMaxHeight)
Sets the maximum height in pixels of the popup in pixels (defaults to 300).

Parameters:
pMaxHeight - the max height

getMaxPopupHeight

public int getMaxPopupHeight()
Returns the dropdown list's max height.

Returns:
the max height

setMinPopupWidth

public void setMinPopupWidth(int pMinWidth)
Sets the minimum width of the popup in pixels (defaults to 70).

Parameters:
pMinWidth - the min width

getMinPopupWidth

public int getMinPopupWidth()
Returns the dropdown list's min width.

Returns:
the min width


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.