|
|||||||||
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.extjs.gxt.ui.client.widget.Component |
---|
afterRender, attachables, baseStyle, disabled, disabledStyle, disableTextSelection, dummy, focusable, hidden, mask, maskMessage, maskMessageStyleName, monitorWindowResize, rendered, resizeHandler, setElementRender, stateId, swallowEvents, toolTip, windowResizeDelay, windowResizeTask |
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
ColorPalette()
Creates a new color palette. |
Method Summary | |
---|---|
protected void |
afterRender()
Called after the component has been rendered and is attached for the first time. |
protected ComponentEvent |
createComponentEvent(com.google.gwt.user.client.Event event)
|
java.lang.String[] |
getColors()
Returns the colors. |
int |
getColumnCount()
Returns the column count. |
XTemplate |
getTemplate()
Returns the xtemplate. |
java.lang.String |
getValue()
Returns the current selected color. |
boolean |
isAllowReselect()
Returns true if re-selections are allowed. |
protected void |
onBlur(ComponentEvent ce)
|
protected void |
onClick(ComponentEvent ce)
|
void |
onComponentEvent(ComponentEvent ce)
Any events a component receives will be forwarded to this method. |
protected void |
onFocus(ComponentEvent ce)
|
protected void |
onKeyDown(ComponentEvent ce)
|
protected void |
onKeyEnter(ComponentEvent ce)
|
protected void |
onKeyLeft(ComponentEvent ce)
|
protected void |
onKeyRight(ComponentEvent ce)
|
protected void |
onKeyUp(ComponentEvent ce)
|
protected void |
onMouseOut(ComponentEvent ce)
|
protected void |
onMouseOver(ComponentEvent ce)
|
protected void |
onRender(com.google.gwt.user.client.Element target,
int index)
Subclasses must override and ensure setElement is called for lazy rendered components. |
void |
select(java.lang.String color)
Selects the color. |
void |
select(java.lang.String color,
boolean suppressEvent)
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 |
setColumnCount(int columnCount)
Sets the column count 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 |
---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onUnload, setLayoutData |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
addStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, removeStyleDependentName, setElement, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ColorPalette()
Method Detail |
---|
public java.lang.String[] getColors()
public int getColumnCount()
public XTemplate getTemplate()
public java.lang.String getValue()
public boolean isAllowReselect()
public void onComponentEvent(ComponentEvent ce)
Component
Component.onBrowserEvent(com.google.gwt.user.client.Event)
method
should not be overridden or modified.
onComponentEvent
in class Component
ce
- the base eventpublic void select(java.lang.String color)
color
- the colorpublic void select(java.lang.String color, boolean suppressEvent)
color
- the colorsuppressEvent
- true to suppress the select eventpublic 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 setColumnCount(int columnCount)
columnCount
- the columnCount to setpublic void setTemplate(XTemplate template)
template
- the xtemplatepublic void setValue(java.lang.String value)
value
- the value to setprotected void afterRender()
Component
afterRender
in class Component
protected ComponentEvent createComponentEvent(com.google.gwt.user.client.Event event)
createComponentEvent
in class Component
protected void onBlur(ComponentEvent ce)
protected void onClick(ComponentEvent ce)
protected void onFocus(ComponentEvent ce)
protected void onKeyDown(ComponentEvent ce)
protected void onKeyEnter(ComponentEvent ce)
protected void onKeyLeft(ComponentEvent ce)
protected void onKeyRight(ComponentEvent ce)
protected void onKeyUp(ComponentEvent ce)
protected void onMouseOut(ComponentEvent ce)
protected void onMouseOver(ComponentEvent ce)
protected void onRender(com.google.gwt.user.client.Element target, int index)
Component
onRender
in class Component
target
- the target elementindex
- the insert location
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |