public class JsonFrontend extends Frontend
Frontend.FormContent, Frontend.IComponent, Frontend.IContent, Frontend.Input<T>, Frontend.InputComponentListener, Frontend.InputType, Frontend.ITable<T>, Frontend.PasswordField, Frontend.Search<S>, Frontend.SwitchComponent, Frontend.SwitchContent, Frontend.TableActionListener<U>
Constructor and Description |
---|
JsonFrontend() |
getInstance, hideDetail, isAvailable, isDetailShown, loginAtStart, setInstance, show, showDetail, showDialog, showError, showMessage
public static void setSession(JsonPageManager session)
public static JsonPageManager getClientSession()
public static void setUseInputTypes(boolean compact)
public PageManager getPageManager()
getPageManager
in class Frontend
public Frontend.IComponent createText(String string)
createText
in class Frontend
public Frontend.IComponent createText(Action action)
createText
in class Frontend
public Frontend.IComponent createText(Rendering rendering)
createText
in class Frontend
public Frontend.IComponent createTitle(String string)
createTitle
in class Frontend
public Frontend.Input<String> createReadOnlyTextField()
createReadOnlyTextField
in class Frontend
public Frontend.Input<String> createTextField(int maxLength, String allowedCharacters, Frontend.Search<String> suggestionSearch, Frontend.InputComponentListener changeListener)
createTextField
in class Frontend
public Optional<Frontend.Input<String>> createInput(int maxLength, Frontend.InputType inputType, Frontend.InputComponentListener changeListener)
Frontend
createInput
in class Frontend
maxLength
- maximum input lengthinputType
- TEXT, EMAIL, ...changeListener
- listener attached to the Inputpublic Frontend.PasswordField createPasswordField(Frontend.InputComponentListener changeListener, int maxLength)
createPasswordField
in class Frontend
public Frontend.Input<String> createAreaField(int maxLength, String allowedCharacters, Frontend.InputComponentListener changeListener)
createAreaField
in class Frontend
public Frontend.Input<byte[]> createImage(Frontend.InputComponentListener changeListener)
createImage
in class Frontend
public <T> Frontend.Input<T> createComboBox(List<T> objects, Frontend.InputComponentListener changeListener)
createComboBox
in class Frontend
public Frontend.Input<Boolean> createCheckBox(Frontend.InputComponentListener changeListener, String text)
createCheckBox
in class Frontend
public <T> Frontend.ITable<T> createTable(Object[] keys, boolean multiSelect, Frontend.TableActionListener<T> listener)
createTable
in class Frontend
public <T> Frontend.IContent createTable(Frontend.Search<T> search, Object[] keys, boolean multiSelect, Frontend.TableActionListener<T> listener)
createTable
in class Frontend
public Frontend.IContent createFormTableContent(Frontend.FormContent form, Frontend.ITable<?> table)
createFormTableContent
in class Frontend
public Frontend.Input<String> createLookup(Frontend.Input<String> input, Runnable lookup)
createLookup
in class Frontend
public Frontend.Input<String> createLookup(Frontend.Input<String> input, ActionGroup actions)
createLookup
in class Frontend
public Frontend.IComponent createVerticalGroup(Frontend.IComponent... components)
createVerticalGroup
in class Frontend
public Frontend.IComponent createHorizontalGroup(Frontend.IComponent... components)
createHorizontalGroup
in class Frontend
public Frontend.FormContent createFormContent(int columns, int columnWidth)
createFormContent
in class Frontend
public Frontend.SwitchContent createSwitchContent()
createSwitchContent
in class Frontend
public Frontend.SwitchComponent createSwitchComponent()
createSwitchComponent
in class Frontend
public Frontend.IContent createHtmlContent(String htmlOrUrl)
Frontend
createHtmlContent
in class Frontend
htmlOrUrl
- html, url, classpath location or stringStringUtils.escapeHTML(String)
public Frontend.IContent createQueryContent()
Frontend
The caption text is defined by the Resource QueryPage or if that is not available by the Application.name .
createQueryContent
in class Frontend
public static String readStream(InputStream inputStream)
public static String getHtmlTemplate()
Copyright © 2019. All rights reserved.