|
||||||||||
| 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.Panel
com.google.gwt.user.client.ui.SimplePanel
org.cafesip.gwtcomp.client.ui.DataEntryPanel
public class DataEntryPanel
A panel for data entry. The data entry panel allows common-styles to be applied to screens from where the user submits data. For example, the data panel may be used to create a "feedback form" where an user can enter his/her name, address, etc. The panel allows you to add a title bar, a message bar for displaying error/warning/info messages, a set of user input widgets (with label) and optionally, a set of buttons.
CSS Style Rules:
Screen-Shots:
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
DataEntryPanel()
A constructor for this class. |
|
DataEntryPanel(TitleBar titleBar,
MessageBar messageBar)
A constructor for this class. |
|
| Method Summary | |
|---|---|
void |
addButton(Button button)
Add a button to the button bar |
void |
addField(Label label,
Widget entry)
Same as the other addField() method - mandatory flag is set to false automatically. |
void |
addField(Label label,
Widget entry,
boolean required)
Add a label and an input field. |
void |
addField(Widget entry)
Adds a single widget to the form layout instead of adding a label/entry. |
ButtonPanel |
getButtonBar()
Returns the button bar at the bottom of the panel. |
MessageBar |
getMessageBar()
Returns the message bar at the top of the panel. |
FlexTable |
getTable()
Returns the table that is used for laying out the data entry panel. |
TitleBar |
getTitleBar()
Returns the title bar at the top of the panel. |
void |
setMessageBar(MessageBar messageBar)
Sets a message bar. |
void |
setTitleBar(TitleBar titleBar)
Sets a title bar. |
| Methods inherited from class com.google.gwt.user.client.ui.SimplePanel |
|---|
add, getContainerElement, getWidget, iterator, remove, setWidget |
| Methods inherited from class com.google.gwt.user.client.ui.Panel |
|---|
adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, onLoad, onUnload, orphan |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addDomHandler, addHandler, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DataEntryPanel()
public DataEntryPanel(TitleBar titleBar,
MessageBar messageBar)
titleBar - a title bar object that is displayedmessageBar - a message bar object that is displayed| Method Detail |
|---|
public ButtonPanel getButtonBar()
public MessageBar getMessageBar()
public void setMessageBar(MessageBar messageBar)
messageBar - The message bar to set.public FlexTable getTable()
public TitleBar getTitleBar()
public void setTitleBar(TitleBar titleBar)
titleBar - The title bar to set.public void addButton(Button button)
button - button to add.
public void addField(Label label,
Widget entry,
boolean required)
label - label for the input field.entry - the input field.required - true if the parameter entry is mandatory.
public void addField(Label label,
Widget entry)
label - entry - public void addField(Widget entry)
entry - the widget that is to be added.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||