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  String buildJavaScriptObject(ListControl list, Object value)
           
 String getConstructorArguments(ListControl list)
          The arguments passed to the constructor.
 String getJavaScriptClass()
          Defines the class/constructor function used to instantiate the javascript list object.
 String getJavaScriptObject(ListControl list, Integer index)
           
 boolean isBorder()
           
 String onDblClick(ListControl list, Integer index)
          Render the double click event
 String onRightClick(ListControl list, Integer index)
          Show the context menu
 String onSelect(ListControl list, Integer index)
          Sets the selected id in the js object
 void setBorder(boolean border)
           
 void setJavaScriptClass(String javaScriptClass)
           
 String toViewId(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 String onSelect(ListControl list,
                       Integer index)
Sets the selected id in the js object

Overrides:
onSelect in class ListControlRenderer
Returns:

onRightClick

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

Overrides:
onRightClick in class ListControlRenderer
Returns:

onDblClick

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

Overrides:
onDblClick in class ListControlRenderer
Returns:

getJavaScriptObject

public String getJavaScriptObject(ListControl list,
                                  Integer index)

buildJavaScriptObject

protected String buildJavaScriptObject(ListControl list,
                                       Object value)

toViewId

public String toViewId(String id)

isBorder

public boolean isBorder()

setBorder

public void setBorder(boolean border)

getJavaScriptClass

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


setJavaScriptClass

public void setJavaScriptClass(String javaScriptClass)

getConstructorArguments

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



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