net.pleso.framework.client.ui.custom.controls.data
Class BaseActionControl

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 net.pleso.framework.client.ui.custom.controls.data.BaseActionControl
All Implemented Interfaces:
com.google.gwt.user.client.EventListener, HideWindowListener, IBindableDataControl
Direct Known Subclasses:
ActionButtonControl, ActionSliderControl

public abstract class BaseActionControl
extends com.google.gwt.user.client.ui.Composite
implements IBindableDataControl, HideWindowListener


Constructor Summary
BaseActionControl(IWindow parentWindow, IActionProvider actionProvider, IUpdateControlListener updateControlListener)
          Constructs abstract BaseActionControl with specified paremeters.
 
Method Summary
 void bind(IDataRow row, IDataColumn column)
          Binds row and column to action control.
 boolean isAuth()
          Checks authorization rights on wrapped IActionProvider
 void onHideWindow(IWindow sender)
          Fired when the window has been hidden.
 void readData()
          Ask control to read data from binded row and column and show it to user.
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getElement
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
getParent, isAttached, onBrowserEvent, removeFromParent
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleName, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleName, getTitle, isVisible, isVisible, removeStyleName, setHeight, setPixelSize, setSize, setStyleName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BaseActionControl

public BaseActionControl(IWindow parentWindow,
                         IActionProvider actionProvider,
                         IUpdateControlListener updateControlListener)
Constructs abstract BaseActionControl with specified paremeters.

Parameters:
parentWindow - control's parent IWindow
actionProvider - wrapped IActionProvider
updateControlListener - listener of update event
Method Detail

bind

public void bind(IDataRow row,
                 IDataColumn column)
Binds row and column to action control.

Parameters:
row - the IDataRow to be binded
column - the IDataColumn to be binded

readData

public void readData()
Description copied from interface: IBindableDataControl
Ask control to read data from binded row and column and show it to user.

Specified by:
readData in interface IBindableDataControl

isAuth

public boolean isAuth()
Checks authorization rights on wrapped IActionProvider

Returns:
true if user is authorized to perform action on wrapped IActionProvider

onHideWindow

public void onHideWindow(IWindow sender)
Description copied from interface: HideWindowListener
Fired when the window has been hidden.

Specified by:
onHideWindow in interface HideWindowListener
Parameters:
sender - the IWindow has been hidden


Copyright © 2006-2007 pleso.net crew All Rights Reserved.