|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hivemind.impl.BaseLocatable
org.apache.tapestry.AbstractComponent
org.apache.tapestry.BaseComponent
org.weda.tapestry.component.EditorGroupComponent
org.weda.tapestry.component.AbstractEditor
org.weda.tapestry.component.FileEditor
@ComponentClass(allowBody=false) public abstract class FileEditor
Constructor Summary | |
---|---|
FileEditor()
|
Method Summary | |
---|---|
void |
afterExecute(ActionEvent event)
|
void |
beforeExecute(ActionEvent event)
|
ExecutedActionInfo |
executeAction(ActionExecutionContext context)
Метод выполненяет действие |
java.lang.String |
getActionContainerName()
Метод возвращает уникальное имя контейнера. |
java.util.List<ActionContainer> |
getActionContainers()
|
abstract ActionRegistry |
getActionRegistry()
|
java.util.List<ActionState> |
getActionsStates()
Метод возвращает текущее состояние действий доступных для данного контейнера. |
java.util.Set<java.lang.Class> |
getDisabledActions()
Метод возвращает множество классов действий (action class) которые необходимо запретить для выполнения в данном контейнере. |
java.lang.String |
getEditorClass()
|
abstract org.apache.tapestry.request.IUploadFile |
getFile()
|
boolean |
hasRegisteredActions()
Метод вернет TRUE если есть действия
зарегистрированные для данного контейнера. |
void |
makeUpdate()
Данный метод должен производить изменения в модели данных и вернуть NULL если изменения прошли успешно или сообщение
указывающее на то почему изменения провести не удалось. |
protected void |
prepareForRender(org.apache.tapestry.IRequestCycle cycle)
|
Methods inherited from class org.weda.tapestry.component.AbstractEditor |
---|
getConverterService, getModelValue |
Methods inherited from class org.weda.tapestry.component.EditorGroupComponent |
---|
getBindingFactory, getEditorGroup, getModel, getModelName, getState, getStyle, resetState, restoreState, setModelName |
Methods inherited from class org.apache.tapestry.BaseComponent |
---|
addOuter, finishLoad, renderComponent |
Methods inherited from class org.apache.tapestry.AbstractComponent |
---|
addAsset, addBody, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, finishLoad, format, format, format, format, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getComponent, getComponents, getContainedComponent, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isInActiveState, isParameterBound, isRendering, pageEndRender, render, renderBody, renderInformalParameters, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setProperty, toString |
Methods inherited from class org.apache.hivemind.impl.BaseLocatable |
---|
getLocation, setLocation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.weda.action.ActionListener |
---|
getFilter, setFilter |
Methods inherited from interface org.apache.tapestry.IComponent |
---|
addAsset, addBody, addComponent, enterActiveState, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainedComponent, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isRendering, renderBody, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setProperty |
Methods inherited from interface org.apache.tapestry.IRender |
---|
render |
Methods inherited from interface org.apache.hivemind.LocationHolder |
---|
setLocation |
Methods inherited from interface org.apache.hivemind.Locatable |
---|
getLocation |
Constructor Detail |
---|
public FileEditor()
Method Detail |
---|
@InjectObject(value="service:org.weda.action.ActionRegistry") public abstract ActionRegistry getActionRegistry()
public abstract org.apache.tapestry.request.IUploadFile getFile()
public java.lang.String getEditorClass()
public void makeUpdate() throws java.lang.Exception
AbstractEditor
NULL
если изменения прошли успешно или сообщение
указывающее на то почему изменения провести не удалось.
makeUpdate
in class AbstractEditor
java.lang.Exception
public ExecutedActionInfo executeAction(ActionExecutionContext context) throws ActionRegistryException
ActionContainer
executeAction
in interface ActionContainer
ActionRegistryException
public boolean hasRegisteredActions()
ActionContainer
TRUE
если есть действия
зарегистрированные для данного контейнера. Если контейнер реализует
интерфейс GlobalActionsProvider
тогда метод вернет TRUE
если в реестре действий есть хотя бы одно глобальное действие.
hasRegisteredActions
in interface ActionContainer
ActionRegistry#hasRegisteredActions(Class)
public java.util.Set<java.lang.Class> getDisabledActions()
ActionContainer
getDisabledActions
in interface ActionContainer
public java.util.List<ActionState> getActionsStates() throws ActionRegistryException
ActionContainer
ActionState.isAvailable()
true
. Состояния глобальных действий будут
присутствовать в списке в том и только том случае если данный контейнер
реализует интерфейс GlobalActionsProvider
.
getActionsStates
in interface ActionContainer
ActionRegistryException
ActionRegistry#getActionsStates(ActionContainer)
public java.lang.String getActionContainerName()
ActionContainer
getActionContainerName
in interface ActionContainer
public java.util.List<ActionContainer> getActionContainers() throws java.lang.Exception
getActionContainers
in interface ActionContainerProvider
java.lang.Exception
public void beforeExecute(ActionEvent event) throws java.lang.Exception
beforeExecute
in interface ActionListener
java.lang.Exception
public void afterExecute(ActionEvent event) throws java.lang.Exception
afterExecute
in interface ActionListener
java.lang.Exception
protected void prepareForRender(org.apache.tapestry.IRequestCycle cycle)
prepareForRender
in class EditorGroupComponent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |