Squeak Class Documentation category index | class index  
 
StringButtonMorph
  category: Morphic-Widgets
  superclass: StringMorph
  subclasses: TabMorph

No comment. Sorry.

instance methods
  accessing
  actWhen:
actionSelector
actionSelector:
arguments
arguments:
target
target:

  copying
  updateReferencesUsing:
veryDeepFixupWith:
veryDeepInner:

  events
  doButtonAction
handlesMouseDown:
handlesMouseStillDown:
mouseDown:
mouseMove:
mouseStillDown:
mouseUp:

  initialization
  adaptToWorld:
initialize

  menu
  addCustomMenuItems:hand:
setActWhen
setActionSelector
setArguments
setLabel
setTarget:

class methods
  as yet unclassified
  defaultNameStemForInstances

instance methods
  accessing top  
 

actWhen:

Set the condition under which to invoke my action to one of: #buttonDown, #buttonUp, and #whilePressed.


 

actionSelector


 

actionSelector:


 

arguments


 

arguments:


 

target


 

target:


  copying top  
 

updateReferencesUsing:

If the arguments array points at a morph we are copying, then point at the new copy. And also copies the array, which is important!


 

veryDeepFixupWith:

If target and arguments fields were weakly copied, fix them here. If they were in the tree being copied, fix them up, otherwise point to the originals!!


 

veryDeepInner:

Copy all of my instance variables. Some need to be not copied at all, but shared. Warning!! Every instance variable defined in this class must be handled. We must also implement veryDeepFixupWith:. See DeepCopier class comment.


  events top  
 

doButtonAction

Perform the action of this button. Subclasses may override this method. The default behavior is to send the button's actionSelector to its target object with its arguments.


 

handlesMouseDown:

Do I want to receive mouseDown events (mouseDown:, mouseMove:, mouseUp:)?


 

handlesMouseStillDown:

Return true if the receiver wants to get repeated #mouseStillDown: messages between #mouseDown: and #mouseUp


 

mouseDown:

If the shift key is pressed, make this string the keyboard input focus.


 

mouseMove:

Handle a mouse move event. The default response is to let my eventHandler, if any, handle it.


 

mouseStillDown:

Handle a mouse move event. The default response is to let my eventHandler, if any, handle it.


 

mouseUp:

Handle a mouse up event. The default response is to let my eventHandler, if any, handle it.


  initialization top  
 

adaptToWorld:

The receiver finds itself operating in a possibly-different new world. If any of the receiver's parts are world-dependent (such as a target of a SimpleButtonMorph, etc.), then have them adapt accordingly


 

initialize


  menu top  
 

addCustomMenuItems:hand:

Add morph-specific items to the given menu which was invoked by the given hand. This method provides is invoked both from the halo-menu and from the control-menu regimes.


 

setActWhen


 

setActionSelector


 

setArguments


 

setLabel


 

setTarget:


class methods
  as yet unclassified top  
 

defaultNameStemForInstances

Answer a basis for external names for default instances of the receiver. For classees, the class-name itself is a good one.