Overview | Package | Class | Tree | Deprecated | Index | Help
| © 2004 BEA Systems, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.bea.netuix.application.definition
Class MenuDefinition

    java.lang.Object
      com.bea.netuix.application.definition.MenuDefinition

All Implemented Interfaces:
  Serializable

public class MenuDefinition
extends Object
implements Serializable

This class represents a persistant menu.

See Also:
  Serialized Form

Constructor Summary
`MenuDefinition(LocalizationResource localizationResource, MarkupDefinitionId markupDefinitionId, String webAppName, String menuFile, boolean deleted)` Constructs a new `MenuDefinition` object.

Method Summary
`LocalizationIntersectionId` | `getLocalizationIntersectionId()` Returns the `LocalizationIntersectionId` for this menu.
`LocalizationResource` | `getLocalizationResource()` Returns the `LocalizationResource` associated with this menu based on the locale of the request used for retrieving the menu.
`MarkupDefinitionId` | `getMarkupDefinitionId()` Returns the `MarkupDefinitionId` for this MarkupDefinition associated with this menu.
`MenuDefinitionId` | `getMenuDefinitionId()` Returns the `MenuDefinitionId` for this menu.
`String` | `getMenuFile()` Returns the path to the menu file.
`String` | `getWebAppName()` Returns the web application name this menu is scoped to.
`boolean` | `isDeleted()` Returns whether this menu is deleted.
`void` | `setDeleted(boolean deleted)` Sets whether this menu is deleted
`void` | `setLocalizationResource(LocalizationResource localizationResource)` Sets the `LocalizationResource` for this menu.
`void` | `setMarkupDefinitionId(MarkupDefinitionId markupDefinitionId)` Sets the `MarkupDefinition` for this menu.
`void` | `setMenuFile(String menuFile)` Sets the menu file path
`void` | `setWebAppName(String webAppName)` Scopes this menu to given web applcation.
`String` | `toString()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### MenuDefinition

    public MenuDefinition(LocalizationResource localizationResource,
                          MarkupDefinitionId markupDefinitionId,
                          String webAppName,
                          String menuFile,
                          boolean deleted)

  Constructs a new `MenuDefinition` object.

Method Detail

### getLocalizationIntersectionId

    public LocalizationIntersectionId getLocalizationIntersectionId()

  Returns the `LocalizationIntersectionId` for this menu. Returns `NULL` if no LocalizationResource is associated with this menu. A `LocalizationIntersectionId` is a reference to all localized versions of title and description for an entity.

  Returns:
    `LocalizationIntersectionId` for this menu

### getLocalizationResource

    public LocalizationResource getLocalizationResource()

  Returns the `LocalizationResource` associated with this menu based on the locale of the request used for retrieving the menu.

  Returns:
    `LocalizationResource` associated with this menu

### getMarkupDefinitionId

    public MarkupDefinitionId getMarkupDefinitionId()

  Returns the `MarkupDefinitionId` for this MarkupDefinition associated with this menu.

  Returns:
    `MarkupDefinitionId`
  See Also:
    `MarkupDefinition`

### getMenuDefinitionId

    public MenuDefinitionId getMenuDefinitionId()

  Returns the `MenuDefinitionId` for this menu. Returns `NULL` if this menu has not been retrieved using the persistence API.

  Returns:
    `MenuDefinitionId`

### getMenuFile

    public String getMenuFile()

  Returns the path to the menu file. This path is relative to the web application context.

  Returns:
    menu file path

### getWebAppName

    public String getWebAppName()

  Returns the web application name this menu is scoped to.

  Returns:
    web application name

### isDeleted

    public boolean isDeleted()

  Returns whether this menu is deleted.

  Returns:
    true if this menu is deleted

### setDeleted

    public void setDeleted(boolean deleted)

  Sets whether this menu is deleted

  Parameters:
    `deleted` -

### setLocalizationResource

    public void setLocalizationResource(LocalizationResource localizationResource)

  Sets the `LocalizationResource` for this menu.

  Parameters:
    `localizationResource` -

### setMarkupDefinitionId

    public void setMarkupDefinitionId(MarkupDefinitionId markupDefinitionId)

  Sets the `MarkupDefinition` for this menu.

  Parameters:
    `markupDefinitionId` -

### setMenuFile

    public void setMenuFile(String menuFile)

  Sets the menu file path

  Parameters:
    `menuFile` -

### setWebAppName

    public void setWebAppName(String webAppName)

  Scopes this menu to given web applcation.

  Parameters:
    `webAppName` -

### toString

    public String toString()

Overview | Package | Class | Tree | Deprecated | Index | Help
| © 2004 BEA Systems, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004 BEA Systems, Inc. All Rights Reserved