com.ideo.sweetdevria.taglib.tabLayout.model
Class TabContentModel

java.lang.Object
  extended by com.ideo.sweetdevria.taglib.tabLayout.model.TabContentModel

public class TabContentModel
extends java.lang.Object

Model of every tab content of the tab layout Define every property required by the TabLayoutModel

Author:
Julien Maupoux

Constructor Summary
TabContentModel(java.lang.String id, boolean asIframe, java.lang.String url, java.lang.String label, boolean removable, boolean selected, boolean preloaded, boolean enabled, boolean visible, java.lang.String iconClass, java.lang.String tabSize)
          Constructor of dynamic tab content
TabContentModel(TabContentTag tag, TabLayoutModel layoutModel)
          Constructor of tab contents created from the TabContentTag class Should not be used
 
Method Summary
 java.lang.String getIconClass()
           
 java.lang.String getId()
           
 java.lang.String getLabel()
           
 java.lang.String getTabSize()
           
 java.lang.String getUrl()
           
 boolean isAsIframe()
           
 boolean isEnabled()
           
 boolean isFromTag()
           
 boolean isPreloaded()
           
 boolean isRemovable()
           
 boolean isRemoved()
           
 boolean isSelected()
           
 boolean isVisible()
           
 void setAsIframe(boolean asIframe)
           
 void setEnabled(boolean enabled)
           
 void setIconClass(java.lang.String iconClass)
           
 void setId(java.lang.String id)
           
 void setLabel(java.lang.String label)
           
 void setPreloaded(boolean preload)
           
 void setRemovable(boolean removable)
           
 void setRemoved(boolean removed)
           
 void setSelected(boolean selected)
           
 void setTabSize(java.lang.String tabSize)
           
 void setUrl(java.lang.String url)
           
 void setVisible(boolean visible)
           
 java.lang.String toJSONString()
          Format this object as a JSON String.
 void writeUrl(javax.servlet.jsp.PageContext pageContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TabContentModel

public TabContentModel(TabContentTag tag,
                       TabLayoutModel layoutModel)
Constructor of tab contents created from the TabContentTag class Should not be used

Parameters:
tag - the tag containing the informations for the tab content creation
layoutModel - the layout model to add this tab

TabContentModel

public TabContentModel(java.lang.String id,
                       boolean asIframe,
                       java.lang.String url,
                       java.lang.String label,
                       boolean removable,
                       boolean selected,
                       boolean preloaded,
                       boolean enabled,
                       boolean visible,
                       java.lang.String iconClass,
                       java.lang.String tabSize)
Constructor of dynamic tab content

Parameters:
id - the id of the tab
asIframe - a boolean indicating whether the tab content will be loaded into an iframe of through a zone
url - the url of the tab content.
label - the label of the tab content. Do not accept i18n key ! Run ResourcesManagerHelper.getMessage(label, ?) to process the i18n
removable - whether the tab is removable or not
selected - whether the tab is selected or not
preloaded - whether the tab must be preloaded or not
enabled - whether the tab is enabled by default or not
visible - whether the tab is visible by default or not
iconClass - an CSS icon class for the tab
Method Detail

writeUrl

public void writeUrl(javax.servlet.jsp.PageContext pageContext)
              throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

getId

public java.lang.String getId()

setId

public void setId(java.lang.String id)

getUrl

public java.lang.String getUrl()

setUrl

public void setUrl(java.lang.String url)

getLabel

public java.lang.String getLabel()

setLabel

public void setLabel(java.lang.String label)

getTabSize

public java.lang.String getTabSize()

setTabSize

public void setTabSize(java.lang.String tabSize)

isRemovable

public boolean isRemovable()

setRemovable

public void setRemovable(boolean removable)

isSelected

public boolean isSelected()

setSelected

public void setSelected(boolean selected)

isPreloaded

public boolean isPreloaded()

setPreloaded

public void setPreloaded(boolean preload)

isEnabled

public boolean isEnabled()

setEnabled

public void setEnabled(boolean enabled)

isAsIframe

public boolean isAsIframe()

setAsIframe

public void setAsIframe(boolean asIframe)

isVisible

public boolean isVisible()

setVisible

public void setVisible(boolean visible)

getIconClass

public java.lang.String getIconClass()

setIconClass

public void setIconClass(java.lang.String iconClass)

isRemoved

public boolean isRemoved()

setRemoved

public void setRemoved(boolean removed)

isFromTag

public boolean isFromTag()

toJSONString

public java.lang.String toJSONString()
Format this object as a JSON String.

Returns:
the JSON String representing this content model


Copyright © 2010 Ideo Technologies. All Rights Reserved.