public abstract class TextButtonPanel<TypeOfSelectedValue> extends com.google.gwt.user.client.ui.SimplePanel implements AdvancedWidget, com.google.gwt.user.client.ui.HasValue<TypeOfSelectedValue>
ComboBox
,
DatePicker
Modifier and Type | Class and Description |
---|---|
static class |
TextButtonPanel.EnterAction |
Modifier | Constructor and Description |
---|---|
protected |
TextButtonPanel() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
addComponentListeners()
This method adds component listeners.
|
void |
cleanSelection()
Cleans all the data displayed in the widget.
|
void |
display()
Deprecated.
you don't have to use this method to display the widget any more
|
protected com.google.gwt.user.client.ui.ToggleButton |
getChoiceButton()
Getter for property 'choiceButton'.
|
protected com.google.gwt.user.client.ui.Image |
getChoiceButtonImage()
Getter for property 'choiceButtonImage'.
|
protected abstract String |
getDefaultImageName()
This method should returns a default button image name.
|
TextButtonPanel.EnterAction |
getEnterAction() |
protected String |
getHeight()
Getter for property 'height'.
|
protected com.google.gwt.user.client.ui.FlexTable |
getLayout()
Getter for property 'layout'.
|
protected LockingPanel |
getLockingPanel()
Getter for property 'lockingPanel'.
|
int |
getMaxLength()
This method gets a maximum length of the text box.
|
protected com.google.gwt.user.client.ui.TextBox |
getSelectedValue()
Getter for property 'selectedValue'.
|
protected String |
getWidth()
Getter for property 'width'.
|
boolean |
isChoiceButtonVisible()
Getter for property 'choiceButtonVisible'.
|
boolean |
isCustomTextAllowed()
Getter for property 'customTextAllowed'.
|
boolean |
isEnabled()
Checks whether the controls palced on this panel are enabled.
|
boolean |
isLocked()
Getter for property 'locked'.
|
void |
lock()
This method locks the screen.
|
protected void |
prepareChoiceButton()
Prepares the drop down button for displaying.
|
protected void |
prepareSelectedValue()
Prepares the selected value box for displaying.
|
void |
setChoiceButtonImage(com.google.gwt.user.client.ui.Image choiceButtonImage)
Setter for property 'choiceButtonImage'.
|
void |
setChoiceButtonVisible(boolean choiceButtonVisible)
Setter for property 'choiceButtonVisible'.
|
void |
setCustomTextAllowed(boolean customTextAllowed)
Setter for property 'customTextAllowed'.
|
void |
setEnabled(boolean enabled)
Enables or disables the controls inside the panel.
|
void |
setEnterAction(TextButtonPanel.EnterAction enterAction) |
void |
setHeight(String height) |
protected void |
setLocked(boolean locked)
Setter for property 'locked'.
|
void |
setMaxLength(int length)
This method sets a maximum length of the text box.
|
void |
setTabIndex(int index)
This method sets a tab index for this component.
|
void |
setWidth(String width) |
void |
unlock()
This method unlocks the screen and redisplays the widget.
|
add, getContainerElement, getWidget, iterator, remove, setWidget, setWidget
add, adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, sinkBitlessEvent, toString, unsinkEvents
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getValue, setValue, setValue
public boolean isCustomTextAllowed()
public void setCustomTextAllowed(boolean customTextAllowed)
customTextAllowed
- Value to set for property 'customTextAllowed'.public void setChoiceButtonImage(com.google.gwt.user.client.ui.Image choiceButtonImage)
choiceButtonImage
- Value to set for property 'choiceButtonImage'.public boolean isChoiceButtonVisible()
public void setChoiceButtonVisible(boolean choiceButtonVisible)
choiceButtonVisible
- Value to set for property 'choiceButtonVisible'.public void display()
display
in interface AdvancedWidget
public void setWidth(String width)
setWidth
in class com.google.gwt.user.client.ui.UIObject
public void setHeight(String height)
setHeight
in class com.google.gwt.user.client.ui.UIObject
public int getMaxLength()
isCustomTextAllowed()
and setCustomTextAllowed(boolean)
.public void setMaxLength(int length)
isCustomTextAllowed()
and setCustomTextAllowed(boolean)
.length
- is a maximum length of the text box.public void setTabIndex(int index)
index
- is a tab order number.public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled
- is a flag that means whether the controls must be enabled.public void cleanSelection()
protected abstract String getDefaultImageName()
protected abstract void addComponentListeners()
protected void prepareSelectedValue()
protected void prepareChoiceButton()
protected com.google.gwt.user.client.ui.FlexTable getLayout()
protected com.google.gwt.user.client.ui.TextBox getSelectedValue()
protected com.google.gwt.user.client.ui.ToggleButton getChoiceButton()
protected com.google.gwt.user.client.ui.Image getChoiceButtonImage()
public boolean isLocked()
public void lock()
public void unlock()
protected void setLocked(boolean locked)
locked
- Value to set for property 'locked'.protected LockingPanel getLockingPanel()
protected String getWidth()
protected String getHeight()
public TextButtonPanel.EnterAction getEnterAction()
public void setEnterAction(TextButtonPanel.EnterAction enterAction)
Copyright © 2008–2013. All rights reserved.