com.oktiva.mogno.additional
Class SimpleList

java.lang.Object
  extended bycom.oktiva.mogno.Component
      extended bycom.oktiva.mogno.Visual
          extended bycom.oktiva.mogno.additional.SimpleList
All Implemented Interfaces:
java.lang.Cloneable

public class SimpleList
extends Visual

Component to create a simple indented list.
This components outputs an indented list.

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

Field Summary
 boolean active
           
 java.lang.String applicationUrl
           
 java.lang.String evOnClick
           
 java.lang.StringBuffer list
          A string with the list of items.
 java.lang.String origin
          The mognoOrigin param, defaults to owner.name.
 java.lang.String params
          Other params (in URL encoded format) to add to the link
 
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
SimpleList()
           
 
Method Summary
 void add(java.lang.String item, int level)
           
 void add(java.lang.String item, int level, java.lang.String id)
           
 java.lang.String getApplicationUrl()
          Getter for property applicationUrl.
 java.lang.String getEvOnClick()
          Getter for property evOnClick.
 java.lang.String getList()
          Deprecated.  
 java.lang.String getOrigin()
           
 java.lang.String getParams()
           
 java.lang.String getSelectedItem()
          Getter for property selectedItem.
 boolean isActive()
          Getter for property active.
 void receiveRequest(javax.servlet.http.HttpServletRequest request)
          Receive the request and rebuild the properties using the data that the user has filled in.
 void reset()
           
 void setActive(boolean active)
          Setter for property active.
 void setApplicationUrl(java.lang.String applicationUrl)
          Setter for property applicationUrl.
 void setEvOnClick(java.lang.String evOnClick)
          Setter for property evOnClick.
 void setList(java.lang.String list)
          Deprecated.  
 void setOrigin(java.lang.String origin)
           
 void setParams(java.lang.String params)
           
 void setSelectedItem(java.lang.String selectedItem)
          Setter for property selectedItem.
 java.lang.String show()
          Implements just the dispatching of the onShow event
 
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, htmlAttributes, 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, getOrderedChildNames, getOwner, initialize, initialize, initialize, initialize, isDesigning, listChilds, nonAttributeGetters, 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

evOnClick

public java.lang.String evOnClick

active

public boolean active

applicationUrl

public java.lang.String applicationUrl

params

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


list

public java.lang.StringBuffer list
A string with the list of items. Each item in one line. The indentation is made by the number of white spaces before the first character.


origin

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

Constructor Detail

SimpleList

public SimpleList()
Method Detail

getParams

public java.lang.String getParams()

setParams

public void setParams(java.lang.String params)

getList

public java.lang.String getList()
Deprecated.  


setList

public void setList(java.lang.String list)
Deprecated.  


getOrigin

public java.lang.String getOrigin()

setOrigin

public void setOrigin(java.lang.String origin)

reset

public void reset()

add

public void add(java.lang.String item,
                int level)

add

public void add(java.lang.String item,
                int level,
                java.lang.String id)

show

public java.lang.String show()
                      throws java.lang.Exception
Description copied from class: Visual
Implements just the dispatching of the onShow event

Overrides:
show in class Visual
Throws:
java.lang.Exception

isActive

public boolean isActive()
Getter for property active.

Returns:
Value of property active.

setActive

public void setActive(boolean active)
Setter for property active.

Parameters:
active - New value of property active.

getApplicationUrl

public java.lang.String getApplicationUrl()
Getter for property applicationUrl.

Returns:
Value of property applicationUrl.

setApplicationUrl

public void setApplicationUrl(java.lang.String applicationUrl)
Setter for property applicationUrl.

Parameters:
applicationUrl - New value of property applicationUrl.

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

getSelectedItem

public java.lang.String getSelectedItem()
Getter for property selectedItem.

Returns:
Value of property selectedItem.

setSelectedItem

public void setSelectedItem(java.lang.String selectedItem)
Setter for property selectedItem.

Parameters:
selectedItem - New value of property selectedItem.

getEvOnClick

public java.lang.String getEvOnClick()
Getter for property evOnClick.

Returns:
Value of property evOnClick.

setEvOnClick

public void setEvOnClick(java.lang.String evOnClick)
Setter for property evOnClick.

Parameters:
evOnClick - New value of property evOnClick.