Package com.storedobject.ui
Interface StyledBuilder
- All Superinterfaces:
HTMLGenerator,StyledBuilder
- All Known Implementing Classes:
Alert,CSVUploadProcessorView,ELabel,ELabelField,ELabels,ExcelDataUpload,ProcessView,TextView,UploadProcessorView,ZipUploadProcessorView
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.storedobject.common.StyledBuilder
StyledBuilder.Style -
Field Summary
Fields inherited from interface com.storedobject.vaadin.HTMLGenerator
CHAR_ENTITIESFields inherited from interface com.storedobject.common.StyledBuilder
EMPTY_STRINGS -
Method Summary
Modifier and TypeMethodDescriptiondefault StyledBuilderAppend an object.default StyledBuilderAppend an object with the given color.default StyledBuilderAppend an object with the given style.default StyledBuilderappendHTML(String html) default StyledBuilderappendIcon(String icon) default StyledBuilderappendWithTag(String text, String tag) default StyledBuilderappendWithTag(String text, String tag, String attributes) default StyledBuilderblackMessage(Object any) default StyledBuilderblueMessage(Object any) default voidclear()default StyledBuilderClear the content.default StyledBuilderdrawLine()default StringgetHTML()Get the HTML text generated.default ObjectgetValue()default booleanisEmpty()Check if the content is empty or not.default StyledBuildernewLine(boolean force) Adds a new line.default StyledBuilderredMessage(Object any) default voidSet a value.default voidSet a value with the given styles.default StyledBuilderspace(int count) default StyledBuilderupdate()Update internals if required.Methods inherited from interface com.storedobject.vaadin.HTMLGenerator
getPrintTextMethods inherited from interface com.storedobject.common.StyledBuilder
append, isNewLine, newLine, setValue
-
Method Details
-
getInternalStyledBuilder
StyledBuilder getInternalStyledBuilder() -
getApplication
Application getApplication() -
setValue
Description copied from interface:StyledBuilderSet a value with the given styles. (Previous content if any will be cleared).- Specified by:
setValuein interfaceStyledBuilder- Parameters:
object- Object (value) to set.style- Styles to be set.
-
setValue
Description copied from interface:StyledBuilderSet a value. (Previous content if any will be cleared).- Specified by:
setValuein interfaceStyledBuilder- Parameters:
value- Object (value) to set.
-
getValue
-
update
Description copied from interface:StyledBuilderUpdate internals if required. (Default implementation does nothing).- Specified by:
updatein interfaceStyledBuilder- Returns:
- Self-reference is returned.
-
isEmpty
default boolean isEmpty()Description copied from interface:StyledBuilderCheck if the content is empty or not.- Specified by:
isEmptyin interfaceStyledBuilder- Returns:
- True or false.
-
newLine
Description copied from interface:StyledBuilderAdds a new line.- Specified by:
newLinein interfaceStyledBuilder- Parameters:
force- If true, a new line is added anyway. Otherwise, no new line should be added ifStyledBuilder.isNewLine()returns false.- Returns:
- Self-reference is returned.
-
append
Description copied from interface:StyledBuilderAppend an object.- Specified by:
appendin interfaceStyledBuilder- Parameters:
anything- Object to append.- Returns:
- Self-reference is returned.
-
append
Description copied from interface:StyledBuilderAppend an object with the given color.- Specified by:
appendin interfaceStyledBuilder- Parameters:
anything- Object to append.color- Color to be set. (Default implementation ignores this).- Returns:
- Self-reference is returned.
-
append
Description copied from interface:StyledBuilderAppend an object with the given style.- Specified by:
appendin interfaceStyledBuilder- Parameters:
anything- Object to append.style- Styles to be set. (Default implementation ignores this).- Returns:
- Self-reference is returned.
-
appendHTML
-
appendIcon
-
appendWithTag
-
appendWithTag
-
clear
default void clear() -
clearContent
Description copied from interface:StyledBuilderClear the content.- Specified by:
clearContentin interfaceStyledBuilder- Returns:
- Self-reference is returned.
-
space
-
drawLine
-
blackMessage
-
blueMessage
-
redMessage
-
getHTML
Description copied from interface:HTMLGeneratorGet the HTML text generated. (The generated HTML may not contain outer tags. So, span or div tag may be used to bracket it in order to make it a valid HTML text).- Specified by:
getHTMLin interfaceHTMLGenerator- Returns:
- HTML text generated.
-