net.pleso.framework.client.ui.custom.controls
Class FormItemsGroupWidget

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 net.pleso.framework.client.ui.custom.controls.FormItemsGroupWidget
All Implemented Interfaces:
com.google.gwt.user.client.EventListener

public class FormItemsGroupWidget
extends com.google.gwt.user.client.ui.Composite

Widget with FormItemsWidget and header. Used in CustomFormWindow.

CSS Style Rules


Constructor Summary
FormItemsGroupWidget(IWindow parentWindow, IUpdateControlListener updateControlListenerer, com.google.gwt.user.client.ui.KeyboardListener keyboardListener, com.google.gwt.user.client.ui.Panel slidersPanel)
          Constructs empty FormItemsGroupWidget with specified parameters.
 
Method Summary
 boolean focusOnFirstControl()
          Makes first IFocusControl controls in all controlls list to be focused.
 void hideWindows()
          Hides all windows in child sliders.
 void initFormItemsGroup(IFormItemsGroup formItemsGroup, IDataRow dataRow)
          Inits widget whith IFormItemsGroup and IDataRow.
 boolean isValid()
          Returns validation success result.
 void reReadBindableControls()
          Forces bindable controls to read binded data.
 void updateAllData()
          Updates binded #dataRow by values from all group controls.
 void validate()
          Make validation on all group controls.
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getElement
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
getParent, isAttached, onBrowserEvent, removeFromParent
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleName, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getTitle, isVisible, isVisible, removeStyleName, setHeight, setPixelSize, setSize, setStyleName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FormItemsGroupWidget

public FormItemsGroupWidget(IWindow parentWindow,
                            IUpdateControlListener updateControlListenerer,
                            com.google.gwt.user.client.ui.KeyboardListener keyboardListener,
                            com.google.gwt.user.client.ui.Panel slidersPanel)
Constructs empty FormItemsGroupWidget with specified parameters.

Parameters:
parentWindow - parent IWindow
updateControlListenerer - a IUpdateControlListener instance
keyboardListener - a KeyboardListener instance
slidersPanel - a Panel where sliders should be placed
Method Detail

initFormItemsGroup

public void initFormItemsGroup(IFormItemsGroup formItemsGroup,
                               IDataRow dataRow)
Inits widget whith IFormItemsGroup and IDataRow.

Parameters:
formItemsGroup - a IFormItemsGroup instance
dataRow - a IDataRow instance

updateAllData

public void updateAllData()
Updates binded #dataRow by values from all group controls.


reReadBindableControls

public void reReadBindableControls()
Forces bindable controls to read binded data.


hideWindows

public void hideWindows()
Hides all windows in child sliders.


focusOnFirstControl

public boolean focusOnFirstControl()
Makes first IFocusControl controls in all controlls list to be focused.

Returns:
true if some control was focused

isValid

public boolean isValid()
Returns validation success result.

Returns:
true if all form controls' values are valid

validate

public void validate()
Make validation on all group controls.



Copyright © 2006-2007 pleso.net crew All Rights Reserved.