|
||||||||||
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.data.SelectorControl
public class SelectorControl
Selector data control. In this control user choose value from external reference book (f.e. by foreigh key). Contains text box and button "Select" (button "Clear" optionally for null values)
Constructor Summary | |
---|---|
SelectorControl(IWindow parentWindow,
ISelector selector)
|
Method Summary | |
---|---|
void |
addKeyboardListener(com.google.gwt.user.client.ui.KeyboardListener listener)
|
void |
bind(IDataRow row,
IDataColumn column)
Bind row and range columns |
boolean |
isRequired()
Gets required status for value in data control. |
boolean |
isValid()
Determines whether control value is valid after IEditableDataControl.validate()
calling. |
void |
onClick(com.google.gwt.user.client.ui.Widget sender)
|
void |
onHideWindow(IWindow sender)
Fired when the window has been hidden. |
void |
readData()
Ask control to read data from binded row and column and show it to user. |
void |
removeKeyboardListener(com.google.gwt.user.client.ui.KeyboardListener listener)
|
void |
setFocus(boolean focused)
Sets focus to the control. |
void |
setRequired(boolean required)
Sets required status for value in data control. |
void |
updateData()
Updates binded data by entered by user value. |
void |
validate()
Validates data in control. |
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 SelectorControl(IWindow parentWindow, ISelector selector)
parentWindow
- selector
- Method Detail |
---|
public void onClick(com.google.gwt.user.client.ui.Widget sender)
onClick
in interface com.google.gwt.user.client.ui.ClickListener
public void onHideWindow(IWindow sender)
HideWindowListener
onHideWindow
in interface HideWindowListener
sender
- the IWindow
has been hiddenpublic void bind(IDataRow row, IDataColumn column)
row
- row instancestart_column
- column instanceend_column
- column instancepublic boolean isValid()
IEditableDataControl
IEditableDataControl.validate()
calling.
isValid
in interface IEditableDataControl
public void readData()
IBindableDataControl
readData
in interface IBindableDataControl
public void updateData()
IEditableDataControl
updateData
in interface IEditableDataControl
public void validate()
IEditableDataControl
IEditableDataControl.validate()
outside code can call
IEditableDataControl.isValid()
to check whether validation was successful.
validate
in interface IEditableDataControl
public boolean isRequired()
IEditableDataControl
isRequired
in interface IEditableDataControl
public void setRequired(boolean required)
IEditableDataControl
setRequired
in interface IEditableDataControl
required
- required status (is value required)public void setFocus(boolean focused)
IFocusControl
setFocus
in interface IFocusControl
focused
- focus status (is control focused).public void addKeyboardListener(com.google.gwt.user.client.ui.KeyboardListener listener)
addKeyboardListener
in interface com.google.gwt.user.client.ui.SourcesKeyboardEvents
public void removeKeyboardListener(com.google.gwt.user.client.ui.KeyboardListener listener)
removeKeyboardListener
in interface com.google.gwt.user.client.ui.SourcesKeyboardEvents
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |