com.arsdigita.cms.ui
Class ContentSectionContainer.AdminURLTableCellRenderer

java.lang.Object
  extended bycom.arsdigita.cms.ui.ContentSectionContainer.URLTableCellRenderer
      extended bycom.arsdigita.cms.ui.ContentSectionContainer.AdminURLTableCellRenderer
All Implemented Interfaces:
com.arsdigita.bebop.table.TableCellRenderer
Enclosing class:
ContentSectionContainer

public static class ContentSectionContainer.AdminURLTableCellRenderer
extends ContentSectionContainer.URLTableCellRenderer

Generates the correct URL to the admin pages for a content section.

Author:
Michael Bryzek

Field Summary
 
Fields inherited from interface com.arsdigita.bebop.table.TableCellRenderer
versionId
 
Constructor Summary
ContentSectionContainer.AdminURLTableCellRenderer()
           
 
Method Summary
protected  String generateURL(String prefix)
          Generates the admin url for the specified prefix.
 com.arsdigita.bebop.Component getComponent(com.arsdigita.bebop.Table table, com.arsdigita.bebop.PageState state, Object value, boolean isSelected, Object key, int row, int column)
          The object passed in is the current content section
 
Methods inherited from class com.arsdigita.cms.ui.ContentSectionContainer.URLTableCellRenderer
getBaseURL, trimSlashes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentSectionContainer.AdminURLTableCellRenderer

public ContentSectionContainer.AdminURLTableCellRenderer()
Method Detail

getComponent

public com.arsdigita.bebop.Component getComponent(com.arsdigita.bebop.Table table,
                                                  com.arsdigita.bebop.PageState state,
                                                  Object value,
                                                  boolean isSelected,
                                                  Object key,
                                                  int row,
                                                  int column)
The object passed in is the current content section

Specified by:
getComponent in interface com.arsdigita.bebop.table.TableCellRenderer
Overrides:
getComponent in class ContentSectionContainer.URLTableCellRenderer

generateURL

protected String generateURL(String prefix)
Generates the admin url for the specified prefix. Always returns something that does not start with a forward slash.

Overrides:
generateURL in class ContentSectionContainer.URLTableCellRenderer
Parameters:
prefix - The prefix of the URL


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 19 2004:2352 UTC