info.magnolia.module.admininterface.lists
Class AdminListControlRenderer

java.lang.Object
  extended by info.magnolia.cms.gui.controlx.impl.TemplatedRenderer
      extended by info.magnolia.cms.gui.controlx.list.ListControlRenderer
          extended by info.magnolia.module.admininterface.lists.AdminListControlRenderer
All Implemented Interfaces:
Renderer

public class AdminListControlRenderer
extends ListControlRenderer

Show the context menu if existing.

Version:
$Revision: 41137 $ ($Author: gjoseph $)
Author:
Philipp Bracher

Field Summary
static org.slf4j.Logger log
           
 
Constructor Summary
AdminListControlRenderer()
          Set the admin interface list template
 
Method Summary
protected  java.lang.String buildJavaScriptObject(ListControl list, java.lang.Object value)
           
 java.lang.String getConstructorArguments(ListControl list)
          The arguments passed to the constructor.
 java.lang.String getJavaScriptClass()
          Defines the class/constructor function used to instantiate the javascript list object.
 java.lang.String getJavaScriptObject(ListControl list, java.lang.Integer index)
           
 boolean isBorder()
           
 java.lang.String onDblClick(ListControl list, java.lang.Integer index)
          Render the double click event
 java.lang.String onRightClick(ListControl list, java.lang.Integer index)
          Show the context menu
 java.lang.String onSelect(ListControl list, java.lang.Integer index)
          Sets the selected id in the js object
 void setBorder(boolean border)
           
 void setJavaScriptClass(java.lang.String javaScriptClass)
           
 java.lang.String toViewId(java.lang.String id)
           
 
Methods inherited from class info.magnolia.cms.gui.controlx.list.ListControlRenderer
getGroupLinkCSSClass, getSortLinkCSSClass, nextGroupByOrder, nextSortByOrder, onClick
 
Methods inherited from class info.magnolia.cms.gui.controlx.impl.TemplatedRenderer
getMessage, getMessages, getTemplateName, getTemplateName, render, setTemplateName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

public static org.slf4j.Logger log
Constructor Detail

AdminListControlRenderer

public AdminListControlRenderer()
Set the admin interface list template

Method Detail

onSelect

public java.lang.String onSelect(ListControl list,
                                 java.lang.Integer index)
Sets the selected id in the js object

Overrides:
onSelect in class ListControlRenderer
Returns:

onRightClick

public java.lang.String onRightClick(ListControl list,
                                     java.lang.Integer index)
Show the context menu

Overrides:
onRightClick in class ListControlRenderer
Returns:

onDblClick

public java.lang.String onDblClick(ListControl list,
                                   java.lang.Integer index)
Description copied from class: ListControlRenderer
Render the double click event

Overrides:
onDblClick in class ListControlRenderer
Returns:

getJavaScriptObject

public java.lang.String getJavaScriptObject(ListControl list,
                                            java.lang.Integer index)

buildJavaScriptObject

protected java.lang.String buildJavaScriptObject(ListControl list,
                                                 java.lang.Object value)

toViewId

public java.lang.String toViewId(java.lang.String id)

isBorder

public boolean isBorder()

setBorder

public void setBorder(boolean border)

getJavaScriptClass

public java.lang.String getJavaScriptClass()
Defines the class/constructor function used to instantiate the javascript list object.


setJavaScriptClass

public void setJavaScriptClass(java.lang.String javaScriptClass)

getConstructorArguments

public java.lang.String getConstructorArguments(ListControl list)
The arguments passed to the constructor.



Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.