|
|||||||||
| 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.extjs.gxt.ui.client.widget.Component
com.extjs.gxt.ui.client.widget.ColorPalette
public class ColorPalette
Basic color component.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
ColorPalette()
Creates a new color palette. |
|
| Method Summary | |
|---|---|
java.lang.String[] |
getColors()
Returns the colors. |
XTemplate |
getTemplate()
Returns the xtemplate. |
java.lang.String |
getValue()
Returns the current selected color. |
boolean |
isAllowReselect()
Returns true if re-selections are allowed. |
void |
onComponentEvent(ComponentEvent ce)
Any events a component receives will be forwarded to this method. |
void |
select(java.lang.String color)
Selects the color. |
void |
setAllowReselect(boolean allowReselect)
True to fire a select event if the current selected value is selected again (default to false). |
void |
setColors(java.lang.String[] colors)
Sets the colors for the palette. |
void |
setTemplate(XTemplate template)
Optionally, sets the xtemplate to be used to render the component. |
void |
setValue(java.lang.String value)
Sets the selected color. |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
fireEvent, getParent, isAttached |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, removeStyleDependentName, setStylePrimaryName, setVisible, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ColorPalette()
| Method Detail |
|---|
public java.lang.String[] getColors()
public XTemplate getTemplate()
public java.lang.String getValue()
public boolean isAllowReselect()
public void onComponentEvent(ComponentEvent ce)
ComponentComponent.onBrowserEvent(com.google.gwt.user.client.Event) method
should not be overridden or modified.
onComponentEvent in class Componentce - the base eventpublic void select(java.lang.String color)
color - the colorpublic void setAllowReselect(boolean allowReselect)
allowReselect - true to fire select events if re-selectedpublic void setColors(java.lang.String[] colors)
colors - the colors to setpublic void setTemplate(XTemplate template)
template - the xtemplatepublic void setValue(java.lang.String value)
value - the value to set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||