public class ColorCell
extends com.google.gwt.user.client.ui.FlowPanel
ColorPalette that can be selected by being clicked.com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled| Modifier and Type | Field and Description |
|---|---|
static String |
HOVERED_STYLE_NAME
The CSS class name used when the color cell is hovered.
|
static String |
NORMAL_STYLE_NAME
The CSS class name used when the color cell is neither selected nor hovered.
|
static String |
SELECTED_DARK_STYLE_NAME
The CSS class name used when a dark color is selected.
|
static String |
SELECTED_LIGHT_STYLE_NAME
The CSS class name used when a light color is selected.
|
| Constructor and Description |
|---|
ColorCell(String color)
Creates a new color cell using the specified color code.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getColor() |
String |
getHexColorCode() |
boolean |
isSelected() |
void |
onBrowserEvent(com.google.gwt.user.client.Event event) |
void |
setSelected(boolean selected)
Sets the selected state of this color cell.
|
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, removeadd, adopt, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetWidgetIndexgetWidget, getWidgetCount, getWidgetIndex, removeforEach, spliteratorpublic static final String NORMAL_STYLE_NAME
public static final String SELECTED_DARK_STYLE_NAME
public static final String SELECTED_LIGHT_STYLE_NAME
public static final String HOVERED_STYLE_NAME
public ColorCell(String color)
color - the code of the color to fill the new cellpublic String getHexColorCode()
public boolean isSelected()
selectedpublic void setSelected(boolean selected)
selected - true to mark this cell as selected, false otherwisepublic void onBrowserEvent(com.google.gwt.user.client.Event event)
onBrowserEvent in interface com.google.gwt.user.client.EventListeneronBrowserEvent in class com.google.gwt.user.client.ui.WidgetCopyright © 2004–2017 XWiki. All rights reserved.