Package io.mateu.fake
Class FakeUI
- java.lang.Object
-
- io.mateu.fake.FakeUI
-
- All Implemented Interfaces:
io.mateu.mdd.shared.ui.IMDDUI
public class FakeUI extends Object implements io.mateu.mdd.shared.ui.IMDDUI
-
-
Field Summary
Fields Modifier and Type Field Description static io.mateu.mdd.shared.interfaces.Appapp
-
Constructor Summary
Constructors Constructor Description FakeUI()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearStack()io.mateu.mdd.shared.interfaces.AppgetApp()StringgetBaseUrl()Collection<io.mateu.mdd.shared.reflection.FieldInterfaced>getColumnFields(Class targetType)StringgetCurrentState()io.mateu.mdd.shared.interfaces.UserPrincipalgetCurrentUser()StringgetCurrentUserLogin()io.mateu.mdd.shared.reflection.IFieldBuildergetFieldBuilder(io.mateu.mdd.shared.reflection.FieldInterfaced field)StringgetPath(io.mateu.mdd.shared.interfaces.MenuEntry e)ObjectgetPendingResult()SetgetPendingSelection()StringgetUiRootPath()voidgo(String relativePath)voidgoBack()voidgoSibling(Object siblingId)voidgoTo(String path)booleanisEditingNewRecord()booleanisMobile()voidopen(Method m, Object result)voidopen(Method m, Set selection)voidsetPendingResult(Object result)voidsetPendingSelection(Set selecion)voidupdateSession()voidupdateTitle(String title)
-
-
-
Method Detail
-
isEditingNewRecord
public boolean isEditingNewRecord()
- Specified by:
isEditingNewRecordin interfaceio.mateu.mdd.shared.ui.IMDDUI
-
getFieldBuilder
public io.mateu.mdd.shared.reflection.IFieldBuilder getFieldBuilder(io.mateu.mdd.shared.reflection.FieldInterfaced field)
- Specified by:
getFieldBuilderin interfaceio.mateu.mdd.shared.ui.IMDDUI
-
getBaseUrl
public String getBaseUrl()
- Specified by:
getBaseUrlin interfaceio.mateu.mdd.shared.ui.IMDDUI
-
clearStack
public void clearStack()
- Specified by:
clearStackin interfaceio.mateu.mdd.shared.ui.IMDDUI
-
getPath
public String getPath(io.mateu.mdd.shared.interfaces.MenuEntry e)
- Specified by:
getPathin interfaceio.mateu.mdd.shared.ui.IMDDUI
-
getApp
public io.mateu.mdd.shared.interfaces.App getApp()
- Specified by:
getAppin interfaceio.mateu.mdd.shared.ui.IMDDUI
-
getCurrentUserLogin
public String getCurrentUserLogin()
- Specified by:
getCurrentUserLoginin interfaceio.mateu.mdd.shared.ui.IMDDUI
-
getCurrentUser
public io.mateu.mdd.shared.interfaces.UserPrincipal getCurrentUser()
- Specified by:
getCurrentUserin interfaceio.mateu.mdd.shared.ui.IMDDUI
-
getColumnFields
public Collection<io.mateu.mdd.shared.reflection.FieldInterfaced> getColumnFields(Class targetType)
- Specified by:
getColumnFieldsin interfaceio.mateu.mdd.shared.ui.IMDDUI
-
updateTitle
public void updateTitle(String title)
- Specified by:
updateTitlein interfaceio.mateu.mdd.shared.ui.IMDDUI
-
isMobile
public boolean isMobile()
- Specified by:
isMobilein interfaceio.mateu.mdd.shared.ui.IMDDUI
-
getUiRootPath
public String getUiRootPath()
- Specified by:
getUiRootPathin interfaceio.mateu.mdd.shared.ui.IMDDUI
-
getCurrentState
public String getCurrentState()
- Specified by:
getCurrentStatein interfaceio.mateu.mdd.shared.ui.IMDDUI
-
go
public void go(String relativePath)
- Specified by:
goin interfaceio.mateu.mdd.shared.ui.IMDDUI
-
goTo
public void goTo(String path)
- Specified by:
goToin interfaceio.mateu.mdd.shared.ui.IMDDUI
-
goBack
public void goBack()
- Specified by:
goBackin interfaceio.mateu.mdd.shared.ui.IMDDUI
-
goSibling
public void goSibling(Object siblingId)
- Specified by:
goSiblingin interfaceio.mateu.mdd.shared.ui.IMDDUI
-
open
public void open(Method m, Set selection)
- Specified by:
openin interfaceio.mateu.mdd.shared.ui.IMDDUI
-
open
public void open(Method m, Object result)
- Specified by:
openin interfaceio.mateu.mdd.shared.ui.IMDDUI
-
getPendingSelection
public Set getPendingSelection()
- Specified by:
getPendingSelectionin interfaceio.mateu.mdd.shared.ui.IMDDUI
-
setPendingSelection
public void setPendingSelection(Set selecion)
- Specified by:
setPendingSelectionin interfaceio.mateu.mdd.shared.ui.IMDDUI
-
getPendingResult
public Object getPendingResult()
- Specified by:
getPendingResultin interfaceio.mateu.mdd.shared.ui.IMDDUI
-
setPendingResult
public void setPendingResult(Object result)
- Specified by:
setPendingResultin interfaceio.mateu.mdd.shared.ui.IMDDUI
-
updateSession
public void updateSession()
- Specified by:
updateSessionin interfaceio.mateu.mdd.shared.ui.IMDDUI
-
-