|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sencha.gxt.theme.base.client.colorpalette.ColorPaletteBaseAppearance
public abstract class ColorPaletteBaseAppearance
| Nested Class Summary | |
|---|---|
static interface |
ColorPaletteBaseAppearance.BaseColorPaletteTemplate
|
static interface |
ColorPaletteBaseAppearance.ColorPaletteResources
|
static interface |
ColorPaletteBaseAppearance.ColorPaletteStyle
|
| Constructor Summary | |
|---|---|
ColorPaletteBaseAppearance(ColorPaletteBaseAppearance.ColorPaletteResources resources,
ColorPaletteBaseAppearance.BaseColorPaletteTemplate template)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getAboveColor(XElement parent,
java.lang.String value)
Gets the color of the element above the specified element. |
java.lang.String |
getBelowColor(XElement parent,
java.lang.String value)
Gets the color of the element below the specified element. |
XElement |
getChildElement(XElement parent,
java.lang.String color)
Gets the child element with the specified color. |
java.lang.String |
getClickedColor(XElement parent,
Element target)
Gets the color associated with the specified child element. |
Element |
getColorElement(XElement parent,
Element target)
Gets the color element associated with the specified child element. |
NodeList<Element> |
getColorElements(XElement parent)
Gets the list of color elements for the specified parent. |
int |
getColumnCount()
|
java.lang.String |
getLeftColor(XElement parent,
java.lang.String value)
Gets the color of the element to the left of the specified element. |
java.lang.String |
getRightColor(XElement parent,
java.lang.String value)
Gets the color of the element to the right of the specified element. |
int |
getRowCount(XElement parent)
|
void |
hover(XElement parent,
Element target,
boolean entering)
Modifies the appearance to indicate whether the specified child color element is being hovered over. |
void |
onMouseOut(XElement parent,
Element target,
NativeEvent event)
Modifies the appearance to indicate that the mouse has moved off the specified child color element. |
void |
onMouseOver(XElement parent,
Element target,
NativeEvent event)
Modifies the appearance to indicate that the mouse has moved over the specified child color element. |
void |
render(Cell.Context context,
java.lang.String value,
java.lang.String[] colors,
java.lang.String[] labels,
SafeHtmlBuilder result)
Renders the appearance of a color palette cell as HTML into a SafeHtmlBuilder, suitable for passing to
Element.setInnerHTML(String) on a container element. |
void |
setColumnCount(int columnCount)
|
java.lang.String |
stripColorName(java.lang.String className)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ColorPaletteBaseAppearance(ColorPaletteBaseAppearance.ColorPaletteResources resources,
ColorPaletteBaseAppearance.BaseColorPaletteTemplate template)
| Method Detail |
|---|
public java.lang.String getAboveColor(XElement parent,
java.lang.String value)
ColorPaletteCell.ColorPaletteAppearance
getAboveColor in interface ColorPaletteCell.ColorPaletteAppearanceparent - the parent of the specified elementvalue - the color of the specified element
public java.lang.String getBelowColor(XElement parent,
java.lang.String value)
ColorPaletteCell.ColorPaletteAppearance
getBelowColor in interface ColorPaletteCell.ColorPaletteAppearanceparent - the parent of the specified elementvalue - the color of the specified element
public XElement getChildElement(XElement parent,
java.lang.String color)
ColorPaletteCell.ColorPaletteAppearance
getChildElement in interface ColorPaletteCell.ColorPaletteAppearanceparent - the parent of the child elementcolor - the color
public java.lang.String getClickedColor(XElement parent,
Element target)
ColorPaletteCell.ColorPaletteAppearance
getClickedColor in interface ColorPaletteCell.ColorPaletteAppearanceparent - the parenttarget - the child
public Element getColorElement(XElement parent,
Element target)
ColorPaletteCell.ColorPaletteAppearance
getColorElement in interface ColorPaletteCell.ColorPaletteAppearanceparent - the parenttarget - the child
public NodeList<Element> getColorElements(XElement parent)
ColorPaletteCell.ColorPaletteAppearance
getColorElements in interface ColorPaletteCell.ColorPaletteAppearanceparent - the parent
public int getColumnCount()
public java.lang.String getLeftColor(XElement parent,
java.lang.String value)
ColorPaletteCell.ColorPaletteAppearance
getLeftColor in interface ColorPaletteCell.ColorPaletteAppearanceparent - the parent of the specified elementvalue - the color of the specified element
public java.lang.String getRightColor(XElement parent,
java.lang.String value)
ColorPaletteCell.ColorPaletteAppearance
getRightColor in interface ColorPaletteCell.ColorPaletteAppearanceparent - the parent of the specified elementvalue - the color of the specified element
public int getRowCount(XElement parent)
public void hover(XElement parent,
Element target,
boolean entering)
ColorPaletteCell.ColorPaletteAppearance
hover in interface ColorPaletteCell.ColorPaletteAppearanceparent - the parenttarget - the childentering - true to indicate the hover has just started
public void onMouseOut(XElement parent,
Element target,
NativeEvent event)
ColorPaletteCell.ColorPaletteAppearance
onMouseOut in interface ColorPaletteCell.ColorPaletteAppearanceparent - the parenttarget - the childevent - the browser event associated with mousing out
public void onMouseOver(XElement parent,
Element target,
NativeEvent event)
ColorPaletteCell.ColorPaletteAppearance
onMouseOver in interface ColorPaletteCell.ColorPaletteAppearanceparent - the parenttarget - the childevent - the browser event associated with mousing over
public void render(Cell.Context context,
java.lang.String value,
java.lang.String[] colors,
java.lang.String[] labels,
SafeHtmlBuilder result)
ColorPaletteCell.ColorPaletteAppearanceSafeHtmlBuilder, suitable for passing to
Element.setInnerHTML(String) on a container element.
render in interface ColorPaletteCell.ColorPaletteAppearancecontext - contains information about context of the elementvalue - the color of the currently selected elementcolors - the colors, each consisting of a six digit hex value in
RRGGBB formatlabels - the color names, in the same order as colorsresult - receives the rendered appearancepublic void setColumnCount(int columnCount)
public java.lang.String stripColorName(java.lang.String className)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||