Solstice::Button - A model to hold the data for a Solstice button.


Solstice documentation  | view source Contained in the Solstice distribution.

Index


NAME

Top

Solstice::Button - A model to hold the data for a Solstice button.

SYNOPSIS

Top

  use Solstice::ButtonService;
  use Solstice::Button;

  my $button = $button_service->makeButton(...);

  #The public methods in Button are for converting the Button data into an HTML 
  string...
  my $html = $button->getButton();
  $html = $button->getTextLink();
  $html = $button->getImageLink();
  $html = $button->getImageTextLink();
  $html = $button->getDropDown();
  $html = $button->getPseudoButton();

DESCRIPTION

Top

The Button object is designed to be a flexible way of allowing a user to engage with the solstice framework, without the programmer needing to make sure that what they do is compatable with state processing. It was originally designed to make buttons, hence the name, but quickly grew into a tool to manage any sort of user submission to the system.

Superclass

Solstice::View

Export

No symbols exported.

Methods

new()

Constructor, sets the default button template.

getHTML()

Legacy method, use getButton() instead.

getButton()

Returns HTML for an image link.

Return HTML for a combination image/text link.

getPseudoButton()

Returns HTML for a "clickable" block element.

getDropDown()

Returns HTML for a dropdown that will submit on select.

getNoscriptButton()
getNoscriptImage()
setIsIllegal()

Used by Session code - if this button is used in an expired session this is called in order to render it null and void to any controller code that might run

addAttribute(key, value)

Takes a key, value and store it into the buttons attribute hash

removeAttribute(key)

Deletes the value by the specified key

Private Methods

_generateLabel()
_generateTitle()
_generateScriptLabel()
_generateHandler()
_generateTooltip()
_generateInlineScript()
_getAccessorDefinition()

Modules Used

Solstice::Model (Solstice::Model), StringLibrary (StringLibrary).

AUTHOR

Top

Catalyst Group, <catalyst@u.washington.edu>

VERSION

Top

$Revision: 3370 $

COPYRIGHT

Top


Solstice documentation  | view source Contained in the Solstice distribution.