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

## Class EditButtonController

    Object
       |
       +--GrvObject
             |
             +--MVCView
                   |
                   +--MVCController
                         |
                         +--MVCButtonController
                               |
                               +--MVCImgButtonController
                                     |
                                     +--EditButtonController

class EditButtonController
extends MVCImgButtonController

This class is an MVCImgButtonController for "edit" buttons which shouldnt be enabled while app is in "read only" mode.
Version: 2.0
Author: Bruce Wallace (PolyGlotInc.com)
See:

- konstructor()

Defined in rats.js

Constructor Summary
`EditButtonController ()`

Method Summary
`boolean` | `isEnabled()` Return whether this button should be enabled.
`void` | `konstructor( <String> imgFN, <String> desc, evtHandler, enableModel, <String> optName, <boolean> optIsEdit )`

Methods inherited from class MVCImgButtonController
`canonical, buildHTMLstr`

Methods inherited from class MVCButtonController
`getAltText, paintHTML`

Methods inherited from class MVCView
`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

### EditButtonController

    EditButtonController()

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

- konstructor()

Method Detail

### isEnabled

    boolean isEnabled()

Return whether this button should be enabled. If in readonly mode then never enable. If a transaction is selected then enable UNLESS this is the edit button and we are already editing.

### konstructor

    void konstructor( <String> imgFN, <String> desc, evtHandler, enableModel, <String> optName, <boolean> optIsEdit )

Parameters:

`imgFN` - filename of the (enabled) button image

`desc` - tooltip description for this button

`optName` - optional name of this instance

`optIsEdit` - editor flag says dont enable if already editing

`optEnableModel` - optional "is enabled" data model

`evtHandlerName` - name of event handler function

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

Documentation generated by JSDoc on Thu Jan 6 12:46:18 2011