com.xpn.xwiki.wysiwyg.client.plugin.color
Class ColorPalette

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 com.xpn.xwiki.wysiwyg.client.plugin.color.ColorPalette
All Implemented Interfaces:
com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.SourcesClickEvents, com.google.gwt.user.client.ui.TableListener

public class ColorPalette
extends com.google.gwt.user.client.ui.Composite
implements com.google.gwt.user.client.ui.SourcesClickEvents, com.google.gwt.user.client.ui.TableListener


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
ColorPalette(java.lang.String[][] colors)
           
 
Method Summary
 void addClickListener(com.google.gwt.user.client.ui.ClickListener listener)
          
 java.lang.String getSelectedColor()
           
 void onCellClicked(com.google.gwt.user.client.ui.SourcesTableEvents sender, int row, int column)
          
 void removeClickListener(com.google.gwt.user.client.ui.ClickListener listener)
          
 void setSelectedColor(java.lang.String color)
           
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
doAttachChildren, doDetachChildren, getParent, onLoad, onUnload, removeFromParent
 
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, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ColorPalette

public ColorPalette(java.lang.String[][] colors)
Method Detail

addClickListener

public void addClickListener(com.google.gwt.user.client.ui.ClickListener listener)

Specified by:
addClickListener in interface com.google.gwt.user.client.ui.SourcesClickEvents
See Also:
SourcesClickEvents.addClickListener(com.google.gwt.user.client.ui.ClickListener)

removeClickListener

public void removeClickListener(com.google.gwt.user.client.ui.ClickListener listener)

Specified by:
removeClickListener in interface com.google.gwt.user.client.ui.SourcesClickEvents
See Also:
SourcesClickEvents.removeClickListener(ClickListener)

onCellClicked

public void onCellClicked(com.google.gwt.user.client.ui.SourcesTableEvents sender,
                          int row,
                          int column)

Specified by:
onCellClicked in interface com.google.gwt.user.client.ui.TableListener
See Also:
TableListener.onCellClicked(SourcesTableEvents, int, int)

getSelectedColor

public java.lang.String getSelectedColor()

setSelectedColor

public void setSelectedColor(java.lang.String color)


Copyright © 2004-2008 XWiki. All Rights Reserved.