All Packages Class Hierarchy This Package Previous Next Index
Class com.sgi.sysadm.ui.ResourceBasedNameRenderer
java.lang.Object
|
+----com.sgi.sysadm.ui.GenericItemRenderer
|
+----com.sgi.sysadm.ui.NameRenderer
|
+----com.sgi.sysadm.ui.ResourceBasedNameRenderer
- public class ResourceBasedNameRenderer
- extends NameRenderer
An NameRenderer that renders using resources. This is used in the
infrastructure to create the names of the Items for ItemViews,
ItemTables, and ResultViews, and TreeViews.
-
CATEGORY
- A resource <category name>.categoryName is a
string that specifies the user visible name of the Category.
-
CATEGORY_PLURAL
- A resource <category name>.pluralCategoryName is a
string that specifies the user visible name of the Category in
its plural form.
-
IT_TITLE_FORMAT
- A resource ItemTable.titleFormatString is the string that
is used to create the ItemTable title.
-
ITEM_NAME_FORMAT
- A resource ItemAndCategoryFormat is a string that gives the
Format String to use to combine the Category name and the Item
name.
-
IV_TITLE_FORMAT
- A resource ItemView.titleFormatString is the string that
is used to create the ItemView title.
-
NAME
- A resource <category name>.nameAttr is a
string that specifies which Attribute of the Item whose value
will be used as the name.
-
ResourceBasedNameRenderer(String, ResourceStack, HostContext)
- Create a ResourceBasedNameRenderer for a particular Category.
-
createName(Item, Object)
- Create the name of the Item.
NAME
public static final String NAME
- A resource <category name>.nameAttr is a
string that specifies which Attribute of the Item whose value
will be used as the name.
CATEGORY
public static final String CATEGORY
- A resource <category name>.categoryName is a
string that specifies the user visible name of the Category.
CATEGORY_PLURAL
public static final String CATEGORY_PLURAL
- A resource <category name>.pluralCategoryName is a
string that specifies the user visible name of the Category in
its plural form.
ITEM_NAME_FORMAT
public static final String ITEM_NAME_FORMAT
- A resource ItemAndCategoryFormat is a string that gives the
Format String to use to combine the Category name and the Item
name. {0} will be replaced by the Item name, {1} by the
Category name.
IV_TITLE_FORMAT
public static final String IV_TITLE_FORMAT
- A resource ItemView.titleFormatString is the string that
is used to create the ItemView title. The name of the Item
will be substituted in {0}, the name of the Category in {1},
and the name of the host that the GUI is connected to in {2}
IT_TITLE_FORMAT
public static final String IT_TITLE_FORMAT
- A resource ItemTable.titleFormatString is the string that
is used to create the ItemTable title. The name of the Category
will be substituted in {0} and the name of the host that the
GUI is connected to in {1}
ResourceBasedNameRenderer
public ResourceBasedNameRenderer(String fullCategoryName,
ResourceStack rs,
HostContext hc)
- Create a ResourceBasedNameRenderer for a particular Category.
- Parameters:
- fullCategoryName - The package qualified name of the
Category
- rs - The ResourceStack to use to look up the properties
- hc - The HostContext to use to get Categories.
createName
protected String createName(Item item,
Object context)
- Create the name of the Item.
- Parameters:
- item - The Item
- context - The context to use. See GenericItemRenderer for
a description of the context.
- Returns:
- String corresponding to the name of the Item.
- Overrides:
- createName in class NameRenderer
All Packages Class Hierarchy This Package Previous Next Index