Package com.storedobject.ui
Class ObjectViewer
java.lang.Object
com.storedobject.ui.Executor
com.storedobject.ui.ObjectViewer
- All Implemented Interfaces:
Executable
,ObjectSetter<StoredObject>
,AlertHandler
,Runnable
,Consumer<StoredObject>
-
Field Summary
Fields inherited from class com.storedobject.ui.Executor
application
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
execute()
The functional interface method specified by this interface.boolean
Get the caption name to be used on the alert action button.Get the icon name to be used for showing the alert action button.void
handleAlert
(StoredObject object) Handle the alert.void
Set the object by specifying itsId
.void
setObject
(StoredObject object) Set the object.void
view()
void
void
view
(Id objectId, String actionName, Consumer<StoredObject> action) void
view
(StoredObject object) void
view
(StoredObject object, String actionName, Consumer<StoredObject> action) void
void
void
void
view
(String caption, StoredObject object) void
view
(String caption, StoredObject object, String actionName, Consumer<StoredObject> action) void
view
(String caption, String actionName, Consumer<StoredObject> action) void
view
(String actionName, Consumer<StoredObject> action) Methods inherited from class com.storedobject.ui.Executor
getApplication, getTransactionManager
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.storedobject.ui.AlertHandler
handleAlert
Methods inherited from interface com.storedobject.common.Executable
act, run
Methods inherited from interface com.storedobject.core.ObjectSetter
accept, getObjectClass, isAllowAny
-
Constructor Details
-
ObjectViewer
-
-
Method Details
-
execute
public void execute()Description copied from interface:Executable
The functional interface method specified by this interface.- Specified by:
execute
in interfaceExecutable
-
setObject
Description copied from interface:ObjectSetter
Set the object.- Specified by:
setObject
in interfaceObjectSetter<StoredObject>
- Parameters:
object
- Object to set.
-
setObject
Description copied from interface:ObjectSetter
Set the object by specifying itsId
. The default implementation tries to retrieve the object from the database and invokesObjectSetter.setObject(StoredObject)
.- Specified by:
setObject
in interfaceObjectSetter<StoredObject>
- Parameters:
objectId
-Id
of the object to set.
-
view
-
view
public void view() -
view
-
view
-
view
-
view
-
view
-
view
public void view(String caption, StoredObject object, String actionName, Consumer<StoredObject> action) -
view
-
view
-
view
-
view
-
executing
public boolean executing() -
close
public void close() -
handleAlert
Description copied from interface:AlertHandler
Handle the alert.- Specified by:
handleAlert
in interfaceAlertHandler
- Parameters:
object
- Associated object instance.
-
getAlertIcon
Description copied from interface:AlertHandler
Get the icon name to be used for showing the alert action button. By default, "vaadin:cog_o" is used.- Specified by:
getAlertIcon
in interfaceAlertHandler
- Returns:
- Alert icon name,
-
getAlertCaption
Description copied from interface:AlertHandler
Get the caption name to be used on the alert action button. By default, "Process" is used.- Specified by:
getAlertCaption
in interfaceAlertHandler
- Returns:
- Alert button caption.
-