Overview | File | Class | Tree | Index | Help
| The Gravey 2.0 Framework and AIM RIA
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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:

- konstructor()

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()

Version: 2.0
Author: Bruce Wallace (PolyGlotInc.com)
See:

- konstructor()

Method Detail

### canonical

    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

### getAltText

    String getAltText( enabled )

return the alternate text given the current state of this view

### isEnabled

    boolean isEnabled()

Return whether this button should be enabled. If no enable model was defined then we are always enabled.

### konstructor

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

Parameters:

`desc` - tooltip description for this button

`evtHandlerName` - name of event handler function

`optEnableModel` - optional "is enabled" data model

`optName` - optional name of this instance

### paintHTML

    void paintHTML()

update/modify attributes of basic existing HTML for THIS view

Overview | File | Class | Tree | Index | Help
| The Gravey 2.0 Framework and AIM RIA
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Documentation generated by JSDoc on Sun Feb 11 13:31:42 2007