public class SymbolPalette extends com.google.gwt.user.client.ui.Composite implements com.google.gwt.event.logical.shared.HasSelectionHandlers<String>, com.google.gwt.event.dom.client.ClickHandler
| Constructor and Description |
|---|
SymbolPalette(Object[][] symbols,
int rows,
int columns)
Creates a new symbol palette using the given list of symbols to fill a symbol grid with the specified number of
rows and columns.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addSelectionHandler(com.google.gwt.event.logical.shared.SelectionHandler<String> handler) |
String |
getSelectedSymbol() |
protected com.google.gwt.user.client.ui.Grid |
getSymbolGrid() |
void |
onClick(com.google.gwt.event.dom.client.ClickEvent event) |
void |
setSelectedSymbol(String symbol)
Selects a symbol in the symbol grid.
|
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, 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, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringpublic SymbolPalette(Object[][] symbols, int rows, int columns)
symbols - the list of symbols that are used to fill the symbol gridrows - the number of rows in the symbol gridcolumns - the number of columns in the symbol gridpublic com.google.gwt.event.shared.HandlerRegistration addSelectionHandler(com.google.gwt.event.logical.shared.SelectionHandler<String> handler)
addSelectionHandler in interface com.google.gwt.event.logical.shared.HasSelectionHandlers<String>HasSelectionHandlers.addSelectionHandler(SelectionHandler)protected com.google.gwt.user.client.ui.Grid getSymbolGrid()
public void onClick(com.google.gwt.event.dom.client.ClickEvent event)
onClick in interface com.google.gwt.event.dom.client.ClickHandlerClickHandler.onClick(ClickEvent)public String getSelectedSymbol()
public void setSelectedSymbol(String symbol)
symbol - the symbol to be selectedCopyright © 2004–2014 XWiki. All rights reserved.