org.olat.repository
Class PropPupForm

java.lang.Object
  extended by org.olat.core.gui.components.Component
      extended by org.olat.core.gui.components.form.Form
          extended by org.olat.repository.PropPupForm

public class PropPupForm
extends Form

Initial Date: 08.07.2003

Author:
Mike Stock Comment:

Field Summary
 
Fields inherited from class org.olat.core.gui.components.form.Form
CANCEL_IDENTIFICATION, ELEM_BUTTON_COMMAND_ID, EVNT_FORM_CANCELLED, EVNT_VALIDATION_NOK, EVNT_VALIDATION_OK, SUBMIT_IDENTIFICATION
 
Constructor Summary
PropPupForm(java.lang.String name, Translator translator, RepositoryEntry entry)
          The details form is initialized with data collected from entry and typeName.
 
Method Summary
 boolean canCopy()
          Return true when 'canCopy' is selected.
 boolean canDownload()
          Return true when 'canDownload' is selected.
 boolean canLaunch()
          Return true when 'canLaunch' is selected.
 boolean canReference()
          Return true when 'canReference' is selected.
 int getAccess()
          Return selected access key (ACC_OWNERS, ACC_OWNERS_AUTHORS, ACC_USERS, ACC_USERS_GUESTS)
 java.lang.String getAuthor()
           
 java.lang.String getResourceName()
           
 java.lang.String getType()
           
 void init()
          Initialize form data based on repository entry.
 void setEntry(RepositoryEntry newEntry)
          Set entry and re-initialize the form based on data of this entry.
 boolean validate()
           
 
Methods inherited from class org.olat.core.gui.components.form.Form
addFormElement, addSubmitKey, addSubmitKey, addVisibilityDependsOnSelectionRule, getCheckBoxElement, getDateElement, getElementCount, getFormElement, getHTMLRendererSingleton, getIntegerElement, getMultipleSelectionElement, getNameIterator, getPasswordElement, getRadioButtonElement, getSelectedSubmitKey, getSingleSelectionElement, getTextAreaElement, getTextElement, getVisibilityDependsOnSelectionRules, getWikiMarkupTextAreaElement, hasMandatoryFields, hasWikiMarkupFields, isDisplayOnly, isValid, removeCancelButton, removeFormElements, setAllFormElements, setCancelButton, setCancelKey, setDisplayOnly, setSubmitKey, validate
 
Methods inherited from class org.olat.core.gui.components.Component
addListener, debuginfoGetListeners, dispatchRequest, getAndClearLatestFiredEvent, getComponentName, getDispatchID, getExtendedDebugInfo, getLatestDispatchedController, getListenerInfo, getParent, getSpanAsDomReplaceable, getTimestamp, getTranslator, isDirty, isDirtyForUser, isDomReplaceable, isEnabled, isVisible, setDirty, setDomReplaceable, setEnabled, setSpanAsDomReplaceable, setVisible, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropPupForm

public PropPupForm(java.lang.String name,
                   Translator translator,
                   RepositoryEntry entry)
The details form is initialized with data collected from entry and typeName. Handler is looked-up by the given handlerName and not by the entry's resourceableType. This is to allow for an entry with no resourceable to initialize correctly (c.f. RepositoryAdd workflow). The typeName may be null.

Parameters:
name -
t -
entry -
typeName -
enableAuthorView -
doDisplayOnly -
Method Detail

init

public void init()
Initialize form data based on repository entry.


validate

public boolean validate()
Specified by:
validate in class Form
Returns:
true: form validates, false: form contains invalid data
See Also:
org.olat.core.gui.components.Form#validate(org.olat.core.gui.UserRequest)

getResourceName

public java.lang.String getResourceName()
Returns:
Resource name filed.

getAuthor

public java.lang.String getAuthor()
Returns:
Author field.

getType

public java.lang.String getType()
Returns:
Typoe field.

setEntry

public void setEntry(RepositoryEntry newEntry)
Set entry and re-initialize the form based on data of this entry.

Parameters:
newEntry -

canCopy

public boolean canCopy()
Return true when 'canCopy' is selected.


canReference

public boolean canReference()
Return true when 'canReference' is selected.


canLaunch

public boolean canLaunch()
Return true when 'canLaunch' is selected.


canDownload

public boolean canDownload()
Return true when 'canDownload' is selected.


getAccess

public int getAccess()
Return selected access key (ACC_OWNERS, ACC_OWNERS_AUTHORS, ACC_USERS, ACC_USERS_GUESTS)