com.oktiva.mogno.additional
Class ActionSpan

java.lang.Object
  extended bycom.oktiva.mogno.Component
      extended bycom.oktiva.mogno.Visual
          extended bycom.oktiva.mogno.Container
              extended bycom.oktiva.mogno.html.Span
                  extended bycom.oktiva.mogno.additional.ActionSpan
All Implemented Interfaces:
java.lang.Cloneable

public class ActionSpan
extends Span

ActionSpan - A span associated with an action

A container that holds a span with a evOnClick event. This span will be received and will dispatch an event in Mogno.

The property application and the property params composes the destination URL.

Version:
$Id: ActionSpan.java,v 1.1.1.1 2005/01/05 16:52:50 ruoso Exp $
Author:
Itamar Carvalho <itamar@oktiva.com.br> and others.

Field Summary
 java.lang.String application
          The url of this web application
 java.lang.String evOnClick
          Event dispatched when this span is clicked.
 java.lang.String mode
          Result javascript code: windowdo a "window.location=url" topdo a "window.top.location=url" openerdo a "window.opener.location=url" opendo a "open(url)".
 java.lang.String origin
          The mognoOrigin param, defaults to owner.name.
 java.lang.String params
          Another params (in URL encoded format) to add to the link
 java.lang.String targetName
          The target window for the action of this span "onclick".
 
Fields inherited from class com.oktiva.mogno.html.Span
align, dir, lang, onclick, ondblclick, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup
 
Fields inherited from class com.oktiva.mogno.Container
afterEnd, content
 
Fields inherited from class com.oktiva.mogno.Visual
evOnShow, evOnSyntaxError, gridHeight, gridWeightX, gridWeightY, gridWidth, id, lastError, left, parent, problematic, style, styleClass, title, top
 
Fields inherited from class com.oktiva.mogno.Component
bag, componentFiler, componentFilerParams, designing, eventQueue, evOnCreate, name, owned, ownedClasses, owner, tag, xmlFileName
 
Constructor Summary
ActionSpan()
           
 
Method Summary
protected  java.lang.String buildOnclickCode(java.lang.String url)
           
 java.lang.String getApplicationUrl()
           
 java.lang.String getEvOnClick()
           
 java.lang.String getMode()
           
 java.lang.String getOrigin()
           
 java.lang.String getParams()
           
 java.lang.String getTargetName()
           
 void receiveRequest(javax.servlet.http.HttpServletRequest request)
          Receive the request and rebuild the properties using the data that the user has filled in.
 void setApplicationUrl(java.lang.String applicationUrl)
           
 void setEvOnClick(java.lang.String evOnClick)
           
 void setMode(java.lang.String mode)
           
 void setOrigin(java.lang.String origin)
           
 void setParams(java.lang.String params)
           
 void setTargetName(java.lang.String targetName)
           
 java.lang.String startContainer()
          Starts container's tag.
 
Methods inherited from class com.oktiva.mogno.html.Span
getAlign, getDir, getLang, getOnclick, getOndblclick, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, htmlAttributes, setAlign, setDir, setLang, setOnclick, setOndblclick, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup
 
Methods inherited from class com.oktiva.mogno.Container
addChildsVector, betweenColumns, betweenRows, endColumn, endContainer, endRow, getChildsVector, getContent, getFullComponentsVector, getOrderedChildNames, getOrderedChildsVector, nonAttributeGetters, orderChildsVector, selectParentComponent, setContent, show, startColumn, startRow
 
Methods inherited from class com.oktiva.mogno.Visual
buildHtmlAttributes, cellhalignHtmlAttributes, cellvalignHtmlAttributes, checkSyntax, coreHtmlAttributes, descendentOf, eventsHtmlAttributes, getEvOnShow, getEvOnSyntaxError, getGridHeight, getGridWeightX, getGridWeightY, getGridWidth, getId, getLastError, getLeft, getParent, getStyle, getStyleClass, getTitle, getTop, i18nHtmlAttributes, localizableAttributes, setEvOnShow, setEvOnSyntaxError, setGridHeight, setGridWeightX, setGridWeightY, setGridWidth, setId, setLastError, setLeft, setParent, setStyle, setStyleClass, setTitle, setTop, showHtmlAttributes
 
Methods inherited from class com.oktiva.mogno.Component
attribsHash, createOwnedComponents, dispatch, dispatchAll, dispatchFunction, eventParamTypes, eventParamValues, freeChild, getApplication, getAttrsTypes, getBag, getChild, getChildClass, getClone, getEvOnCreate, getFromBag, getName, getOwner, initialize, initialize, initialize, initialize, isDesigning, listChilds, putInBag, queue, registerChild, removeFromBag, serializedBag, setBag, setComponentFiler, setComponentFilerParams, setDesigning, setEvOnCreate, setName, setOwner, setProperties, store, unserializeBag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

application

public java.lang.String application
The url of this web application


params

public java.lang.String params
Another params (in URL encoded format) to add to the link


origin

public java.lang.String origin
The mognoOrigin param, defaults to owner.name.


evOnClick

public java.lang.String evOnClick
Event dispatched when this span is clicked.


mode

public java.lang.String mode
Result javascript code:
window
do a "window.location=url"
top
do a "window.top.location=url"
opener
do a "window.opener.location=url"
open
do a "open(url)".
reload
do a "open(url)".
If there is a param "targetName", uses it as the window target name.


targetName

public java.lang.String targetName
The target window for the action of this span "onclick". Default is the current window

Constructor Detail

ActionSpan

public ActionSpan()
Method Detail

getApplicationUrl

public java.lang.String getApplicationUrl()

setApplicationUrl

public void setApplicationUrl(java.lang.String applicationUrl)

getParams

public java.lang.String getParams()

setParams

public void setParams(java.lang.String params)

getOrigin

public java.lang.String getOrigin()

setOrigin

public void setOrigin(java.lang.String origin)

getEvOnClick

public java.lang.String getEvOnClick()

setEvOnClick

public void setEvOnClick(java.lang.String evOnClick)

getMode

public java.lang.String getMode()

setMode

public void setMode(java.lang.String mode)

getTargetName

public java.lang.String getTargetName()

setTargetName

public void setTargetName(java.lang.String targetName)

receiveRequest

public void receiveRequest(javax.servlet.http.HttpServletRequest request)
Description copied from class: Visual
Receive the request and rebuild the properties using the data that the user has filled in. This is a stub method

Overrides:
receiveRequest in class Visual
Parameters:
request - HttpServletRequest

startContainer

public java.lang.String startContainer()
Description copied from class: Container
Starts container's tag.
If the tag attribute is not null, assumes the default behavior:
< + tag + htmlAttributes + >

Overrides:
startContainer in class Container
Returns:
String

buildOnclickCode

protected java.lang.String buildOnclickCode(java.lang.String url)