|
||||||||||
| 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
GWTApplication.client.LabelTextBox
class LabelTextBox
This is a composite Widget which is comprised of a label and a text box into which the user can enter free-format text. I have purposefully allowed the caller to access the widgets in order to simplify the creation of the class.
| Field Summary | |
|---|---|
(package private) com.google.gwt.user.client.ui.CellPanel |
containerPanel
This is the container panel |
static int |
HORIZONTAL
This static is used to indicate that the label and the text box should be packed in a horizontal manner |
com.google.gwt.user.client.ui.Label |
label
This is the label widget which is associated with the text box |
com.google.gwt.user.client.ui.TextBox |
textBox
This is the text box widget which is used To enter free-form text into. |
static int |
VERTICAL
This static is used to indicate that the label and the text box should be packed in a vertical manner |
| Constructor Summary | |
|---|---|
LabelTextBox(int Orientation)
This is the constructor for the class |
|
| Method Summary | |
|---|---|
void |
setFocus(boolean focusState)
Allows the user to set the focus |
void |
setWidth(java.lang.String width)
Allows the user to set the with of the containing panel which contains the subwidgets |
void |
setWidth(java.lang.String labelWidth,
java.lang.String textBoxWidth)
This is a convenience method which allows the caller to set the width of both the label and the text box simultaneously. |
| Methods inherited from class com.google.gwt.user.client.ui.Composite |
|---|
getElement, getWidget, initWidget, isAttached, onAttach, onDetach, setWidget |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
doAttachChildren, doDetachChildren, getParent, onBrowserEvent, onLoad, onUnload, removeFromParent, setElement |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, sinkEvents, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
com.google.gwt.user.client.ui.CellPanel containerPanel
public static final int HORIZONTAL
public static final int VERTICAL
public com.google.gwt.user.client.ui.TextBox textBox
public com.google.gwt.user.client.ui.Label label
| Constructor Detail |
|---|
LabelTextBox(int Orientation)
Orientation - This should be one of the above statics VERTICAL or HORIZONTAL| Method Detail |
|---|
public void setWidth(java.lang.String labelWidth,
java.lang.String textBoxWidth)
labelWidth - this is the expected width of the label and should be specified in a valid CSS unit.textBoxWidth - this is the expected width of the text box and should be specified in a valid CSS unit.public void setWidth(java.lang.String width)
setWidth in class com.google.gwt.user.client.ui.UIObjectwidth - This is the width of the panelpublic void setFocus(boolean focusState)
focusState - Sets the focus on this widget
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||