org.gwtiger.client.widget.field
Class BaseFieldLabelWidget

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 org.gwtiger.client.widget.field.BaseFieldLabelWidget
All Implemented Interfaces:
com.google.gwt.user.client.EventListener, Validate, ValidateKeyboard
Direct Known Subclasses:
CheckBoxFieldWidget, HyperlinkFieldWidget, LabelFieldWidget, ListBoxFieldWidget, PasswordFieldWidget, TextAreaFieldWidget, TextFieldWidget, WidgetFieldWidget

public abstract class BaseFieldLabelWidget
extends com.google.gwt.user.client.ui.Composite
implements Validate, ValidateKeyboard


Field Summary
static java.lang.String STYLE_INPUT
           
static java.lang.String STYLE_LABEL
           
 
Constructor Summary
BaseFieldLabelWidget(java.lang.String labelText)
           
 
Method Summary
abstract  void clear()
           
 java.lang.String getErrorStyleName()
           
 java.lang.String getLabel()
           
 java.lang.String getLabelStyleName()
           
 com.google.gwt.user.client.ui.FlexTable getPanel()
           
 java.lang.String getStyleName()
           
 boolean isRequired()
           
 void setErrorStyleName(java.lang.String style)
           
 void setLabel(java.lang.String labelText)
           
 void setLabelStyleName(java.lang.String style)
           
 void setRequired(boolean required)
           
 void setStyleName(java.lang.String style)
           
 void setWidget(int row, int column, com.google.gwt.user.client.ui.Widget widget)
          This method returns the panel that encloses the Label and the Widget
 void showError(boolean visible)
           
 void showError(java.lang.String errorMessage)
           
 void showError(java.lang.String errorMessage, boolean visible)
           
abstract  boolean validate()
           
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getElement, isAttached
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
getParent, onBrowserEvent, removeFromParent
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.gwtiger.client.widget.field.ValidateKeyboard
addKeyboardListener
 

Field Detail

STYLE_INPUT

public static final java.lang.String STYLE_INPUT
See Also:
Constant Field Values

STYLE_LABEL

public static final java.lang.String STYLE_LABEL
See Also:
Constant Field Values
Constructor Detail

BaseFieldLabelWidget

public BaseFieldLabelWidget(java.lang.String labelText)
Method Detail

validate

public abstract boolean validate()
Specified by:
validate in interface Validate

clear

public abstract void clear()
Specified by:
clear in interface Validate

getLabel

public java.lang.String getLabel()

setLabel

public void setLabel(java.lang.String labelText)

showError

public void showError(boolean visible)

showError

public void showError(java.lang.String errorMessage,
                      boolean visible)

showError

public void showError(java.lang.String errorMessage)

setRequired

public void setRequired(boolean required)

setLabelStyleName

public void setLabelStyleName(java.lang.String style)

getLabelStyleName

public java.lang.String getLabelStyleName()

setWidget

public void setWidget(int row,
                      int column,
                      com.google.gwt.user.client.ui.Widget widget)
This method returns the panel that encloses the Label and the Widget


getPanel

public com.google.gwt.user.client.ui.FlexTable getPanel()

setErrorStyleName

public void setErrorStyleName(java.lang.String style)

getErrorStyleName

public java.lang.String getErrorStyleName()

setStyleName

public void setStyleName(java.lang.String style)
Overrides:
setStyleName in class com.google.gwt.user.client.ui.UIObject

getStyleName

public java.lang.String getStyleName()
Overrides:
getStyleName in class com.google.gwt.user.client.ui.UIObject

isRequired

public boolean isRequired()