The Gravy Framework

Class ButtonController

Object
   |
   +--OObject
         |
         +--View
               |
               +--Controller
                     |
                     +--ButtonController
Direct Known Subclasses:
CmdButtonController, EditButtonController

class ButtonController
extends Controller


This class is a Controller that

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

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

Version: 1.0


Constructor Summary
ButtonController ()
           
 
Method Summary
 String buildHTMLstr()
           return an HTML string of the basic structure for this view.
 void canonical( enableFlag )
           put the HTML in canonical form given the specified enable flag and this controller's state
 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> imgFN, <String> desc, <String> evtHandlerName, <BoolModel> optEnableModel, <String> optName )
          
 void paintHTML()
           update/modify attributes of basic existing HTML for THIS view
 
Methods inherited from class View
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, block, unblock
 

Constructor Detail

ButtonController

ButtonController()

Method Detail

buildHTMLstr

String buildHTMLstr()

canonical

void canonical( enableFlag )

getAltText

String getAltText( enabled )

isEnabled

boolean isEnabled()

konstructor

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

paintHTML

void paintHTML()

The Gravy Framework

Documentation generated by JSDoc on Fri Mar 17 06:40:21 2006