The Gravey Framework and RATS RIA

Class MVCButtonController

Object
   |
   +--GrvObject
         |
         +--MVCView
               |
               +--MVCController
                     |
                     +--MVCButtonController
Direct Known Subclasses:
MVCFormButtonController, MVCTxtButtonController, MVCImgButtonController

class MVCButtonController
extends MVCController


This class is a Controller that

  (1) watches a MVCBoolModel from which the "enable" state can
      be deduced (actually only uses MVCBoolModel.isTrue()),
  (2) manages a button view using the enable state,
  (3) defines a "pushed" event.

Version: 2.0

Author: Bruce Wallace (PolyGlotInc.com)
See:Defined in grvMVC.js


Constructor Summary
MVCButtonController ()
           
 
Method Summary
 void canonical( enableFlag )
           put the HTML in canonical form given the specified enable flag and this controller's state

ABSTRACT: sub classes of MVCButtonController should override this

 String getAltText( enabled )
           return the alternate text given the current state of this view
 boolean isEnabled()
           Return whether this button should be enabled.
 void konstructor( <String> desc, <String> evtHandlerName, <MVCBoolModel> optEnableModel, <String> optName )
          
 void paintHTML()
           update/modify attributes of basic existing HTML for THIS view
 
Methods inherited from class MVCView
buildHTMLstr, mustRebuild, mustRepaint, currentContext, watchModel, setViewID, innerID, getWidgetID, getWidget, getHook, buildHTML, updateContext, contextChanged, disable, enable, setVisible, setSubViewsVisible, isVisible, redraw, draw, rebuildAny, build, buildsubviews, paint, setParentView, clearSubViews, addSubView, getSubView, delSubView, embedView, embedHTML, embedAttr, block, unblock
   
Methods inherited from class GrvObject
souper
 

Constructor Detail

MVCButtonController

MVCButtonController()

Method Detail

canonical

void canonical( enableFlag )

getAltText

String getAltText( enabled )

isEnabled

boolean isEnabled()

konstructor

void konstructor( <String> desc, <String> evtHandlerName, <MVCBoolModel> optEnableModel, <String> optName )

paintHTML

void paintHTML()

The Gravey Framework and RATS RIA

Documentation generated by JSDoc on Sat Dec 8 21:52:02 2007