public class VColorPickerGrid
extends com.google.gwt.user.client.ui.AbsolutePanel
implements com.google.gwt.event.dom.client.ClickHandler, com.google.gwt.event.dom.client.HasClickHandlers
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled| Constructor and Description |
|---|
VColorPickerGrid()
Instantiates the client side component for a color picker grid.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addClickHandler(com.google.gwt.event.dom.client.ClickHandler handler) |
protected int |
getSelectedX()
Returns currently selected x-coordinate of the grid.
|
protected int |
getSelectedY()
Returns currently selected y-coordinate of the grid.
|
protected boolean |
isGridLoaded()
Returns true if the colors have been successfully updated at least once,
false otherwise.
|
void |
onClick(com.google.gwt.event.dom.client.ClickEvent event) |
protected void |
updateColor(String[] changedColor,
String[] changedX,
String[] changedY)
Updates the changed colors within the grid based on the given x- and
y-coordinates.
|
protected void |
updateGrid(int rowCount,
int columnCount)
Updates the row and column count and creates a new grid based on them.
|
add, add, add, getWidgetLeft, getWidgetTop, insert, insert, insert, remove, setWidgetPosition, setWidgetPositionImpladd, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, removeadd, adopt, clear, doAttachChildren, doDetachChildren, orphan, removeaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, 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 VColorPickerGrid()
protected void updateGrid(int rowCount,
int columnCount)
rowCount - columnCount - protected void updateColor(String[] changedColor, String[] changedX, String[] changedY)
changedColor - changedX - changedY - protected int getSelectedX()
protected int getSelectedY()
protected boolean isGridLoaded()
public void onClick(com.google.gwt.event.dom.client.ClickEvent event)
onClick in interface com.google.gwt.event.dom.client.ClickHandlerpublic com.google.gwt.event.shared.HandlerRegistration addClickHandler(com.google.gwt.event.dom.client.ClickHandler handler)
addClickHandler in interface com.google.gwt.event.dom.client.HasClickHandlersCopyright © 2016 Vaadin Ltd. All rights reserved.