org.xwiki.gwt.wysiwyg.client.plugin.symbol
Class SymbolPicker

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Composite
              extended by org.xwiki.gwt.user.client.ui.CompositeDialogBox
                  extended by org.xwiki.gwt.wysiwyg.client.plugin.symbol.SymbolPicker
All Implemented Interfaces:
com.google.gwt.event.logical.shared.CloseHandler<com.google.gwt.user.client.ui.PopupPanel>, com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.logical.shared.HasCloseHandlers<CompositeDialogBox>, com.google.gwt.event.logical.shared.SelectionHandler<String>, com.google.gwt.event.shared.EventHandler, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget

public class SymbolPicker
extends CompositeDialogBox
implements com.google.gwt.event.logical.shared.SelectionHandler<String>

A popup panel which allows you to pick a symbol from a symbol palette by clicking on that symbol.

Version:
$Id: 604d7dde909a34a4d409544fd17b8553954f78fe $

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.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
SymbolPicker()
          Creates a new symbol picker using the default list of symbols.
 
Method Summary
 void center()
          
 String getSymbol()
           
 void onSelection(com.google.gwt.event.logical.shared.SelectionEvent<String> event)
          
 
Methods inherited from class org.xwiki.gwt.user.client.ui.CompositeDialogBox
addCloseHandler, getDialog, hide, initWidget, isShowing, onClose
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, 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, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
 

Constructor Detail

SymbolPicker

public SymbolPicker()
Creates a new symbol picker using the default list of symbols.

Method Detail

onSelection

public void onSelection(com.google.gwt.event.logical.shared.SelectionEvent<String> event)

Specified by:
onSelection in interface com.google.gwt.event.logical.shared.SelectionHandler<String>
See Also:
SelectionHandler.onSelection(SelectionEvent)

getSymbol

public String getSymbol()
Returns:
the selected symbol

center

public void center()

Overrides:
center in class CompositeDialogBox
See Also:
CompositeDialogBox.center()


Copyright © 2004-2012 XWiki. All Rights Reserved.