com.webobjects.directtoweb
Class DefaultHeader
java.lang.Object
|
+--com.webobjects.appserver.WOElement
|
+--com.webobjects.appserver.WOComponent
|
+--com.webobjects.directtoweb.DefaultHeader
- All Implemented Interfaces:
- Cloneable, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions, NSValidation, Serializable, WOActionResults
- Direct Known Subclasses:
- BASDefaultHeader, BASSideHeader, WOLHeader
- public class DefaultHeader
- extends WOComponent
The DefaultHeader
class defines the behavior of the menu header
in a Direct to Web application.
The source code for this class is copied into the MenuHeader.java file
in the project of the application.
- See Also:
- Serialized Form
Methods inherited from class com.webobjects.appserver.WOComponent |
appendToResponse, application, awake, baseURL, bindingKeys, canAccessFieldsDirectly, canGetValueForBinding, canSetValueForBinding, clone, context, debugString, descriptionForResponse, ensureAwakeInContext, frameworkName, generateResponse, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hasBinding, hasSession, invokeAction, isCachingEnabled, isEventLoggingEnabled, isStateless, logString, name, pageWithName, parent, path, performParentAction, pullValuesFromParent, pushValuesToParent, reset, session, set_componentUnroll, set_unroll, setCachingEnabled, setValueForBinding, sleep, synchronizesVariablesWithBindings, takeValueForKey, takeValueForKeyPath, takeValuesFromRequest, template, templateWithHTMLString, templateWithName, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, validationFailedWithException, valueForBinding, valueForKey, valueForKeyPath |
entityNameInList
public String entityNameInList
- Is used as a temporary variable by the Entities WOPopupButton.
DefaultHeader
public DefaultHeader(WOContext aContext)
- Constructs a DefaultHeader with the specified context.
- Parameters:
aContext
- - the WOContext.
findEntityAction
public WOComponent findEntityAction()
- Is invoked when the user clicks New in the menu bar.
Creates an instance of the manipulated entity and
displays an edit page for it.
- Returns:
- an edit page for the new instance of the manipulated entity.
- See Also:
manipulatedEntityName()
homeAction
public WOComponent homeAction()
- Is invoked when the user clicks Home in the menu bar.
Displays the startup task page.
- Returns:
- the startup task page.
isWebAssistantEnabled
public boolean isWebAssistantEnabled()
- Returns whether the Web Assistant is enabled.
By default, it is enabled.
- Returns:
- true if the Assistant is enabled; false otherwise.
logout
public WOComponent logout()
- Is invoked when the user clicks Logout in the menu bar.
Terminates the current session and returns the home page
(Main WOComponent) of the application.
- Returns:
- the home page.
- See Also:
D2W.homeHrefInContext(com.webobjects.appserver.WOContext)
manipulatedEntityName
public String manipulatedEntityName()
- Returns the entity name that the user chooses in the Entities pop-up list
in the menu bar.
- Returns:
- the entity name chosen in the Entities pop-up list.
newObjectAction
public WOComponent newObjectAction()
- Is invoked when the user clicks Search in the menu bar.
Creates and displays a query page for the selected entity.
- Returns:
- the query page for the selected entity.
- See Also:
manipulatedEntityName()
setManipulatedEntityName
public void setManipulatedEntityName(String newValue)
- Sets the entity name that the user chooses in the pop-up list
in the menu bar.
- Parameters:
newValue
- - the entity name chosen in the pop-up list.
showWebAssistant
public WOComponent showWebAssistant()
- Is invoked when the user clicks Customize in the menu bar.
Displays the Web Assistant in the browser of the user.
- Returns:
- the WOComponent with the Web Assistant.
visibleEntityNames
public NSArray visibleEntityNames()
- Returns an NSArray containing the names of the visible entities
in the session WOSession.
You can hide entities using the Entities tab in the Web Assistant.
- Returns:
- an NSArrya of the names of the visible entities in the session.
Copyright © 2003 Apple Computer, Inc.