|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
net.pleso.framework.client.ui.custom.controls.FormItemsWidget
public class FormItemsWidget
Represents composite widget (grid) that works with IFormItem
instances array. Builds corresponding data controls in itself. Grid has two
columns and number of rows that equal length of IFormItem
instances
array. In the left column - form item caption. In the right cell -
corresponding data control.
Constructor Summary | |
---|---|
FormItemsWidget(IWindow parentWindow,
IUpdateControlListener updateControlListenerer,
com.google.gwt.user.client.ui.KeyboardListener keyboardListener,
com.google.gwt.user.client.ui.Panel slidersPanel)
Constructs empty FormItemsWidget . |
Method Summary | |
---|---|
boolean |
focusOnFirstControl()
Makes first IFocusControl controls in all controlls list to be
focused. |
void |
hideSlidersWindows()
Hides all windows in child sliders. |
void |
initFormControls(IFormItem[] items,
IDataRow dataRow)
Inits widget whith IFormItemsGroup and IDataRow . |
boolean |
isValid()
Returns validation success result. |
void |
reReadBindableControls()
Forces bindable controls to read binded data. |
void |
updateData()
Updates binded #dataRow by values from all controls. |
void |
validate()
Make validation on all 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 |
---|
public FormItemsWidget(IWindow parentWindow, IUpdateControlListener updateControlListenerer, com.google.gwt.user.client.ui.KeyboardListener keyboardListener, com.google.gwt.user.client.ui.Panel slidersPanel)
FormItemsWidget
.
parentWindow
- parent IWindow
updateControlListenerer
- a IUpdateControlListener
instancekeyboardListener
- a KeyboardListener
instanceslidersPanel
- a Panel
where sliders should be placedMethod Detail |
---|
public void initFormControls(IFormItem[] items, IDataRow dataRow)
IFormItemsGroup
and IDataRow
.
formItemsGroup
- a IFormItemsGroup
instancedataRow
- a IDataRow
instancepublic void validate()
public boolean isValid()
true
if all form controls' values are validpublic void hideSlidersWindows()
public void reReadBindableControls()
public void updateData()
#dataRow
by values from all controls.
public boolean focusOnFirstControl()
IFocusControl
controls in all controlls list to be
focused.
true
if some control was focused
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |