org.vectomatic.client.rep.view
Class PaletteWidget

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by org.vectomatic.client.rep.view.PaletteWidget
All Implemented Interfaces:
com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.ChangeListener, com.google.gwt.user.client.ui.SourcesChangeEvents, IPaletteListener

public class PaletteWidget
extends com.google.gwt.user.client.ui.Widget
implements IPaletteListener, com.google.gwt.user.client.ui.ChangeListener, com.google.gwt.user.client.ui.SourcesChangeEvents

Widget class to represent a palette


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
 
Method Summary
 void addChangeListener(com.google.gwt.user.client.ui.ChangeListener listener)
           
static int getAbsoluteLeft(com.google.gwt.user.client.Element elem)
           
static int getAbsoluteTop(com.google.gwt.user.client.Element elem)
           
 Palette getPalette()
           
 Color getSelectedColor()
           
 int getSelectedColorIndex()
           
 void onBrowserEvent(com.google.gwt.user.client.Event event)
           
 void onChange(com.google.gwt.user.client.ui.Widget sender)
           
 void paletteHasChanged(Palette palette)
           
 void removeChangeListener(com.google.gwt.user.client.ui.ChangeListener listener)
           
 void selectColor(int index)
           
 void setPalette(Palette palette)
           
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addDomHandler, addHandler, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onDetach, 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, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getPalette

public Palette getPalette()

paletteHasChanged

public void paletteHasChanged(Palette palette)
Specified by:
paletteHasChanged in interface IPaletteListener

setPalette

public void setPalette(Palette palette)

onBrowserEvent

public void onBrowserEvent(com.google.gwt.user.client.Event event)
Specified by:
onBrowserEvent in interface com.google.gwt.user.client.EventListener
Overrides:
onBrowserEvent in class com.google.gwt.user.client.ui.Widget

selectColor

public void selectColor(int index)

getSelectedColorIndex

public int getSelectedColorIndex()

getSelectedColor

public Color getSelectedColor()

getAbsoluteTop

public static int getAbsoluteTop(com.google.gwt.user.client.Element elem)

getAbsoluteLeft

public static int getAbsoluteLeft(com.google.gwt.user.client.Element elem)

onChange

public void onChange(com.google.gwt.user.client.ui.Widget sender)
Specified by:
onChange in interface com.google.gwt.user.client.ui.ChangeListener

addChangeListener

public void addChangeListener(com.google.gwt.user.client.ui.ChangeListener listener)
Specified by:
addChangeListener in interface com.google.gwt.user.client.ui.SourcesChangeEvents

removeChangeListener

public void removeChangeListener(com.google.gwt.user.client.ui.ChangeListener listener)
Specified by:
removeChangeListener in interface com.google.gwt.user.client.ui.SourcesChangeEvents


Copyright © 2010. All Rights Reserved.