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
|
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
|
ButtonController
ButtonController()
See:Author: Bruce Wallace (PolyGlotInc.com)
Version: 1.0
buildHTMLstr
String buildHTMLstr()
return an HTML string of the basic structure for this view.
As a side effect, build/update subview list for this view.
As a side effect, invoke this method on each nested subview.
Returns:
HTML (suitable for assigning to innerHTML)
canonical
void canonical( enableFlag )
put the HTML in canonical form
given the specified enable flag and this controller's state
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> imgFN, <String> desc, <String> evtHandlerName, <BoolModel> optEnableModel, <String> optName )
Parameters:
imgFN - filename of the (enabled) button image
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 Fri Mar 17 06:40:21 2006