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
|
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
|
MVCButtonController
MVCButtonController()
Version: 2.0
Author: Bruce Wallace (PolyGlotInc.com)
See:
canonical
void canonical( enableFlag )
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
Documentation generated by
JSDoc on Thu Jan 6 12:46:39 2011